Skip to content

Commit aeec6e9

Browse files
committed
demo utility tested
1 parent 25d3067 commit aeec6e9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

samples/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# ignore the full version of the training video
2-
pro-gan_training_video_smaller.mp4
2+
pro-gan_training_video_smaller.mp4
3+
4+
# also ignore the trained model weights
5+
GAN_GEN_SHADOW_8.pth

samples/demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
def get_image(point):
2323
img = gen(point, depth=depth, alpha=1).detach().squeeze(0).permute(1, 2, 0)
2424
img = (img - img.min()) / (img.max() - img.min())
25-
return img
25+
return img.cpu().numpy()
2626

2727
# generate the set of points:
28-
fixed_points = th.randn(num_points, 512)
28+
fixed_points = th.randn(num_points, 512).to(device)
2929
points = [] # start with an empty list
3030
for i in range(len(fixed_points) - 1):
3131
pt_1 = fixed_points[i].view(1, -1)

0 commit comments

Comments
 (0)