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

本站现有博文340篇,共被浏览1019506次

本站已经建立2719天!

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