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

本站现有博文324篇,共被浏览821426

本站已经建立2526天!

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