update
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
from models import build_model
|
3 |
from PIL import Image
|
@@ -8,6 +9,7 @@ import torch
|
|
8 |
from tqdm import trange
|
9 |
import imageio
|
10 |
|
|
|
11 |
checkpoint = 'clevr.pth'
|
12 |
state = torch.load(checkpoint, map_location='cpu')
|
13 |
G = build_model(**state['model_kwargs_init']['generator_smooth'])
|
@@ -19,6 +21,7 @@ G_kwargs= dict(noise_mode='const',
|
|
19 |
fused_modulate=False,
|
20 |
impl='cuda',
|
21 |
fp16_res=None)
|
|
|
22 |
|
23 |
def trans(x, y, z, length):
|
24 |
w = h = length
|
|
|
1 |
+
print('start!', flush=True)
|
2 |
import gradio as gr
|
3 |
from models import build_model
|
4 |
from PIL import Image
|
|
|
9 |
from tqdm import trange
|
10 |
import imageio
|
11 |
|
12 |
+
print('load!', flush=True)
|
13 |
checkpoint = 'clevr.pth'
|
14 |
state = torch.load(checkpoint, map_location='cpu')
|
15 |
G = build_model(**state['model_kwargs_init']['generator_smooth'])
|
|
|
21 |
fused_modulate=False,
|
22 |
impl='cuda',
|
23 |
fp16_res=None)
|
24 |
+
print('load finish', flush=True)
|
25 |
|
26 |
def trans(x, y, z, length):
|
27 |
w = h = length
|