Page 1 of 1
M1 Macbook Pro Training Crash - TypeError: 'NoneType' object is not subscriptable
Posted: Thu Apr 20, 2023 10:10 pm
by DrDreGFunk
Hello, every-time I hit the training button it'll run for a little bit and then it'll present this 'NoneType' error. No idea whats going on - I've attached my crash log for more details. Also I was searching the forums, if M1 macs and Faceswap are working correctly now, does the GPU run smoothly/better? If so is there a way to switch it instead of using the CPU?
Many thanks
Re: M1 Macbook Pro Training Crash - TypeError: 'NoneType' object is not subscriptable
Posted: Fri Apr 21, 2023 12:46 pm
by torzdf
It looks like at least 1 image (I suspect on your B side, but I can't be sure of that) is not a Faceswap extracted image. When the process attempts to load the metadata for this image (alignment information/mask etc) it cannot find it, so the process errors.
Re: M1 Macbook Pro Training Crash - TypeError: 'NoneType' object is not subscriptable
Posted: Wed Apr 26, 2023 1:58 am
by DrDreGFunk
Thank you so much for your response, I found some time today to re-extract the faces and the problem now seems to be solved! However, I now run into another error as I want to trial out the Realface model. Looks like it has something to do with ffmpeg, I'll attach the recent crash log here. Many thanks in advance!
Edit* I tried running “brew install ffmpeg” and that seemed to fix it!
Re: M1 Macbook Pro Training Crash - TypeError: 'NoneType' object is not subscriptable
Posted: Thu Apr 27, 2023 12:36 pm
by torzdf
You shouldn't need to brew install ffmpeg, as we include it as part of Faceswap. However, if this works for you, then that is all good.
Also, I don't have an M1 Mac to test, so there is a chance this is a real problem on M1 Macs.