mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 04:52:13 -07:00
Export AMP/SAEHD: added "Export quantized" option
This commit is contained in:
parent
f5cc54177f
commit
83b1412da7
2 changed files with 8 additions and 2 deletions
|
@ -125,7 +125,10 @@ class AMPModel(ModelBase):
|
|||
if ct_mode == 'none':
|
||||
ct_mode = None
|
||||
|
||||
use_fp16 = self.is_exporting
|
||||
use_fp16 = False
|
||||
if self.is_exporting:
|
||||
use_fp16 = io.input_bool ("Export quantized?", False, help_message='Makes the exported model faster. If you have problems, disable this option.')
|
||||
|
||||
conv_dtype = tf.float16 if use_fp16 else tf.float32
|
||||
|
||||
class Downscale(nn.ModelBase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue