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

Demo bugs #85

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Demo bugs #85

wants to merge 2 commits into from

Conversation

affromero
Copy link

This PR enables running OneFormer demo for one image, and to remove the deprecated np.bool

@affromero
Copy link
Author

color min/max bug

Use case:
By using this image
demo_oneformer

I got this error:
Untitled

@@ -124,7 +124,7 @@ def get_parser():
if len(args.input) == 1:
for k in visualized_output.keys():
os.makedirs(k, exist_ok=True)
out_filename = os.path.join(k, args.output)
out_filename = os.path.join(args.output, k)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @affromero, thanks for the PR!

A question: for a single input, we pass args.output as <FILENAME>.ext where ext can be jpg/png. So, this change would not work for this case. f"{k}_{args.output}" should solve this, IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants