using pretrained in register
Browse files
app.py
CHANGED
@@ -264,7 +264,7 @@ def predict_and_analyze(model_name, num_channels, dim, input_channel, image):
|
|
264 |
# depth_mult=hparams.depth_mult,)
|
265 |
|
266 |
AutoConfig.register(model_loading_name, EfficientNetConfig)
|
267 |
-
AutoModel.register(EfficientNetConfig,
|
268 |
# config = EfficientNetConfig.from_pretrained(model_loading_name)
|
269 |
|
270 |
# model = EfficientNetPreTrained.from_pretrained(model_loading_name)
|
|
|
264 |
# depth_mult=hparams.depth_mult,)
|
265 |
|
266 |
AutoConfig.register(model_loading_name, EfficientNetConfig)
|
267 |
+
AutoModel.register(EfficientNetConfig, EfficientNetPreTrained)
|
268 |
# config = EfficientNetConfig.from_pretrained(model_loading_name)
|
269 |
|
270 |
# model = EfficientNetPreTrained.from_pretrained(model_loading_name)
|