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

本站现有博文327篇,共被浏览833114

本站已经建立2538天!

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