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

本站现有博文333篇,共被浏览923587

本站已经建立2629天!

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