faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

EOL Error when training

Open NagashSzarekh opened this issue 8 years ago • 6 comments

After pulling the latest commit today I am now getting the below error when trying to train.

Command python faceswap.py train -A "D:\Fakes\Data\Dataset_A\Faces" -B "D:\Fakes\Data\Dataset_B\Faces" -m "D:\Fakes\Model" -p -s 100 -bs 80 -t LowMem

Error Traceback (most recent call last): File "faceswap.py", line 12, in from scripts.convert import ConvertImage File "D:\Fakes\faceswap\scripts\convert.py", line 100 help="Erosion kernel size. (Masked converter only). Positive values apply erosion which reduces the edge
^ SyntaxError: EOL while scanning string literal

NagashSzarekh avatar Mar 03 '18 15:03 NagashSzarekh

remove the whitespace after \ in line 100

Ianmcmill avatar Mar 03 '18 15:03 Ianmcmill

@babilio is that due to the #238 PR?

Clorr avatar Mar 03 '18 15:03 Clorr

I cannot speak for babilio but yes. #238 . Just a typo in his commit.

Ianmcmill avatar Mar 03 '18 16:03 Ianmcmill

I updated the code, can anyone confirm it is ok?

Clorr avatar Mar 03 '18 16:03 Clorr

I can confirm the problem appears to be fixed.

NagashSzarekh avatar Mar 03 '18 16:03 NagashSzarekh

Oops sorry guys I edited the helper just in github. Thanks for fixing this. I will be more careful in future commits.

babilio avatar Mar 03 '18 20:03 babilio