just automodel
Browse files
app.py
CHANGED
@@ -270,7 +270,7 @@ def predict_and_analyze(model_name, num_channels, dim, input_channel, image):
|
|
270 |
# model = EfficientNetPreTrained.from_pretrained(model_loading_name)
|
271 |
# model = AutoModel.from_pretrained(model_loading_name, trust_remote_code=True)
|
272 |
|
273 |
-
model =
|
274 |
|
275 |
# model = EfficientNet(dropout=hparams.dropout,
|
276 |
# num_channels=hparams.num_channels,
|
|
|
270 |
# model = EfficientNetPreTrained.from_pretrained(model_loading_name)
|
271 |
# model = AutoModel.from_pretrained(model_loading_name, trust_remote_code=True)
|
272 |
|
273 |
+
model = AutoModel.from_pretrained(model_path + model_loading_name)
|
274 |
|
275 |
# model = EfficientNet(dropout=hparams.dropout,
|
276 |
# num_channels=hparams.num_channels,
|