Spaces:
Runtime error
Runtime error
load weight on cpu to fix zerogpu error
Browse files
webgui.py
CHANGED
|
@@ -114,7 +114,7 @@ denoising_unet.load_state_dict(torch.load(config.denoising_unet_path, map_locati
|
|
| 114 |
|
| 115 |
## face locator init
|
| 116 |
face_locator = FaceLocator(320, conditioning_channels=1, block_out_channels=(16, 32, 96, 256)).to(dtype=weight_dtype, device="cuda")
|
| 117 |
-
face_locator.load_state_dict(torch.load(config.face_locator_path))
|
| 118 |
|
| 119 |
## load audio processor params
|
| 120 |
audio_processor = load_audio_model(model_path=config.audio_model_path, device=device)
|
|
|
|
| 114 |
|
| 115 |
## face locator init
|
| 116 |
face_locator = FaceLocator(320, conditioning_channels=1, block_out_channels=(16, 32, 96, 256)).to(dtype=weight_dtype, device="cuda")
|
| 117 |
+
face_locator.load_state_dict(torch.load(config.face_locator_path, map_location='cpu'))
|
| 118 |
|
| 119 |
## load audio processor params
|
| 120 |
audio_processor = load_audio_model(model_path=config.audio_model_path, device=device)
|