Image Classification
Transformers
Safetensors
bone_age
feature-extraction
radiology
medical_imaging
x_ray
custom_code
Instructions to use Tata24/bone-age with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tata24/bone-age with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Tata24/bone-age", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Tata24/bone-age", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download configuration.py from Tata24/bone-age: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/Tata24/bone-age/resolve/main/configuration.py
- Command line
-
hf download hf://Tata24/bone-age/configuration.py
-
curl -L -o configuration.py https://huggingface.co/Tata24/bone-age/resolve/main/configuration.py
568 Bytes
| from transformers import PretrainedConfig | |
| class BoneAgeConfig(PretrainedConfig): | |
| model_type = "bone_age" | |
| def __init__( | |
| self, | |
| backbone="convnextv2_tiny", | |
| feature_dim=768, | |
| dropout=0.1, | |
| num_classes=240, | |
| in_chans=2, | |
| num_models=3, | |
| **kwargs | |
| ): | |
| self.backbone = backbone | |
| self.feature_dim = feature_dim | |
| self.dropout = dropout | |
| self.num_classes = num_classes | |
| self.in_chans = in_chans | |
| self.num_models = num_models | |
| super().__init__(**kwargs) | |