DLight Warnings/Errors

If training is failing to start, and you are not receiving an error message telling you what to do, tell us about it here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Training process. If you want to get tips, or better understand the Training process, then you should look in the Training Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
Zitrone
Posts: 1
Joined: Fri Nov 22, 2019 10:11 pm

DLight Warnings/Errors

Post by Zitrone »

I have started a new DLight model. Immediately on startup I get errors/warnings, can I ignore them?
It trains normally and stores the model.

Can a moderator move this to Training Support please

Code: Select all

Loading...
Setting Faceswap backend to NVIDIA
01/28/2022 14:40:48 INFO     Log level set to: INFO
01/28/2022 14:40:50 INFO     Model A Directory: 'E:\Faces\A' (1496 images)
01/28/2022 14:40:50 INFO     Model B Directory: 'E:\Faces\B' (4368 images)
01/28/2022 14:40:50 INFO     Training data directory: E:\DLight-AtoB
01/28/2022 14:40:50 INFO     ===================================================
01/28/2022 14:40:50 INFO       Starting
01/28/2022 14:40:50 INFO       Press 'Stop' to save and quit
01/28/2022 14:40:50 INFO     ===================================================
01/28/2022 14:40:51 INFO     Loading data, this may take a while...
01/28/2022 14:40:51 INFO     Loading Model from Dlight plugin...
01/28/2022 14:40:51 INFO     No existing state file found. Generating.
01/28/2022 14:40:53 INFO     Loading Trainer from Original plugin...
XYZ:\miniconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\utils\generic_utils.py:494: CustomMaskWarning: Custom mask layers require a config and must override get_config. When loading, the custom mask layer must be passed to the custom_objects argument.
warnings.warn('Custom mask layers require a config and must override '

01/28/2022 14:41:14 INFO     [Saved models] - Average loss since last save: face_a: 0.24084, face_b: 0.33067
Exception in Tkinter callback
Traceback (most recent call last):
  File "XYZ:\miniconda3\envs\faceswap\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "XYZ:\miniconda3\envs\faceswap\lib\tkinter\__init__.py", line 814, in callit
    func(*args)
  File "XYZ\faceswap\lib\gui\display_graph.py", line 300, in refresh
    self.calcs = self.thread.get_result()  # Terminate the LongRunningTask object
  File "XYZ\faceswap\lib\gui\utils.py", line 1230, in get_result
    raise self.err[1].with_traceback(self.err[2])
  File "XYZ\faceswap\lib\gui\utils.py", line 1201, in run
    retval = self._target(*self._args, **self._kwargs)
  File "XYZ\faceswap\lib\gui\analysis\stats.py", line 558, in refresh
    self._get_raw()
  File "XYZ\faceswap\lib\gui\analysis\stats.py", line 621, in _get_raw
    loss_dict = _SESSION.get_loss(self._session_id)
  File "XYZ\faceswap\lib\gui\analysis\stats.py", line 174, in get_loss
    loss_dict = self._tb_logs.get_loss(session_id=session_id)
  File "XYZ\faceswap\lib\gui\analysis\event_reader.py", line 466, in get_loss
    self._check_cache(idx)
  File "XYZ\faceswap\lib\gui\analysis\event_reader.py", line 440, in _check_cache
    self._cache_data(session_id)
  File "XYZ\faceswap\lib\gui\analysis\event_reader.py", line 425, in _cache_data
    iterator = self._training_iterator if live_data else tf.compat.v1.io.tf_record_iterator(
  File "XYZ:\miniconda3\envs\faceswap\lib\site-packages\tensorflow\python\util\deprecation.py", line 346, in new_func
    return func(*args, **kwargs)
  File "XYZ:\miniconda3\envs\faceswap\lib\site-packages\tensorflow\python\lib\io\tf_record.py", line 171, in tf_record_iterator
    return _pywrap_record_io.RecordIterator(path, compression_type)
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. tensorflow.python.lib.io._pywrap_record_io.RecordIterator(arg0: str, arg1: str)

Invoked with: None, ''

Exception in Tkinter callback
Traceback (most recent call last):
  File "XYZ:\miniconda3\envs\faceswap\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "XYZ\faceswap\lib\gui\display_graph.py", line 300, in refresh
    self.calcs = self.thread.get_result()  # Terminate the LongRunningTask object
  File "XYZ\faceswap\lib\gui\utils.py", line 1230, in get_result
    raise self.err[1].with_traceback(self.err[2])
  File "XYZ\faceswap\lib\gui\utils.py", line 1201, in run
    retval = self._target(*self._args, **self._kwargs)
  File "XYZ\faceswap\lib\gui\analysis\stats.py", line 558, in refresh
    self._get_raw()
  File "XYZ\faceswap\lib\gui\analysis\stats.py", line 621, in _get_raw
    loss_dict = _SESSION.get_loss(self._session_id)
  File "XYZ\faceswap\lib\gui\analysis\stats.py", line 174, in get_loss
    loss_dict = self._tb_logs.get_loss(session_id=session_id)
  File "XYZ\faceswap\lib\gui\analysis\event_reader.py", line 466, in get_loss
    self._check_cache(idx)
  File "XYZ\faceswap\lib\gui\analysis\event_reader.py", line 440, in _check_cache
    self._cache_data(session_id)
  File "XYZ\faceswap\lib\gui\analysis\event_reader.py", line 425, in _cache_data
    iterator = self._training_iterator if live_data else tf.compat.v1.io.tf_record_iterator(
  File "XYZ:\miniconda3\envs\faceswap\lib\site-packages\tensorflow\python\util\deprecation.py", line 346, in new_func
    return func(*args, **kwargs)
  File "XYZ:\miniconda3\envs\faceswap\lib\site-packages\tensorflow\python\lib\io\tf_record.py", line 171, in tf_record_iterator
    return _pywrap_record_io.RecordIterator(path, compression_type)
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. tensorflow.python.lib.io._pywrap_record_io.RecordIterator(arg0: str, arg1: str)

Invoked with: None, ''
01/28/2022 14:45:32 INFO     [Saved models] - Average loss since last save: face_a: 0.11441, face_b: 0.06936
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: DLight Warnings/Errors

Post by torzdf »

I have not seen this error before. Please provide your sys information as described here:

app.php/rules#rule-4b

My word is final

Locked