roman
commited on
Commit
·
e13f0d1
1
Parent(s):
6a4583b
change gpu - cpu
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def inference(image, THR=0.5, path_to_model="/content/output/model_final.pth"):
|
|
94 |
|
95 |
|
96 |
def inference_2(image, path_to_model, dataset_name, YAML_FILE, cat_lst=["0.2", "0.3", "0.5", "0.8"], thr=0.25,
|
97 |
-
aa_dct='None', device='
|
98 |
cfg = get_cfg()
|
99 |
cfg.MODEL.DEVICE = device
|
100 |
|
|
|
94 |
|
95 |
|
96 |
def inference_2(image, path_to_model, dataset_name, YAML_FILE, cat_lst=["0.2", "0.3", "0.5", "0.8"], thr=0.25,
|
97 |
+
aa_dct='None', device='cpu', loader='default', aug=[ T.Resize((512, 512)) ]):
|
98 |
cfg = get_cfg()
|
99 |
cfg.MODEL.DEVICE = device
|
100 |
|