How to use rizvandwiki/gender-classification-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="rizvandwiki/gender-classification-2") 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("rizvandwiki/gender-classification-2") model = AutoModelForImageClassification.from_pretrained("rizvandwiki/gender-classification-2")
Can you share with us the used dataset as i'm assessing the model performance and worry to be this testing data is actually a part in the model's training data.
Thanks
Β· Sign up or log in to comment