Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -57,12 +57,9 @@ def image_create(input_img):
|
|
57 |
args = ProjectorArguments().parse(
|
58 |
args=[str(input_path)],
|
59 |
namespace=Namespace(
|
60 |
-
spectral_sensitivity=spectral_sensitivity,
|
61 |
encoder_ckpt=f"checkpoint/encoder/checkpoint_{spectral_sensitivity}.pt",
|
62 |
-
encoder_name=spectral_sensitivity,
|
63 |
#gaussian=gaussian_radius,
|
64 |
-
log_visual_freq=1000
|
65 |
-
input='text',
|
66 |
)
|
67 |
device = th.device()
|
68 |
generator = create_generator("stylegan2-ffhq-config-f.pt","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f",args,device)
|
|
|
57 |
args = ProjectorArguments().parse(
|
58 |
args=[str(input_path)],
|
59 |
namespace=Namespace(
|
|
|
60 |
encoder_ckpt=f"checkpoint/encoder/checkpoint_{spectral_sensitivity}.pt",
|
|
|
61 |
#gaussian=gaussian_radius,
|
62 |
+
log_visual_freq=1000
|
|
|
63 |
)
|
64 |
device = th.device()
|
65 |
generator = create_generator("stylegan2-ffhq-config-f.pt","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f",args,device)
|