Skip to content

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

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