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

本站现有博文328篇,共被浏览852761

本站已经建立2560天!

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