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

Pixel masks #29

Open
ardila opened this issue Sep 29, 2014 · 0 comments
Open

Pixel masks #29

ardila opened this issue Sep 29, 2014 · 0 comments

Comments

@ardila
Copy link
Member

ardila commented Sep 29, 2014

I have pushed a new feature: getting pixel masks. It is quite hacky and can give imperfect results:

import genthor.datasets as gd
dataset = gd.GenerativeDatasetTest()
preproc = {'crop': None,
 'crop_rand': None,
 'dtype': 'float32',
 'mask': None,
 'mode': 'RGB',
 'normalize': False,
 'size': (256, 256, 3),
 'seed': 0}
pm = dataset.get_pixel_masks(preproc)
imshow(pm[50])

Which comes from the fact that I am rendering on a solid color background and then checking which points are that color. @yamins81 Are there any simple tricks I could play with the lighting spec and choice of solid color that would minimize these types of errors?

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