[CPU] : CPU
[0] : NVIDIA GeForce RTX 3050 Ti Laptop GPU
[0] 选择哪些GPU设备? : 0
0
[] Session name?
读取记录档summary.txt的名称 ( ?:help ) :
[0] Autobackup every N hour
每几小时备份一次? ( 0..24 ?:help ) :
0
[24] Maximum N backups
最大的备份数量? ( ?:help ) :
24
[n] Write preview history
储存预览历史? ( y/n ?:help ) :
n
[4] Number of samples to preview
预览的视窗样本数? ( 1 - 16 ?:help ) :
4
[n] Use old preview panel?
使用旧的预览面板吗? ( y/n ) :
n
[0] Target iteration
指定训练的目标迭代,0则不限制 :
0
[n] Retrain high loss samples?
是否重新训练高损耗样品? ( y/n ?:help ) :
n
[n] Flip SRC faces randomly
选择是否随机翻转SRC面? ( y/n ?:help ) :
n
[y] Flip DST faces randomly
选择是否随机翻转DST面? ( y/n ?:help ) :
y
[4] Batch_size
批量训练规模?(别玩太大会OOM) ( ?:help ) :
4
[n] Use fp16
是否使用FP16半精度浮点数?(默认N) ( y/n ?:help ) :
n
[8] Max cpu cores to use.
使用的最大cpu核心数辅助?(默认8) ( 1 - 256 ?:help ) :
8
[128] Resolution ( 64-640 ?:help ) :
128
[f] Face type ( h/mf/f/wf/head/custom ?:help ) :
f
[liae-ud] AE architecture ( ?:help ) :
liae-ud
[256] AutoEncoder dimensions ( 32-1024 ?:help ) :
256
[64] Encoder dimensions ( 16-256 ?:help ) :
64
[64] Decoder dimensions ( 16-256 ?:help ) :
64
[22] Decoder mask dimensions ( 16-256 ?:help ) :
22
[n] Eyes priority
训练时是否眼睛优先? ( y/n ?:help ) :
n
[n] Mouth priority
训练时是否口腔优先? ( y/n ?:help ) :
n
[n] Uniform yaw distribution of samples
是否启用均匀化样本中各角度的素材? ( y/n ?:help ) :
n
[n] Blur out mask
是否训练遮罩边缘区域的模糊蒙版? ( y/n ?:help ) :
n
[y] Place models and optimizer on GPU
是否将将模型和优化器放在GPU上运行? ( y/n ?:help ) :
y
[y] Use AdaBelief optimizer
使用AdaBelief优化器?(显存不足时请关闭) ( y/n ?:help ) :
y
[n] Use learning rate dropout
是否启用学习率衰减?(建议后期) ( n/y/cpu ?:help ) :
n
[SSIM] Loss function
图像质量评估的变化损失函数(建议默认不要改变) ( SSIM/MS-SSIM/MS-SSIM+L1 ?:help ) :
SSIM
[5e-05] Learning rate
学习率典型的精细估值(建议默认不要改变) ( 0.0 .. 1.0 ?:help ) :
5e-05
[y] Enable random warp of samples
是否启用样品的随机扭曲变化训练?(中后期不建议启用) ( y/n ?:help ) :
y
[0.0] Random hue/saturation/light intensity
随机色调/饱和度/光照强度? ( 0.0 .. 0.3 ?:help ) :
0.0
[n] Enable random downsample of samples
启用样本的随机调降功能 ( y/n ?:help ) :
n
[n] Enable random noise added to samples
启用添加到样本中的随机噪声 ( y/n ?:help ) :
n
[n] Enable random blur of samples
启用随机模糊的样本 ( y/n ?:help ) :
n
[n] Enable random jpeg compression of samples
启用样本的随机jpeg压缩 ( y/n ?:help ) :
n
[none] Enable random shadows and highlights of samples
启用样本的随机阴影和高光 ( none/src/dst/all ?:help ) :
none
[0.0] GAN power
GAN生成对抗学习的强度(建议后期0.1开始) ( 0.0 .. 10.0 ?:help ) :
0.0
[0.0] Background power
是否学习遮罩外的区域,帮助抹平遮罩边界附近的区域? ( 0.0..1.0 ?:help ) :
0.0
[0.0] Face style power
是否学习脸部明暗色彩学习强度? ( 0.0..100.0 ?:help ) :
0.0
[0.0] Background style power
是否学习背景明暗色彩学习强度? ( 0.0..100.0 ?:help ) :
0.0
[none] Color transfer for src faceset
是否为src进行调色? ( none/rct/lct/mkl/idt/sot/fs-aug ?:help ) :
none
[n] Random color
启动随机调色? ( y/n ?:help ) :
n
[n] Enable gradient clipping
使用梯度剪裁(想防止模型崩溃请开启,训练速度缓降坡训练较慢) ( y/n ?:help ) :
n
[n] Enable pretraining mode
使用预训练模式吗?(正式训练默认为N) ( y/n ?:help ) :
n
初始化模型...: 80%|#######################################################2 | 4/5 [02:11<00:32, 32.90s/it]
when allocating tensor with shape[2048] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[node src_dst_opt/ms_inter_B/upscale1/conv1/bias_0/Assign (defined at D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\optimizers\AdaBelief.py:37) ]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info. This isn't available when running in Eager mode.
Original stack trace for 'src_dst_opt/ms_inter_B/upscale1/conv1/bias_0/Assign':
File "threading.py", line 884, in _bootstrap
File "threading.py", line 916, in _bootstrap_inner
File "threading.py", line 864, in run
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\mainscripts\Trainer.py", line 110, in trainerThread
reduce_clutter= kwargs.get('reduce_clutter', False)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\models\ModelBase.py", line 265, in __init__
self.on_initialize()
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\models\Model_SAEHD\Model.py", line 444, in on_initialize self.src_dst_opt.initialize_variables (self.src_dst_saveable_weights, vars_on_cpu=optimizer_vars_on_cpu, lr_dropout_on_cpu=self.options['lr_dropout']=='cpu')
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\optimizers\AdaBelief.py", line 37, in initialize_variables
ms = { v.name : tf.get_variable ( f'ms_{v.name}'.replace(':','_'), v.shape, dtype=v.dtype, initializer=tf.initializers.constant(0.0), trainable=False) for v in trainable_weights }
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\optimizers\AdaBelief.py", line 37, in <dictcomp>
ms = { v.name : tf.get_variable ( f'ms_{v.name}'.replace(':','_'), v.shape, dtype=v.dtype, initializer=tf.initializers.constant(0.0), trainable=False) for v in trainable_weights }
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1595, in get_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1338, in get_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 593, in get_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 545, in _true_getter
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 963, in _get_single_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 266, in __call__
return cls._variable_v1_call(*args, **kwargs)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 227, in _variable_v1_call
shape=shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 205, in <lambda>
previous_getter = lambda **kwargs: default_variable_creator(None, **kwargs)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 2642, in default_variable_creator
shape=shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 270, in __call__
return super(VariableMetaclass, cls).__call__(*args, **kwargs)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 1670, in __init__
shape=shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 1853, in _init_from_args
validate_shape=validate_shape).op
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\state_ops.py", line 358, in assign
validate_shape=validate_shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\gen_state_ops.py", line 59, in assign
use_locking=use_locking, name=name)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 750, in _apply_op_helper
attrs=attr_protos, op_def=op_def)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\framework\ops.py", line 3569, in _create_op_internal
op_def=op_def)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\framework\ops.py", line 2045, in __init__
self._traceback = tf_stack.extract_stack_for_node(self._c_op)
Traceback (most recent call last):
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\client\session.py", line 1375, in _do_call
return fn(*args)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\client\session.py", line 1360, in _run_fn
target_list, run_metadata)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\client\session.py", line 1453, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[2048] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[{{node src_dst_opt/ms_inter_B/upscale1/conv1/bias_0/Assign}}]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info. This isn't available when running in Eager mode.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\mainscripts\Trainer.py", line 110, in trainerThread
reduce_clutter= kwargs.get('reduce_clutter', False)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\models\ModelBase.py", line 265, in __init__
self.on_initialize()
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\models\Model_SAEHD\Model.py", line 861, in on_initialize model.init_weights()
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\layers\Saveable.py", line 106, in init_weights
nn.init_weights(self.get_weights())
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\ops\__init__.py", line 48, in init_weights
nn.tf_sess.run (ops)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\client\session.py", line 968, in run
run_metadata_ptr)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\client\session.py", line 1191, in _run
feed_dict_tensor, options, run_metadata)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\client\session.py", line 1369, in _do_run
run_metadata)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\client\session.py", line 1394, in _do_call
raise type(e)(node_def, op, message) # pylint: disable=no-value-for-parameter
tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[2048] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[node src_dst_opt/ms_inter_B/upscale1/conv1/bias_0/Assign (defined at D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\optimizers\AdaBelief.py:37) ]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info. This isn't available when running in Eager mode.
Original stack trace for 'src_dst_opt/ms_inter_B/upscale1/conv1/bias_0/Assign':
File "threading.py", line 884, in _bootstrap
File "threading.py", line 916, in _bootstrap_inner
File "threading.py", line 864, in run
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\mainscripts\Trainer.py", line 110, in trainerThread
reduce_clutter= kwargs.get('reduce_clutter', False)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\models\ModelBase.py", line 265, in __init__
self.on_initialize()
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\models\Model_SAEHD\Model.py", line 444, in on_initialize self.src_dst_opt.initialize_variables (self.src_dst_saveable_weights, vars_on_cpu=optimizer_vars_on_cpu, lr_dropout_on_cpu=self.options['lr_dropout']=='cpu')
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\optimizers\AdaBelief.py", line 37, in initialize_variables
ms = { v.name : tf.get_variable ( f'ms_{v.name}'.replace(':','_'), v.shape, dtype=v.dtype, initializer=tf.initializers.constant(0.0), trainable=False) for v in trainable_weights }
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\DeepFaceLab\core\leras\optimizers\AdaBelief.py", line 37, in <dictcomp>
ms = { v.name : tf.get_variable ( f'ms_{v.name}'.replace(':','_'), v.shape, dtype=v.dtype, initializer=tf.initializers.constant(0.0), trainable=False) for v in trainable_weights }
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1595, in get_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1338, in get_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 593, in get_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 545, in _true_getter
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 963, in _get_single_variable
aggregation=aggregation)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 266, in __call__
return cls._variable_v1_call(*args, **kwargs)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 227, in _variable_v1_call
shape=shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 205, in <lambda>
previous_getter = lambda **kwargs: default_variable_creator(None, **kwargs)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 2642, in default_variable_creator
shape=shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 270, in __call__
return super(VariableMetaclass, cls).__call__(*args, **kwargs)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 1670, in __init__
shape=shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\variables.py", line 1853, in _init_from_args
validate_shape=validate_shape).op
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\state_ops.py", line 358, in assign
validate_shape=validate_shape)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\ops\gen_state_ops.py", line 59, in assign
use_locking=use_locking, name=name)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 750, in _apply_op_helper
attrs=attr_protos, op_def=op_def)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\framework\ops.py", line 3569, in _create_op_internal
op_def=op_def)
File "D:\faceAI\RTX3000-4090_2022_10_14\_internal\python-3.6.8\lib\site-packages\tensorflow\python\framework\ops.py", line 2045, in __init__
self._traceback = tf_stack.extract_stack_for_node(self._c_op)