Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Commit
•
be788b7
1
Parent(s):
d726fd1
Update model.py
Browse files
model.py
CHANGED
@@ -181,7 +181,7 @@ class Model:
|
|
181 |
samples = [
|
182 |
Image.fromarray(
|
183 |
sample.permute(1, 2, 0).cpu().detach().numpy().clip(
|
184 |
-
0, 255).astype(np.uint8).resize((origin_W, origin_H))
|
185 |
]
|
186 |
del condition_img
|
187 |
torch.cuda.empty_cache()
|
@@ -276,7 +276,7 @@ class Model:
|
|
276 |
samples = 255 * (samples * 0.5 + 0.5)
|
277 |
samples = [
|
278 |
Image.fromarray(
|
279 |
-
sample.permute(1, 2, 0).cpu().detach().numpy().clip(0, 255).astype(np.uint8).resize((origin_W, origin_H))
|
280 |
for sample in samples
|
281 |
]
|
282 |
del condition_img
|
|
|
181 |
samples = [
|
182 |
Image.fromarray(
|
183 |
sample.permute(1, 2, 0).cpu().detach().numpy().clip(
|
184 |
+
0, 255).astype(np.uint8)).resize((origin_W, origin_H)) for sample in samples
|
185 |
]
|
186 |
del condition_img
|
187 |
torch.cuda.empty_cache()
|
|
|
276 |
samples = 255 * (samples * 0.5 + 0.5)
|
277 |
samples = [
|
278 |
Image.fromarray(
|
279 |
+
sample.permute(1, 2, 0).cpu().detach().numpy().clip(0, 255).astype(np.uint8)).resize((origin_W, origin_H))
|
280 |
for sample in samples
|
281 |
]
|
282 |
del condition_img
|