Instructions to use glazzova/body_complexion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use glazzova/body_complexion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="glazzova/body_complexion") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("glazzova/body_complexion") model = AutoModelForImageClassification.from_pretrained("glazzova/body_complexion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.9d32789
-
Update README.md
Verified signature37403ee -
Create README.md
Verified signatured6de182 -
Create README.md
Verified signature# body_type This is fine-tuned [microsoft/resnet-50](https://huggingface.co/microsoft/resnet-50). It is fine-tuned on a dataset containing men of different body complexion ### Intended Use: The model is intended for image classification tasks specifically related to men's body types. It is designed to classify images into four categories based on body complexion: skinny, ordinary, overweight, and very muscular. The model can be utilized in applications such as: * Health and fitness platforms for body type analysis * Clothing recommendation systems tailored for different body types * Visual content moderation systems to filter images based on body type ### How to launch ```python import torch from PIL import Image from transformers import ResNetForImageClassification, AutoImageProcessor processor = AutoImageProcessor.from_pretrained("glazzova/body_type") model = ResNetForImageClassification.from_pretrained('glazzova/body_type') image = Image.open('your_pic.jpeg') inputs = processo…95b38ac -
Create README.md
Verified signature# body_complexion This is fine-tuned [microsoft/resnet-50](https://huggingface.co/microsoft/resnet-50). It is fine-tuned on a dataset containing men with different body complexion. ### Intended Use: The model is intended for image classification tasks specifically related to men's body types. It is designed to classify images into four categories based on body complexion: skinny, ordinary, overweight, and very muscular. The model can be utilized in applications such as: Health and fitness platforms for body type analysis Clothing recommendation systems tailored for different body types Visual content moderation systems to filter images based on body type ### How to load this model ```python import torch from PIL import Image from transformers import ResNetForImageClassification, AutoImageProcessor processor = AutoImageProcessor.from_pretrained("glazzova/body_complexion") model = ResNetForImageClassification.from_pretrained('glazzova/body_complexion') image = Image.open('your_pic.j…3e63df4 -
Upload 8 files
Verified signaturebe9dca6 -
initial commit
Verified signature41cb5d3