This commit is contained in:
Glenn Jocher 2019-02-12 17:56:24 +01:00
parent 9cc5ddd776
commit 7d5878872c
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import shutil
from pathlib import Path
import argparse
import time
from sys import platform
@ -54,7 +55,7 @@ def detect(
print('webcam frame %g: ' % (i + 1), end='')
else:
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
img = torch.from_numpy(img).unsqueeze(0).to(device)