DeepFaceLab icon indicating copy to clipboard operation
DeepFaceLab copied to clipboard

Help! I am getting this error: Error: No segmented faces found.

Open Xlectron opened this issue 5 years ago • 9 comments

Hi All,

I am trying to do some deepfakes for my English assignment, so some help would greatly be appreciated. I am doing a basic, short deepfake, replacing my face with Elon Musk's. I have extracted the faces, and all was going well. When I tried to train it, I got and error message. I have copied the whole console window bellow:

Running trainer.

Model first run. [f] Face type ( h/mf/f/wf/head ?:help ) : wf wf [5] Batch_size ( 2-16 ?:help ) : 2 2 Loaded 0 packed faces from C:\Users[MyUsername]\Documents\DeepFaceLab_NVIDIA\workspace\data_src\aligned Loading samples: 100%|##############################################################| 256/256 [00:00<00:00, 402.45it/s] Filtering: 100%|####################################################################| 256/256 [00:00<00:00, 421.73it/s] Error: No segmented faces found. Traceback (most recent call last): File "C:\Users[MyUsername]\Documents\DeepFaceLab_NVIDIA_internal\DeepFaceLab\mainscripts\Trainer.py", line 57, in trainerThread debug=debug, File "C:\Users[MyUsername]\Documents\DeepFaceLab_NVIDIA_internal\DeepFaceLab\models\Model_XSeg\Model.py", line 17, in init super().init(*args, force_model_class_name='XSeg', **kwargs) File "C:\Users[MyUsername]\Documents\DeepFaceLab_NVIDIA_internal\DeepFaceLab\models\ModelBase.py", line 189, in init self.on_initialize() File "C:\Users[MyUsername]\Documents\DeepFaceLab_NVIDIA_internal\DeepFaceLab\models\Model_XSeg\Model.py", line 133, in on_initialize data_format=nn.data_format) File "C:\Users[MyUsername]\Documents\DeepFaceLab_NVIDIA_internal\DeepFaceLab\samplelib\SampleGeneratorFaceXSeg.py", line 31, in init raise Exception(f"No segmented faces found.") Exception: No segmented faces found.

That was the error message I got. I would greatly appreciated help quickly, because I need to get this done quickly. Also, I set all the settings to there lowest, so that processing power wouldn't be the problem.

Thanks,

Xlectron avatar Sep 02 '20 09:09 Xlectron

this is xseg.

test1230-lab avatar Sep 02 '20 15:09 test1230-lab

this is xseg.

Okay, so what can I do to fix the problem?

Xlectron avatar Sep 02 '20 19:09 Xlectron

xseg is the face masker. read the guide linked on the github

On Wed, Sep 2, 2020 at 3:45 PM HackerBoy [email protected] wrote:

this is xseg.

Okay, so what can I do to fix the problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iperov/DeepFaceLab/issues/881#issuecomment-685957620, or unsubscribe https://github.com/notifications/unsubscribe-auth/APLSDRHJOFPQP5HQNDN4PYDSD2OGBANCNFSM4QSZP7LQ .

test1230-lab avatar Sep 03 '20 14:09 test1230-lab

Dont train with xseg if you didn't use it prior. Use quick96, sounds like you used that. Came across this myself. test1230-lab pointed me to resolve it.

wrecche avatar Dec 17 '20 14:12 wrecche

I'm facing the same problem. I mask a few faces, train with XSeg and results are pretty good. Then I apply the masks, to both src and dst. In the XSeg viewer there is a mask on all faces. However, when I'm merging, around 40 % of the frames "do not have a face". In my merged_mask folder there are only a few faces, and a small percentage of them have the mask applied.

clues?

sergiobd avatar Dec 24 '20 10:12 sergiobd

I'm facing the same problem. I mask a few faces, train with XSeg and results are pretty good. Then I apply the masks, to both src and dst. In the XSeg viewer there is a mask on all faces. However, when I'm merging, around 40 % of the frames "do not have a face". In my merged_mask folder there are only a few faces, and a small percentage of them have the mask applied.

clues?

Did you get any clues on this? I'm having the same results, random missing faces....

adamandersen avatar Aug 25 '21 10:08 adamandersen

"No segmented faces found." What this means is that there are literally no segments. You will Launch the XSeg editor to create one or more segments.

  • XSeg) data_dst mask - edit.bat
  • XSeg) data_src mask - edit.bat

facialmist1 avatar Aug 25 '21 17:08 facialmist1

Sweet thanks

adamandersen avatar Aug 25 '21 18:08 adamandersen

Issue solved / already answered (or it seems like user error), please close it.

joolstorrentecalo avatar Jun 08 '23 21:06 joolstorrentecalo