Upload processor
Browse files
image_processing_efficientnet.py
CHANGED
|
@@ -13,6 +13,7 @@ class EfficientNetImageProcessor(BaseImageProcessor):
|
|
| 13 |
):
|
| 14 |
super().__init__(**kwargs)
|
| 15 |
|
|
|
|
| 16 |
self.config = resolve_data_config({}, model=create_model(model_name, pretrained=False))
|
| 17 |
|
| 18 |
|
|
|
|
| 13 |
):
|
| 14 |
super().__init__(**kwargs)
|
| 15 |
|
| 16 |
+
self.model_name = model_name
|
| 17 |
self.config = resolve_data_config({}, model=create_model(model_name, pretrained=False))
|
| 18 |
|
| 19 |
|
preprocessor_config.json
CHANGED
|
@@ -22,5 +22,6 @@
|
|
| 22 |
0.225
|
| 23 |
]
|
| 24 |
},
|
| 25 |
-
"image_processor_type": "EfficientNetImageProcessor"
|
|
|
|
| 26 |
}
|
|
|
|
| 22 |
0.225
|
| 23 |
]
|
| 24 |
},
|
| 25 |
+
"image_processor_type": "EfficientNetImageProcessor",
|
| 26 |
+
"model_name": "efficientnet_b0"
|
| 27 |
}
|