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

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

本站已经建立2473天!

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