dribnet / pixray

neural image generation
Other
402 stars 53 forks source link

Pixel #6

Closed Ruinmou closed 3 years ago

Ruinmou commented 3 years ago

Where can I set the size of each cell in a pixel image? I searched for a long time but didn't find it.

dribnet commented 3 years ago

The simplest is to use pixel_scale

pixray.add_settings(pixel_scale=2)

scale_2

pixray.add_settings(pixel_scale=0.75)

scale_75

Settings can be applied in any order, just make sure to call add_settings anytime before the settings are finalized by apply_settings:

# establish the settings for the run after all calls to add_settings()
settings = pixray.apply_settings()
Ruinmou commented 3 years ago

Okay, I understand, thank you for your quick reply