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

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

本站已经建立2628天!

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