Open XT-404 opened 1 month ago
One mistake at a time. This one's just one day at a time.
For anyone still having this issue, if you have tried training a lora with your dataset and had this issue "cannot write mode RGBA as JPEG" and you then addresed the file types by updating/changing them you should've encountered the issue above after trying to train again. To fix it simply go to your datasets folder and delete the folder that's there of the lora you're trying to create and then simply try training again and you shouldn't receive any errors. This worked for me and had to make sure to share.
Datasets Folder Directory Location Pinokio> Api> fluxgym.git> datasets> x-lora folder.
Found a Solution!
For anyone still having this issue, if you have tried training a lora with your dataset and had this issue "cannot write mode RGBA as JPEG" and you then addresed the file types by updating/changing them you should've encountered the issue above after trying to train again. To fix it simply go to your datasets folder and delete the folder that's there of the lora you're trying to create and then simply try training again and you shouldn't receive any errors. This worked for me and had to make sure to share.
Datasets Folder Directory Location Pinokio> Api> fluxgym.git> datasets> x-lora folder.
Thanks work for me!
Error CODE 1 :
The main error here is related to a file encoding issue. Specifically, you have a UnicodeDecodeError, which indicates that the file CurvyLover_30.txt contains characters that are not encoded in UTF-8, causing a failure when reading the file.
Here are the details and possible solutions:
Text file encoding issue: The following error appears in the log:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 186: invalid start byte
This means that a character at position 186 of the file CurvyLover_30.txt is not encoded in UTF-8. The problematic character seems to be the byte 0xa0, which could be a non-breaking space or another special character that is not compatible with the expected encoding.Open the file CurvyLover_30.txt in a text editor that supports different encodings (such as VSCode or Notepad++). Ensure that the file is encoded in UTF-8. If it is not, convert the file to UTF-8 (without BOM). If the editor highlights special or invisible characters, remove them or replace them with compatible characters. Using a different encoding in the script: If you want to avoid this issue without manually modifying the files, you can specify a different encoding in your Python code when reading the file, such as ISO-8859-1 or latin1, which accepts a wider range of characters:
Dataset file verification: The log also indicates the processing of files from the dataset in the directory H:\fluxgym\datasets\curvylover, which contains 80 image and text files. It is recommended to check if other files in this folder may also have similar issues.
By correcting the text file’s encoding or adapting the encoding used in the Python code, this should resolve the UnicodeDecodeError.