Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def add_vit_config(cfg):
|
|
| 46 |
# Step 1: instantiate config
|
| 47 |
cfg = get_cfg()
|
| 48 |
add_vit_config(cfg)
|
| 49 |
-
cfg.merge_from_file("
|
| 50 |
|
| 51 |
# Step 2: add model weights URL to config
|
| 52 |
cfg.MODEL.WEIGHTS = "https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_mrcnn.pth"
|
|
|
|
| 46 |
# Step 1: instantiate config
|
| 47 |
cfg = get_cfg()
|
| 48 |
add_vit_config(cfg)
|
| 49 |
+
cfg.merge_from_file("cascade_dit_base.yml")
|
| 50 |
|
| 51 |
# Step 2: add model weights URL to config
|
| 52 |
cfg.MODEL.WEIGHTS = "https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_mrcnn.pth"
|