jpterry commited on
Commit
7cb931d
·
1 Parent(s): 6449d83

using pretrained in register

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, EfficientNet)
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)