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

本站现有博文336篇,共被浏览939383

本站已经建立2650天!

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