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

本站现有博文315篇,共被浏览746366

本站已经建立2393天!

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