updates
This commit is contained in:
parent
01bc76faeb
commit
33601ca758
@ -19,7 +19,7 @@ def detect(cfg,
|
|||||||
save_txt=False,
|
save_txt=False,
|
||||||
save_images=True):
|
save_images=True):
|
||||||
# Initialize
|
# Initialize
|
||||||
device = torch_utils.select_device()
|
device = torch_utils.select_device(force_cpu=ONNX_EXPORT)
|
||||||
torch.backends.cudnn.benchmark = False # set False for reproducible results
|
torch.backends.cudnn.benchmark = False # set False for reproducible results
|
||||||
if os.path.exists(output):
|
if os.path.exists(output):
|
||||||
shutil.rmtree(output) # delete output folder
|
shutil.rmtree(output) # delete output folder
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user