File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ def __init__(
349349 assert divisible_by (image_size , patch_size )
350350 dim_latent = default (dim_latent , dim )
351351
352+ self .image_size = image_size
352353 self .channels = channels # times 2 due to self-conditioning
353354
354355 patch_height_width = image_size // patch_size
@@ -508,7 +509,6 @@ def __init__(
508509 self ,
509510 model : RIN ,
510511 * ,
511- image_size ,
512512 timesteps = 1000 ,
513513 use_ddim = True ,
514514 noise_schedule = 'sigmoid' ,
@@ -525,7 +525,7 @@ def __init__(
525525 assert objective in {'x0' , 'eps' }, 'objective must be either predict x0 or noise'
526526 self .objective = objective
527527
528- self .image_size = image_size
528+ self .image_size = model . image_size
529529
530530 if noise_schedule == "linear" :
531531 self .gamma_schedule = simple_linear_schedule
Original file line number Diff line number Diff line change 33setup (
44 name = 'RIN-pytorch' ,
55 packages = find_packages (exclude = []),
6- version = '0.4.7 ' ,
6+ version = '0.4.8 ' ,
77 license = 'MIT' ,
88 description = 'RIN - Recurrent Interface Network - Pytorch' ,
99 author = 'Phil Wang' ,
You can’t perform that action at this time.
0 commit comments