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

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

本站已经建立2452天!

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