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

本站现有博文319篇,共被浏览751833

本站已经建立2408天!

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