updates
This commit is contained in:
parent
9cc5ddd776
commit
7d5878872c
|
@ -1,4 +1,5 @@
|
||||||
import shutil
|
import shutil
|
||||||
|
from pathlib import Path
|
||||||
import argparse
|
import argparse
|
||||||
import time
|
import time
|
||||||
from sys import platform
|
from sys import platform
|
||||||
|
@ -54,7 +55,7 @@ def detect(
|
||||||
print('webcam frame %g: ' % (i + 1), end='')
|
print('webcam frame %g: ' % (i + 1), end='')
|
||||||
else:
|
else:
|
||||||
print('image %g/%g %s: ' % (i + 1, len(dataloader), path), end='')
|
print('image %g/%g %s: ' % (i + 1, len(dataloader), path), end='')
|
||||||
save_path = os.path.join(output, path.split('/')[-1])
|
save_path = str(Path(output) / Path(path).name)
|
||||||
|
|
||||||
# Get detections
|
# Get detections
|
||||||
img = torch.from_numpy(img).unsqueeze(0).to(device)
|
img = torch.from_numpy(img).unsqueeze(0).to(device)
|
||||||
|
|
Loading…
Reference in New Issue