EADST

Split Brazilian Coffee Scenes Dataset (BCS)

Brazilian Coffee Scenes Dataset (BCS) has five folders, and each folder has coffee and uncoffee images. So I wrote a python file to split BCS into two folders - Coffee and Uncoffee.

Here is the splited zip.

Here is the code.

import os, shutil

path = "D:\\brazilian_coffee_scenes\\fold1"
new_path = "D:\\brazilian_coffee_scenes"
cls_dict = {}
path_list = os.listdir(path)
with open("fold1.txt", "r+") as f:
    for line in f.readlines():
        lst = line.strip().split("ffee.")
        if lst[0] not in cls_dict.keys():
            cls_dict[lst[0]] = [lst[1]]
        else:
            cls_dict[lst[0]].append(lst[1])


for name in path_list:
    if name[:-4] in cls_dict['co']:
        number = "1"
    elif name[:-4] in cls_dict['nonco']:
        number = "2"
    else:
        number = "3"
    file = os.path.join(path, name)
    new_file = os.path.join(new_path, number, name)
    shutil.copyfile(file, new_file)

Brazilian Coffee Scenes Dataset (BCS)

- [BCS Dataset Webpage](http://patreo.dcc.ufmg.br/2017/11/12/brazilian-coffee-scenes-dataset/)

- Paper: O. A. B. Penatti, K. Nogueira, J. A. dos Santos. Do Deep Features Generalize from Everyday Objects to Remote Sensing and Aerial Scenes Domains? In: EarthVision 2015, Boston. IEEE Computer Vision and Pattern Recognition Workshops, 2015.
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
财报 Tensor Django 图形思考法 Bert RL QWEN Quantization 多进程 Michelin Plate Review Dataset Use Ubuntu 第一性原理 LaTeX Pickle Ptyhon Datetime Augmentation v0.dev Math SQLite Qwen HaggingFace Domain torchinfo LLM tar transformers Proxy Bitcoin uwsgi Firewall 版权 Agent LLAMA COCO FP8 Image2Text Google icon Interview Baidu 论文 TSV 论文速读 OpenCV SVR Nginx 报税 TensorRT DeepSeek NameSilo Plotly Distillation Algorithm 递归学习法 JSON Heatmap Docker Python printf Bin Jetson FlashAttention BTC CAM 音频 Pytorch Github News Card Hotel 顶会 Video WebCrawler WAN OCR scipy VSCode Freesound Paddle FastAPI SPIE Vmess Windows 多线程 TTS Quantize Mixtral Vim LoRA UNIX CEIR 阿里云 Food llama.cpp hf Rebuttal Paper ChatGPT Crawler Magnet BF16 DeepStream FP32 Transformers 证件照 VGG-16 飞书 CLAP Disk Shortcut GIT 公式 RAR UI 域名 Attention OpenAI Hungarian CUDA NLP HuggingFace YOLO SAM SQL MD5 EXCEL 关于博主 Jupyter Diagram Pandas PyTorch git-lfs Sklearn Animate IndexTTS2 Tracking CC NLTK CSV Data Claude GPTQ FP64 XML Git 腾讯云 Permission ModelScope RGB Qwen2.5 Input 净利润 Excel Zip Template ms-swift VPN Statistics Llama InvalidArgumentError Conda FP16 Website GPT4 PyCharm Clash mmap uWSGI Logo Breakpoint Gemma Color API logger Random Cloudreve ONNX Miniforge AI Pillow Bipartite diffusers 云服务器 PDB XGBoost CV Qwen2 Tiktoken Translation Search LeetCode PIP 签证 强化学习 Linux git GoogLeNet Knowledge C++ BeautifulSoup Web CTC ResNet-50 图标 Hilton Streamlit Password Anaconda PDF 继承 tqdm 算法题 Safetensors Land Numpy TensorFlow v2ray Base64 Markdown 搞笑 GGML
站点统计

本站现有博文332篇,共被浏览875317

本站已经建立2583天!

热门文章
文章归档
回到顶部