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

本站现有博文332篇,共被浏览873970

本站已经建立2582天!

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