kedimestan/RetinoblastomaHealthyImageDataset
Viewer • Updated • 287 • 7 • 2
How to use kedimestan/swin-base-patch4-window7-224 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="kedimestan/swin-base-patch4-window7-224")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("kedimestan/swin-base-patch4-window7-224")
model = AutoModelForImageClassification.from_pretrained("kedimestan/swin-base-patch4-window7-224")Bu model, microsoft/swin-base-patch4-window7-224 modelin retinoblastoma veri seti için ince ayar yapılmış versiyonudur. Test veri setindeki sonuçları aşağıdaki gibidir:
Swin tabanlı bir modeldir. 5e-5 öğrenme oranı ile 10 epoch ile eğitim yapıldı. Optimizasyon için Adam kullanıldı. veri seti %80-%20 olacak şekilde sırasyıla eğitim ve test verisetine bölündü.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 0.5714 | 1 | 0.8119 | 0.3913 |
| No log | 1.7143 | 3 | 0.6544 | 0.5217 |
| No log | 2.8571 | 5 | 0.3809 | 1.0 |
| No log | 4.0 | 7 | 0.2352 | 1.0 |
| No log | 4.5714 | 8 | 0.1875 | 1.0 |
| 0.4988 | 5.7143 | 10 | 0.1481 | 1.0 |
Base model
microsoft/swin-base-patch4-window7-224