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

When I use 'gen_data.py' to generate data, why do I get a black logo_resisize. png? #8

Open
MtYCNN opened this issue Nov 9, 2022 · 0 comments

Comments

@MtYCNN
Copy link

MtYCNN commented Nov 9, 2022

The code in 'gen_data.py' is as follows:
img_logo = Image.new('L', (opts.logo_size, opts.logo_size))
img_logo.save(os.path.join(opts.output_dir, opts.split, cid, 'logo_resized.png'))

See what this means is that it just saves a black image and doesn't add anything else. But in the data set, logo_sized.png is just an image with white text on a black background

Is there any part left out?

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

No branches or pull requests

1 participant