Views
No views yet
1from transformers import pipeline
2gender_classifier = pipeline(model="NTQAI/pedestrian_gender_recognition")
3image_path = "abc.jpg"
4
5results = gender_classifier(image_path)
6print(results)| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.5193 | 1.0 | 2000 | 0.3346 | 0.8533 |
| 0.337 | 2.0 | 4000 | 0.2892 | 0.8778 |
| 0.3771 | 3.0 | 6000 | 0.2493 | 0.8969 |
| 0.3819 | 4.0 | 8000 | 0.2275 | 0.9100 |
| 0.3581 | 5.0 | 10000 | 0.2170 | 0.9107 |