mirror of
https://github.com/svc-develop-team/so-vits-svc.git
synced 2025-01-09 04:27:31 +08:00
chore: ignore some lint issues
This commit is contained in:
parent
f557072b49
commit
647e9faa46
2
train.py
2
train.py
@ -99,7 +99,7 @@ def run(rank, n_gpus, hps):
|
||||
name=utils.latest_checkpoint_path(hps.model_dir, "D_*.pth")
|
||||
global_step=int(name[name.rfind("_")+1:name.rfind(".")])+1
|
||||
#global_step = (epoch_str - 1) * len(train_loader)
|
||||
except:
|
||||
except: # noqa: E722 I have no idea about this CC: @ylzz1997
|
||||
print("load old checkpoint failed...")
|
||||
epoch_str = 1
|
||||
global_step = 0
|
||||
|
2
utils.py
2
utils.py
@ -161,7 +161,7 @@ def load_checkpoint(checkpoint_path, model, optimizer=None, skip_optimizer=False
|
||||
# print("load", k)
|
||||
new_state_dict[k] = saved_state_dict[k]
|
||||
assert saved_state_dict[k].shape == v.shape, (saved_state_dict[k].shape, v.shape)
|
||||
except:
|
||||
except: # noqa: E722 I have no idea about this CC: @ylzz1997
|
||||
print("error, %s is not in the checkpoint" % k)
|
||||
logger.info("%s is not in the checkpoint" % k)
|
||||
new_state_dict[k] = v
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Adapted from https://github.com/junjun3518/alias-free-torch under the Apache License 2.0
|
||||
# LICENSE is in incl_licenses directory.
|
||||
|
||||
from .act import *
|
||||
from .filter import *
|
||||
from .resample import *
|
||||
from .act import * # noqa: F403
|
||||
from .filter import * # noqa: F403
|
||||
from .resample import * # noqa: F403
|
||||
|
Loading…
Reference in New Issue
Block a user