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

本站现有博文337篇,共被浏览961373次

本站已经建立2673天!

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