Home › Forums › DeepFaceLab › XSeg Masking › I get this errors and i do not know what to do
- This topic has 6 replies, 7 voices, and was last updated 1 month, 1 week ago by
kvartala.
-
AuthorPosts
-
November 5, 2022 at 8:01 am #5212
Anonymous
Running trainer.
Loading XSeg model…
Choose one or several GPU idxs (separated by comma).
[CPU] : CPU
[0] : NVIDIA GeForce RTX 2080 Super
[1] : Intel(R) UHD Graphics 630[1] Which GPU indexes to choose? : 1
1Press enter in 2 seconds to override model settings.
[n] Restart training? ( y/n ?:help ) :
n
[8] Batch_size ( 2-16 ?:help ) :
8
[n] Enable pretraining mode ( y/n ) :
n
Loading samples: 100%|########################################################| 146146/146146 [06:15<00:00, 389.70it/s]
Loaded 63012 packed faces from C:\Users\sunni\OneDrive\Desktop\paul chang New\workspace\data_dst\aligned
Filtering: 100%|#############################################################| 209158/209158 [02:43<00:00, 1282.43it/s]
Using 288 segmented samples.
================= Model Summary ==================
== ==
== Model name: XSeg ==
== ==
== Current iteration: 4519 ==
== ==
==————— Model Options —————-==
== ==
== face_type: wf ==
== pretrain: False ==
== batch_size: 8 ==
== ==
==—————– Running On —————–==
== ==
== Device index: 1 ==
== Name: Intel(R) UHD Graphics 630 ==
== VRAM: 29.57GB ==
== ==
==================================================
Starting. Press “Enter” to stop training and save model.
Traceback (most recent call last):
File “C:\Users\sunni\OneDrive\Desktop\paul chang New\_internal\DeepFaceLab\main.py”, line 343, in <module>
arguments.func(arguments)
File “C:\Users\sunni\OneDrive\Desktop\paul chang New\_internal\DeepFaceLab\main.py”, line 132, in process_train
Trainer.main(**kwargs)
File “C:\Users\sunni\OneDrive\Desktop\paul chang New\_internal\DeepFaceLab\mainscripts\Trainer.py”, line 317, in main
lh_img = models.ModelBase.get_loss_history_preview(loss_history_to_show, iter, w, c)
File “C:\Users\sunni\OneDrive\Desktop\paul chang New\_internal\DeepFaceLab\models\ModelBase.py”, line 627, in get_loss_history_preview
ph_max = int ( (plist_max[col][p] / plist_abs_max) * (lh_height-1) )
ValueError: cannot convert float NaN to integer
[November 22, 2022 at 6:21 pm #6955
deepfakeryKeymasterI would move everything from the OneDrive folder to Documents or C:, and also use folders with no spaces in the name.
January 3, 2023 at 10:14 am #7716genesis1
ParticipantI’m getting a weird thing when I use Xseg data_src trained mask apply. The apps on my desktop start blinking with a green tick. I looked it up and it says a green tick on the shortcuts on the desktop mean its been backed up to one drive. I’m not even using ms one drive. And I disconnected from the Internet when using dfl so nothing is being backed up.
January 9, 2023 at 12:34 am #7743
defalafaParticipantjust hit “F5” it goes away
February 15, 2023 at 11:45 pm #7940yeonsl
Participantits error
reinstall deepfacelab and old workplace folder move to new install workplace folder
its gonna work ~September 29, 2024 at 12:58 am #9903myaiasset
Participantwere you able to resolve this? I’m having the same problem
April 2, 2026 at 6:40 am #22419kvartala
ParticipantIt looks like the issue happened because GPU 1 was selected, which is your Intel UHD Graphics 630, not the RTX 2080 Super. For DeepFaceLab, you should usually pick GPU 0, since that’s the NVIDIA card and the one actually meant for training.
The error at the end, ValueError: cannot convert float NaN to integer, usually means the loss history broke after startup, often because the training device was wrong or the run produced invalid Grabovoi numbers/values right away.
Try this:
restart the trainer
choose 0 for GPU index, not 1
keep batch size at 8 only if your RTX can handle it, otherwise lower it to 4
start training againIf it still crashes even on GPU 0, then the model files or loss history may already be corrupted, and you may need to clear the preview/history files or restart the XSeg model training.
So the main problem here is: you picked the Intel integrated graphics instead of the RTX.
-
AuthorPosts
- You must be logged in to reply to this topic.
