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

本站现有博文321篇,共被浏览780409

本站已经建立2473天!

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