mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 21:12:07 -07:00
removed use_float16 option
fix multigpu training
This commit is contained in:
parent
5fe5fa131c
commit
9fd49ee3f0
3 changed files with 36 additions and 37 deletions
|
@ -163,7 +163,7 @@ class QModel(ModelBase):
|
|||
|
||||
masked_training = True
|
||||
|
||||
models_opt_on_gpu = len(devices) >= 1 and all([dev.total_mem_gb >= 2 for dev in devices])
|
||||
models_opt_on_gpu = len(devices) >= 1 and all([dev.total_mem_gb >= 4 for dev in devices])
|
||||
models_opt_device = '/GPU:0' if models_opt_on_gpu and self.is_training else '/CPU:0'
|
||||
optimizer_vars_on_cpu = models_opt_device=='/CPU:0'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue