Upload model.py with huggingface_hub
Browse files
model.py
CHANGED
|
@@ -11,7 +11,7 @@ from transformers import PretrainedConfig
|
|
| 11 |
######################################################################
|
| 12 |
class VesselSegmentConfig(PretrainedConfig):
|
| 13 |
model_type = "SegformerForSemanticSegmentation"
|
| 14 |
-
def __init__(self, num_classes, input_channels, image_size, features, attention_dims, patch_size, batch_size, **kwargs):
|
| 15 |
self.num_classes = num_classes
|
| 16 |
self.input_channels = input_channels
|
| 17 |
self.image_size = image_size
|
|
|
|
| 11 |
######################################################################
|
| 12 |
class VesselSegmentConfig(PretrainedConfig):
|
| 13 |
model_type = "SegformerForSemanticSegmentation"
|
| 14 |
+
def __init__(self, num_classes=1, input_channels=1, image_size=[512,512], features=[64,64,128], attention_dims=[64,32,16], patch_size=256, batch_size=4, **kwargs):
|
| 15 |
self.num_classes = num_classes
|
| 16 |
self.input_channels = input_channels
|
| 17 |
self.image_size = image_size
|