Page 1 of 1

Error During training

Posted: Tue Mar 15, 2022 1:08 am
by cedenburn

Error during training . I removed some images from a sorted file and removed the faces from the alignment file. I then proceeded to training again and received an error. I can restore the models and it will go back some distance 0.01977. I then train back down to a certain point 0.00107 and then I receive another error. It then repeats the process. It appears the model file may have an issue. Sorry I failed to capture the original error message. Thank you.


Re: Error During training

Posted: Tue Mar 15, 2022 2:55 pm
by torzdf

I have never seen the first error before. It is basically Windows throwing an error on a simple print statement, which suggests an issue with your OS. It may be related to the 2nd issue, which is a permissions issue.

Code: Select all

PermissionError: [WinError 5] Access is denied: 'C:\\Users\\camer\\Desktop\\FS\\Model\\original_logs' -> 'C:\\Users\\camer\\Desktop\\FS\\Model\\original_archived_20220312_094730\\original_logs'

In the first instance, check your permissions. In the 2nd, make sure you haven't filled your hard disk up. If neither of these are the problem, then I am afraid I am at a loss to explain it.


Re: Error During training

Posted: Tue Apr 19, 2022 8:12 pm
by cedenburn

Re occurring problem. The program closes before I get the error message. I can restore the file but the same problem returns. This happens well over 5 meg interations so permissions are OK. The Hdd has plenty of space. Not sure why it would attempt to print all of the sudden in the same area after starting training all over again. Win 10. It may be a file issue in one of the folders.

File "C:\Users\camer\faceswap\lib\cli\launcher.py", line 182, in execute_script
process.process()
File "C:\Users\camer\faceswap\scripts\train.py", line 190, in process
self._end_thread(thread, err)
File "C:\Users\camer\faceswap\scripts\train.py", line 230, in end_thread
thread.join()
File "C:\Users\camer\faceswap\lib\multithreading.py", line 121, in join
raise thread.err[1].with_traceback(thread.err[2])
File "C:\Users\camer\faceswap\lib\multithreading.py", line 37, in run
self.
target(*self.args, **self.kwargs)
File "C:\Users\camer\faceswap\scripts\train.py", line 252, in _training
raise err
File "C:\Users\camer\faceswap\scripts\train.py", line 242, in training
self.
run_training_cycle(model, trainer)
File "C:\Users\camer\faceswap\scripts\train.py", line 327, in run_training_cycle
trainer.train_one_step(viewer, timelapse)
File "C:\Users\camer\faceswap\plugins\train\trainer\_base.py", line 224, in train_one_step
self.
print_loss(loss)
File "C:\Users\camer\faceswap\plugins\train\trainer\_base.py", line 304, in _print_loss
print("\r{}".format(output), end="")
OSError: [Errno 22] Invalid argument


Re: Error During training

Posted: Sun Apr 24, 2022 7:12 pm
by torzdf

Ok, that I really can't explain. A print statement shouldn't be raising an OS Error :/