Skip to content

Commit

Permalink
use random image in demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lasseha committed Mar 29, 2018
1 parent 0f32903 commit 2fb5631
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ class InferenceConfig(coco.CocoConfig):

# Load a random image from the images folder
file_names = next(os.walk(IMAGE_DIR))[2]
#image = skimage.io.imread(os.path.join(IMAGE_DIR, random.choice(file_names)))
image = skimage.io.imread(os.path.join(IMAGE_DIR, file_names[-1]))
image = skimage.io.imread(os.path.join(IMAGE_DIR, random.choice(file_names)))

# Run detection
results = model.detect([image])
Expand Down

0 comments on commit 2fb5631

Please sign in to comment.