Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference on a directory of images #182

Closed
LukasBommes opened this issue Mar 31, 2022 · 1 comment · Fixed by #210
Closed

Inference on a directory of images #182

LukasBommes opened this issue Mar 31, 2022 · 1 comment · Fixed by #210
Assignees
Labels
Deploy Enhancement New feature or request
Milestone

Comments

@LukasBommes
Copy link
Contributor

LukasBommes commented Mar 31, 2022

It would be handy if the inference script could handle not only a single image, but an entire folder of images. Since looking at only a single example does not provide a complete picture of the algorithm's performance.

I know, this could be achieved with a bash script. But it is easier for newcomers to have this functionality built into the inference script.

I would automatically disable graphical output (imshow) when performing inference on an entire folder (requring specifiction of the save_path in that case). The directory and its subdirectories could be recursively traversed and the outputs could be stored in the same directory structure at the location indicated by the save_path.

I could make a PR with this. What do you think?

@samet-akcay
Copy link
Contributor

@LukasBommes, yeah this could be possible.

It's also possible to look at the results of the test set without running the inference script. So when you set log_images_to: ["local"] in project section of the config file, tools/train.py saves the results of the entire test set to `./results////images/...

Here is an example
000

@samet-akcay samet-akcay added Enhancement New feature or request Deploy labels Apr 1, 2022
@samet-akcay samet-akcay added this to the Backlog milestone Apr 4, 2022
@ashwinvaidya17 ashwinvaidya17 self-assigned this Apr 4, 2022
@samet-akcay samet-akcay modified the milestones: Backlog, v0.2.7 Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deploy Enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants