Commit d1076c79 authored by novelailab's avatar novelailab

contigousness

parent 35fb2802
......@@ -123,6 +123,7 @@ class StableDiffusionModel(nn.Module):
for x_sample in x_samples_ddim:
x_sample = 255. * rearrange(x_sample.cpu().numpy(), 'c h w -> h w c')
x_sample = x_sample.astype(np.uint8)
x_sample = np.ascontiguousarray(x_sample)
images.append(x_sample)
return images
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment