Spaces:
Runtime error
Runtime error
First model version
Browse files- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -22,7 +22,7 @@ import torch
|
|
| 22 |
def infer(filepath):
|
| 23 |
config = Config('configs/rec/train_abinet.yaml')
|
| 24 |
config.model_vision_checkpoint = None
|
| 25 |
-
model = get_model(config)
|
| 26 |
model = load(model, 'workdir/train-abinet/best-train-abinet.pth')
|
| 27 |
charset = CharsetMapper(filename=config.dataset_charset_path, max_length=config.dataset_max_length + 1)
|
| 28 |
|
|
|
|
| 22 |
def infer(filepath):
|
| 23 |
config = Config('configs/rec/train_abinet.yaml')
|
| 24 |
config.model_vision_checkpoint = None
|
| 25 |
+
model = get_model(config)
|
| 26 |
model = load(model, 'workdir/train-abinet/best-train-abinet.pth')
|
| 27 |
charset = CharsetMapper(filename=config.dataset_charset_path, max_length=config.dataset_max_length + 1)
|
| 28 |
|
requirements.txt
CHANGED
|
@@ -14,4 +14,5 @@ matplotlib
|
|
| 14 |
tqdm
|
| 15 |
shapely
|
| 16 |
scipy
|
| 17 |
-
networkx
|
|
|
|
|
|
| 14 |
tqdm
|
| 15 |
shapely
|
| 16 |
scipy
|
| 17 |
+
networkx
|
| 18 |
+
onnxruntime-gpu
|