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

本站现有博文337篇,共被浏览962160次

本站已经建立2674天!

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