Spaces:
Runtime error
Runtime error
bump model
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def inference(text, init_image, skip_timesteps, clip_guidance_scale, tv_scale, r
|
|
107 |
print('Using fp16: ',model_config['use_fp16'])
|
108 |
print('Using device:', device)
|
109 |
model, diffusion = create_model_and_diffusion(**model_config)
|
110 |
-
model.load_state_dict(torch.load('
|
111 |
model.requires_grad_(False).eval().to(device).float()
|
112 |
for name, param in model.named_parameters():
|
113 |
if 'qkv' in name or 'norm' in name or 'proj' in name:
|
|
|
107 |
print('Using fp16: ',model_config['use_fp16'])
|
108 |
print('Using device:', device)
|
109 |
model, diffusion = create_model_and_diffusion(**model_config)
|
110 |
+
model.load_state_dict(torch.load('256x256_openai_comics_faces_v2.by_alex_spirin_114k.pt', map_location='cpu'))
|
111 |
model.requires_grad_(False).eval().to(device).float()
|
112 |
for name, param in model.named_parameters():
|
113 |
if 'qkv' in name or 'norm' in name or 'proj' in name:
|