mirror of
https://github.com/deepfakes/faceswap
synced 2025-06-09 04:36:50 -04:00
Bugfix: Handle distribution strat in convert
This commit is contained in:
parent
54398559ff
commit
dcb436c9df
1 changed files with 5 additions and 1 deletions
|
@ -405,7 +405,11 @@ class Settings():
|
||||||
if self._use_mixed_precision:
|
if self._use_mixed_precision:
|
||||||
logger.info("Enabling Mixed Precision Training.")
|
logger.info("Enabling Mixed Precision Training.")
|
||||||
|
|
||||||
self._strategy = self._get_strategy(arguments.distribution_strategy)
|
if hasattr(arguments, "distribution_strategy"):
|
||||||
|
strategy = arguments.distribution_strategy
|
||||||
|
else:
|
||||||
|
strategy = "default"
|
||||||
|
self._strategy = self._get_strategy(strategy)
|
||||||
logger.debug("Initialized %s", self.__class__.__name__)
|
logger.debug("Initialized %s", self.__class__.__name__)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Add table
Reference in a new issue