We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 239ed0f commit b985178Copy full SHA for b985178
scripts/txt2img.py
@@ -266,7 +266,7 @@ def main():
266
267
x_samples_ddim = model.decode_first_stage(samples_ddim)
268
x_samples_ddim = torch.clamp((x_samples_ddim + 1.0) / 2.0, min=0.0, max=1.0)
269
- x_samples_ddim = x_samples_ddim.cpu().permute(0, 2, 3, 1)
+ x_samples_ddim = x_samples_ddim.cpu().permute(0, 2, 3, 1).numpy()
270
271
x_image = x_samples_ddim
272
safety_checker_input = safety_feature_extractor(numpy_to_pil(x_image), return_tensors="pt")
0 commit comments