Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def main(cfg, gpu):
"--imgs",
required=True,
type=str,
help="an image paths, or a directory name"
help="an image path, or a directory name"
)
parser.add_argument(
"--cfg",
Expand Down Expand Up @@ -185,8 +185,8 @@ def main(cfg, gpu):
os.path.exists(cfg.MODEL.weights_decoder), "checkpoint does not exitst!"

# generate testing image list
if os.path.isdir(args.imgs[0]):
imgs = find_recursive(args.imgs[0])
if os.path.isdir(args.imgs):
imgs = find_recursive(args.imgs)
else:
imgs = [args.imgs]
assert len(imgs), "imgs should be a path to image (.jpg) or directory."
Expand Down