Spaces:
Build error
Build error
First model version
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ from maskrcnn_benchmark.config import cfg
|
|
| 15 |
def infer(filepath):
|
| 16 |
cfg.merge_from_file('./configs/ctw/r50_baseline.yaml')
|
| 17 |
# manual override some options
|
| 18 |
-
|
| 19 |
|
| 20 |
text_demo = TextDemo(
|
| 21 |
cfg,
|
|
|
|
| 15 |
def infer(filepath):
|
| 16 |
cfg.merge_from_file('./configs/ctw/r50_baseline.yaml')
|
| 17 |
# manual override some options
|
| 18 |
+
cfg.merge_from_list(["MODEL.DEVICE", "cpu"])
|
| 19 |
|
| 20 |
text_demo = TextDemo(
|
| 21 |
cfg,
|