Instructions to use Runnies23/Runnies23maxxvitv2_rmlp_base_rw_224.sw_in12k_liver_hsitopathlogy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Runnies23/Runnies23maxxvitv2_rmlp_base_rw_224.sw_in12k_liver_hsitopathlogy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Runnies23/Runnies23maxxvitv2_rmlp_base_rw_224.sw_in12k_liver_hsitopathlogy") 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("Runnies23/Runnies23maxxvitv2_rmlp_base_rw_224.sw_in12k_liver_hsitopathlogy") model = AutoModelForImageClassification.from_pretrained("Runnies23/Runnies23maxxvitv2_rmlp_base_rw_224.sw_in12k_liver_hsitopathlogy") - timm
How to use Runnies23/Runnies23maxxvitv2_rmlp_base_rw_224.sw_in12k_liver_hsitopathlogy with timm:
import timm model = timm.create_model("hf_hub:Runnies23/Runnies23maxxvitv2_rmlp_base_rw_224.sw_in12k_liver_hsitopathlogy", pretrained=True) - Notebooks
- Google Colab
- Kaggle
| { | |
| "architecture": "maxxvitv2_rmlp_base_rw_224", | |
| "architectures": [ | |
| "TimmWrapperForImageClassification" | |
| ], | |
| "do_pooling": true, | |
| "global_pool": "avg", | |
| "initializer_range": 0.02, | |
| "label_names": [ | |
| "F0", | |
| "F1", | |
| "F2", | |
| "F3", | |
| "F4" | |
| ], | |
| "model_type": "timm_wrapper", | |
| "num_classes": 5, | |
| "num_features": 1024, | |
| "pretrained_cfg": { | |
| "classifier": "head.fc", | |
| "crop_mode": "center", | |
| "crop_pct": 0.95, | |
| "custom_load": false, | |
| "first_conv": "stem.conv1", | |
| "fixed_input_size": true, | |
| "input_size": [ | |
| 3, | |
| 224, | |
| 224 | |
| ], | |
| "interpolation": "bicubic", | |
| "mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "pool_size": [ | |
| 7, | |
| 7 | |
| ], | |
| "std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "tag": "sw_in12k" | |
| }, | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.51.3" | |
| } | |