DeathDaDev/textures3
Viewer • Updated • 1.05k • 43 • 1
How to use DeathDaDev/Materializer with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="DeathDaDev/Materializer")
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("DeathDaDev/Materializer")
model = AutoModelForImageClassification.from_pretrained("DeathDaDev/Materializer")loss: 0.595848798751831
f1_macro: 0.6619490584264867
f1_micro: 0.7440758293838863
f1_weighted: 0.7388732927039862
precision_macro: 0.6678889139696575
precision_micro: 0.7440758293838863
precision_weighted: 0.7622779846533339
recall_macro: 0.6766371375677931
recall_micro: 0.7440758293838863
recall_weighted: 0.7440758293838863
accuracy: 0.7440758293838863