Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 69243f0

Browse files
Merge pull request #228 from yagi-3/fix_test_argument_imgs
Fix argument imgs in test
2 parents 7a68e75 + 4d7cb68 commit 69243f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def main(cfg, gpu):
141141
"--imgs",
142142
required=True,
143143
type=str,
144-
help="an image paths, or a directory name"
144+
help="an image path, or a directory name"
145145
)
146146
parser.add_argument(
147147
"--cfg",
@@ -185,8 +185,8 @@ def main(cfg, gpu):
185185
os.path.exists(cfg.MODEL.weights_decoder), "checkpoint does not exitst!"
186186

187187
# generate testing image list
188-
if os.path.isdir(args.imgs[0]):
189-
imgs = find_recursive(args.imgs[0])
188+
if os.path.isdir(args.imgs):
189+
imgs = find_recursive(args.imgs)
190190
else:
191191
imgs = [args.imgs]
192192
assert len(imgs), "imgs should be a path to image (.jpg) or directory."

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /