while running x seg train in deepface live I was getting this error ( Error: name 'samples_dat_path' is not defined )
vishnpersonal1234 opened this issue · 0 comments
– Extracting DeepfaceLab, going over what to keep and what to discard | Faceset and model files
– Extracting images from DATA_SRC.mp4
– Deleting SRC images which do not contain your SRC character
– Extracting faces from source imagery (Whole Face)
– How to quickly (more or less) delete bad alignments or extracted faces which are not good quality, or are not your SRC character
– Checking out the extracted faces after deleting all unwanted images
– Applying Generic Xseg mask & training ----- At this step while running x seg train in deepface live I was getting this error ( Error: name 'samples_dat_path' is not defined )
During x seg training phase
Running trainer.
Model first run.
Choose one or several GPU idxs (separated by comma).
[CPU] : CPU
[0] : NVIDIA GeForce RTX 3090
[0] Which GPU indexes to choose? : 0
0
[wf] Face type ( h/mf/f/wf/head ?:help ) : wf
wf
[8] Batch_size ( 2-16 ?:help ) : 8
8
[n] Enable pretraining mode ( y/n ) : n
Loading samples: 100%|##############################################################| 654/654 [00:02<00:00, 271.86it/s]
Error: name 'samples_dat_path' is not defined
Traceback (most recent call last):
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\samplelib\SampleLoader.py", line 54, in load
result = samplelib.PackedFaceset.load(samples_path)
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\samplelib\PackedFaceset.py", line 142, in load
samples_configs = pickle.loads ( f.read(sizeof_samples_bytes) )
_pickle.UnpicklingError: invalid load key, '\x00'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\mainscripts\Trainer.py", line 58, in trainerThread
debug=debug)
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\models\Model_XSeg\Model.py", line 17, in init
super().init(*args, force_model_class_name='XSeg', **kwargs)
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\models\ModelBase.py", line 193, in init
self.on_initialize()
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\models\Model_XSeg\Model.py", line 166, in on_initialize
data_format=nn.data_format)
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\samplelib\SampleGeneratorFaceXSeg.py", line 26, in init
samples = sum([ SampleLoader.load (SampleType.FACE, path) for path in paths ] )
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\samplelib\SampleGeneratorFaceXSeg.py", line 26, in
samples = sum([ SampleLoader.load (SampleType.FACE, path) for path in paths ] )
File "D:\DeepFaceLab\DeepFaceLab_NVIDIA_RTX3000_series_internal\DeepFaceLab\samplelib\SampleLoader.py", line 56, in load
io.log_err(f"Error occured while loading samplelib.PackedFaceset.load {str(samples_dat_path)}, {traceback.format_exc()}")
NameError: name 'samples_dat_path' is not defined