Spaces:
Build error
Build error
napatswift
commited on
Commit
·
28d6a1a
1
Parent(s):
aa41622
Fix bug
Browse files
main.py
CHANGED
@@ -7,8 +7,8 @@ import torch
|
|
7 |
|
8 |
print('Loading model...')
|
9 |
device = 'gpu' if torch.cuda.is_available() else 'cpu'
|
10 |
-
table_det = init_detector('model/table-det/config.py',
|
11 |
-
|
12 |
|
13 |
ocr = MMOCRInferencer(det='model/det/config.py',
|
14 |
det_weights='model/det/model.pth',
|
|
|
7 |
|
8 |
print('Loading model...')
|
9 |
device = 'gpu' if torch.cuda.is_available() else 'cpu'
|
10 |
+
# table_det = init_detector('model/table-det/config.py',
|
11 |
+
# 'model/table-det/model.pth', device=device)
|
12 |
|
13 |
ocr = MMOCRInferencer(det='model/det/config.py',
|
14 |
det_weights='model/det/model.pth',
|