mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
fixed model renaming/deleting
This commit is contained in:
parent
c485e1718a
commit
17337ea8f8
2 changed files with 9 additions and 1 deletions
|
@ -95,7 +95,7 @@ class ModelBase(object):
|
|||
if is_rename:
|
||||
new_model_name = io.input_str(f"Enter new name of the model")
|
||||
|
||||
for filepath in pathex.get_file_paths(saved_models_path):
|
||||
for filepath in pathex.get_paths(saved_models_path):
|
||||
filepath_name = filepath.name
|
||||
|
||||
model_filename, remain_filename = filepath_name.split('_', 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue