jingwwu commited on
Commit
f4b6b73
·
verified ·
1 Parent(s): b9c9912

Update models/gen_pipeline.py

Browse files
Files changed (1) hide show
  1. models/gen_pipeline.py +1 -1
models/gen_pipeline.py CHANGED
@@ -386,7 +386,7 @@ class NextStepPipeline:
386
  )
387
 
388
  # 7. unpatchify
389
- latents = self.model.unpatchify(tokens)
390
  latents = (latents / self.scaling_factor) + self.shift_factor
391
 
392
  # 8. decode latents
 
386
  )
387
 
388
  # 7. unpatchify
389
+ latents = self.model.unpatchify(tokens, h=hw[0] // self.down_factor, w=hw[1] // self.down_factor)
390
  latents = (latents / self.scaling_factor) + self.shift_factor
391
 
392
  # 8. decode latents