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
标签云
Random FastAPI Qwen2.5 transformers Animate Ptyhon 音频 Zip Translation Interview Gemma Paper VGG-16 Breakpoint CTC Website Augmentation PyTorch SAM Jetson QWEN Magnet TensorFlow ResNet-50 Llama Ubuntu PDF 版权 JSON BTC Hotel TSV YOLO llama.cpp 阿里云 Bin Miniforge 财报 Hungarian Knowledge Plate logger Domain AI Pandas Land PDB Bert Math GPTQ git Input ModelScope Datetime LeetCode FP32 DeepStream Django Card Git Nginx Base64 ChatGPT FP16 Qwen2 RGB Quantization Tensor Proxy NLP Markdown 继承 Tracking tar FP64 Michelin RAR COCO Cloudreve Tiktoken Firewall BF16 scipy 公式 HuggingFace Vim Algorithm Image2Text Numpy 多线程 torchinfo BeautifulSoup Distillation GGML Quantize LLAMA Windows Safetensors HaggingFace diffusers Web SQL Logo Plotly NameSilo uWSGI Transformers LLM OCR SQLite CUDA XML MD5 UNIX Disk GoogLeNet 域名 Dataset 签证 腾讯云 GIT uwsgi Linux FP8 Pickle Diagram Sklearn Video Pillow printf Attention API SVR Shortcut Excel NLTK IndexTTS2 Baidu CSV TensorRT 搞笑 TTS hf InvalidArgumentError Claude Docker LaTeX Google Review git-lfs OpenAI CAM 多进程 WebCrawler Template Use CV 关于博主 OpenCV EXCEL 飞书 Crawler Color Bitcoin 算法题 Food CLAP v2ray Heatmap Pytorch Qwen UI Streamlit VPN Jupyter 证件照 XGBoost tqdm PIP CEIR Hilton Paddle GPT4 Permission 净利润 LoRA Clash Freesound Python CC PyCharm Github 报税 SPIE Statistics Bipartite Password Vmess Mixtral DeepSeek WAN Anaconda C++ VSCode FlashAttention ONNX Data Conda v0.dev mmap
站点统计

本站现有博文309篇,共被浏览732544

本站已经建立2370天!

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