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

本站现有博文323篇,共被浏览804135

本站已经建立2504天!

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