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

本站现有博文333篇,共被浏览905811

本站已经建立2608天!

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