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

本站现有博文340篇,共被浏览1017837次

本站已经建立2718天!

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