fix clip bug

pull/3184/head
TianYuan 2 years ago
commit c54822936c

@ -79,8 +79,8 @@ checkpoint_name
├── snapshot_iter_*.pdz ├── snapshot_iter_*.pdz
├── speech_stats.npy ├── speech_stats.npy
├── phone_id_map.txt ├── phone_id_map.txt
├── spk_id_map.txt (optimal) ├── spk_id_map.txt (optional)
└── tone_id_map.txt (optimal) └── tone_id_map.txt (optional)
``` ```
**Vocoders:** **Vocoders:**
```text ```text

@ -87,8 +87,8 @@ checkpoint_name
├── snapshot_iter_*.pdz ├── snapshot_iter_*.pdz
├── speech_stats.npy ├── speech_stats.npy
├── phone_id_map.txt ├── phone_id_map.txt
├── spk_id_map.txt (optimal) ├── spk_id_map.txt (optional)
└── tone_id_map.txt (optimal) └── tone_id_map.txt (optional)
``` ```
**Vocoders:** **Vocoders:**
```text ```text

@ -133,10 +133,10 @@ def _get_download(url, fullname):
total_size = req.headers.get('content-length') total_size = req.headers.get('content-length')
with open(tmp_fullname, 'wb') as f: with open(tmp_fullname, 'wb') as f:
if total_size: if total_size:
with tqdm(total=(int(total_size) + 1023) // 1024) as pbar: with tqdm(total=(int(total_size)), unit='B', unit_scale=True) as pbar:
for chunk in req.iter_content(chunk_size=1024): for chunk in req.iter_content(chunk_size=1024):
f.write(chunk) f.write(chunk)
pbar.update(1) pbar.update(len(chunk))
else: else:
for chunk in req.iter_content(chunk_size=1024): for chunk in req.iter_content(chunk_size=1024):
if chunk: if chunk:

@ -21,6 +21,7 @@ from .transforms import build_transforms
# 这些都写到 updater 里 # 这些都写到 updater 里
def compute_d_loss( def compute_d_loss(
nets: Dict[str, Any], nets: Dict[str, Any],
x_real: paddle.Tensor, x_real: paddle.Tensor,

Loading…
Cancel
Save