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

本站现有博文320篇,共被浏览759630

本站已经建立2428天!

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