deepfakes / faceswap

Deepfakes Software For All
https://www.faceswap.dev
GNU General Public License v3.0
52.05k stars 13.18k forks source link

Fixed dtype error when mixed precision was off #1310

Open bryanlyon opened 1 year ago

bryanlyon commented 1 year ago

When you first try to run a model with some types of layers (such as a modified Phaze-A) without enabling mixed precision, the model can fail to train because the layer wasn't assigned a dtype. To prevent a crash when this happens, we've switched the the config.get function to make sure we get a valid response if no dtype was set.