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

本站现有博文332篇,共被浏览883926

本站已经建立2588天!

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