mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
_
This commit is contained in:
parent
315f241c51
commit
1981ed0ca8
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ def trainerThread (s2c, c2s, e,
|
||||||
|
|
||||||
if not saved_models_path.exists():
|
if not saved_models_path.exists():
|
||||||
saved_models_path.mkdir(exist_ok=True, parents=True)
|
saved_models_path.mkdir(exist_ok=True, parents=True)
|
||||||
|
|
||||||
|
if dump_ckpt:
|
||||||
|
cpu_only=True
|
||||||
|
|
||||||
model = models.import_model(model_class_name)(
|
model = models.import_model(model_class_name)(
|
||||||
is_training=not dump_ckpt,
|
is_training=not dump_ckpt,
|
||||||
saved_models_path=saved_models_path,
|
saved_models_path=saved_models_path,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue