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

本站现有博文338篇,共被浏览984056次

本站已经建立2697天!

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