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

本站现有博文323篇,共被浏览795306

本站已经建立2493天!

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