You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the image grid that is added to Tensorboard is created with grid = torchvision.utils.make_grid(images). It would be nice to have control over the nrow and normalize args of make_grid, e.g. through grid = torchvision.utils.make_grid(images, nrow=self.nrow, normalize=self.normalize).
Pitch
Change TensorboardGenerativeModelImageSampler's init from
chris-clem
changed the title
Add nrowand normalizeargs to TensorboardGenerativeModelImageSampler
Add nrow and normalize args to TensorboardGenerativeModelImageSampler
Jan 3, 2021
@chris-clem Thank you for your suggestion! +1 for this change :]
It seems torchvision.utils.make_grid has other arguments as well, which we could possibly wrap them here. Do you think we should add other parameters, too, like padding, pad_value, ... of the function?
🚀 Feature
Add
nrow
andnormalize
args toTensorboardGenerativeModelImageSampler
Motivation
At the moment, the image grid that is added to Tensorboard is created with
grid = torchvision.utils.make_grid(images)
. It would be nice to have control over thenrow
andnormalize
args ofmake_grid
, e.g. throughgrid = torchvision.utils.make_grid(images, nrow=self.nrow, normalize=self.normalize)
.Pitch
Change
TensorboardGenerativeModelImageSampler
's init fromto
and
grid = torchvision.utils.make_grid(images)
togrid = torchvision.utils.make_grid(images, nrow=self.nrow, normalize=self.normalize)
.Alternatives
make_grid
's args with sensible default valuesThe text was updated successfully, but these errors were encountered: