Skip to content

Commit

Permalink
Temporal Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
curegit committed Feb 9, 2021
1 parent 03a0bfa commit 72d3908
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@
# Load model
if args.generator is not None:
print("Loading generator")
generator.load_model(args.generator)
generator.load_state(args.generator)

# GPU setting
if args.device >= 0:
print("Converting to GPU")
generator.to_gpu(args.device)
generator.to_device(args.device)

# Load center latent
'''
Expand Down Expand Up @@ -103,8 +101,8 @@
y.to_cpu()
for j in range(n):
filename = f"{i + j + 1}"
np.save(build_filepath(args.dest, filename, "npy", args.force), z.array[i])
save_image(y.array[i], build_filepath(args.dest, filename, "png", args.force))
np.save(build_filepath(args.dest, filename, "npy", args.force), z.array[j])
save_image(y.array[j], build_filepath(args.dest, filename, "png", args.force))
'''
# Generate images
c = 0
Expand Down

0 comments on commit 72d3908

Please sign in to comment.