Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def init_model(config, checkpoint):
|
|
66 |
cfg.model.init = True
|
67 |
|
68 |
if checkpoint.startswith('http'):
|
69 |
-
checkpoint = nncore.download(checkpoint, out_dir='checkpoints')
|
70 |
|
71 |
model = build_model(cfg.model, dist=False).eval()
|
72 |
model = load_checkpoint(model, checkpoint, warning=False)
|
|
|
66 |
cfg.model.init = True
|
67 |
|
68 |
if checkpoint.startswith('http'):
|
69 |
+
checkpoint = nncore.download(checkpoint, out_dir='checkpoints', verbose=False)
|
70 |
|
71 |
model = build_model(cfg.model, dist=False).eval()
|
72 |
model = load_checkpoint(model, checkpoint, warning=False)
|