Spaces:
Running
on
T4
Running
on
T4
update map location for cpu
Browse files- tortoise/api.py +1 -1
tortoise/api.py
CHANGED
@@ -219,7 +219,7 @@ class TextToSpeech:
|
|
219 |
resblock_dilation_sizes = [[1, 3, 5], [1, 3, 5], [1, 3, 5]], resblock_kernel_sizes = [3, 7, 11],
|
220 |
upsample_kernel_sizes = [16, 16, 4, 4], upsample_initial_channel = 512, upsample_factors = [8, 8, 2, 2],
|
221 |
cond_channels=1024).to(self.device).eval()
|
222 |
-
hifi_model = torch.load(get_model_path('hifidecoder.pth'))
|
223 |
self.hifi_decoder.load_state_dict(hifi_model, strict=False)
|
224 |
# Random latent generators (RLGs) are loaded lazily.
|
225 |
self.rlg_auto = None
|
|
|
219 |
resblock_dilation_sizes = [[1, 3, 5], [1, 3, 5], [1, 3, 5]], resblock_kernel_sizes = [3, 7, 11],
|
220 |
upsample_kernel_sizes = [16, 16, 4, 4], upsample_initial_channel = 512, upsample_factors = [8, 8, 2, 2],
|
221 |
cond_channels=1024).to(self.device).eval()
|
222 |
+
hifi_model = torch.load(get_model_path('hifidecoder.pth'), map_location=torch.device(self.device))
|
223 |
self.hifi_decoder.load_state_dict(hifi_model, strict=False)
|
224 |
# Random latent generators (RLGs) are loaded lazily.
|
225 |
self.rlg_auto = None
|