Object Detection
Transformers
Safetensors
ct_crop
feature-extraction
ct
computed_tomography
crop
dicom
radiology
custom_code
Instructions to use ianpan/ct-crop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ianpan/ct-crop with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="ianpan/ct-crop", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ianpan/ct-crop", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| from transformers import PretrainedConfig | |
| class CTCropConfig(PretrainedConfig): | |
| model_type = "ct_crop" | |
| def __init__( | |
| self, | |
| backbone="mobilenetv3_small_100", | |
| feature_dim=1024, | |
| dropout=0.1, | |
| num_classes=4, | |
| in_chans=1, | |
| **kwargs, | |
| ): | |
| self.backbone = backbone | |
| self.feature_dim = feature_dim | |
| self.dropout = dropout | |
| self.num_classes = num_classes | |
| self.in_chans = in_chans | |
| super().__init__(**kwargs) | |