Skip to content

Pixel masks #29

@ardila

Description

@ardila

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions