update e34e0a8
nhanv commited on
How to use NTQAI/pedestrian_gender_recognition with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="NTQAI/pedestrian_gender_recognition")
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("NTQAI/pedestrian_gender_recognition")
model = AutoModelForImageClassification.from_pretrained("NTQAI/pedestrian_gender_recognition", device_map="auto")