Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
tags:
|
| 6 |
+
- bacteria
|
| 7 |
+
- microscopy
|
| 8 |
+
- biology
|
| 9 |
+
- medical
|
| 10 |
+
size_categories:
|
| 11 |
+
- n<1K
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Bacteria Classification Test Dataset
|
| 15 |
+
|
| 16 |
+
Test dataset for bacteria classification using ConvNext model.
|
| 17 |
+
|
| 18 |
+
## Dataset Description
|
| 19 |
+
|
| 20 |
+
This dataset contains microscopic images of bacteria for classification tasks.
|
| 21 |
+
|
| 22 |
+
## Dataset Structure
|
| 23 |
+
```
|
| 24 |
+
test/
|
| 25 |
+
├── class_1/
|
| 26 |
+
│ ├── image1.jpg
|
| 27 |
+
│ └── ...
|
| 28 |
+
├── class_2/
|
| 29 |
+
└── ...
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Usage
|
| 33 |
+
|
| 34 |
+
### Quick Download
|
| 35 |
+
```bash
|
| 36 |
+
pip install huggingface_hub
|
| 37 |
+
python download_test_data.py
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
### Download via Python
|
| 41 |
+
```python
|
| 42 |
+
from huggingface_hub import snapshot_download
|
| 43 |
+
|
| 44 |
+
dataset_path = snapshot_download(
|
| 45 |
+
repo_id="archiesinaga/bacteria-classification-test-data",
|
| 46 |
+
repo_type="dataset",
|
| 47 |
+
local_dir="./test"
|
| 48 |
+
)
|
| 49 |
+
print(f"Dataset downloaded to: {dataset_path}")
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
### Download via CLI
|
| 53 |
+
```bash
|
| 54 |
+
huggingface-cli download \
|
| 55 |
+
archiesinaga/bacteria-classification-test-data \
|
| 56 |
+
--repo-type dataset \
|
| 57 |
+
--local-dir ./test
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Use with Project
|
| 61 |
+
|
| 62 |
+
This dataset is designed to work with the bacteria classification project:
|
| 63 |
+
```bash
|
| 64 |
+
# Clone project
|
| 65 |
+
git clone https://github.com/archiesinaga/bacteria-classification.git
|
| 66 |
+
cd bacteria-classification
|
| 67 |
+
|
| 68 |
+
# Setup environment
|
| 69 |
+
python -m venv venv
|
| 70 |
+
source venv/bin/activate
|
| 71 |
+
pip install -r requirements.txt
|
| 72 |
+
|
| 73 |
+
# Download model and dataset
|
| 74 |
+
python download_model.py
|
| 75 |
+
python download_test_data.py
|
| 76 |
+
|
| 77 |
+
# Run evaluation
|
| 78 |
+
python evaluasi.py
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Related Resources
|
| 82 |
+
|
| 83 |
+
- **GitHub Repository**: [bacteria-classification](https://github.com/archiesinaga/bacteria-classification)
|
| 84 |
+
- **Pre-trained Model**: [bacteria-classification-convnext](https://huggingface.co/archiesinaga/bacteria-classification-convnext)
|
| 85 |
+
|
| 86 |
+
## Citation
|
| 87 |
+
```bibtex
|
| 88 |
+
@dataset{bacteria_test_data_2024,
|
| 89 |
+
author = {Archie Sinaga},
|
| 90 |
+
title = {Bacteria Classification Test Dataset},
|
| 91 |
+
year = {2024},
|
| 92 |
+
publisher = {Hugging Face},
|
| 93 |
+
howpublished = {\url{https://huggingface.co/datasets/archiesinaga/bacteria-classification-test-data}}
|
| 94 |
+
}
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
## License
|
| 98 |
+
|
| 99 |
+
Apache 2.0
|