Linaqruf / kohya-trainer

Adapted from https://note.com/kohya_ss/n/nbf7ce8d80f29 for easier cloning
Apache License 2.0
1.84k stars 302 forks source link

Dreambooth Colab: error in cell 5.2 #224

Open moon47usaco opened 1 year ago

moon47usaco commented 1 year ago

I can not seem to get past cell 5.2 either of the two errors:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in <cell line: 129>:130                                                                          │
│ in process_folder_recursively:69                                                                 │
│ in process_tags:43                                                                               │
│ in read_file:23                                                                                  │
│                                                                                                  │
│ /usr/lib/python3.10/codecs.py:322 in decode                                                      │
│                                                                                                  │
│    319 │   def decode(self, input, final=False):                                                 │
│    320 │   │   # decode input (taking the buffer into account)                                   │
│    321 │   │   data = self.buffer + input                                                        │
│ ❱  322 │   │   (result, consumed) = self._buffer_decode(data, self.errors, final)                │
│    323 │   │   # keep undecoded input until the next call                                        │
│    324 │   │   self.buffer = data[consumed:]                                                     │
│    325 │   │   return result                                                                     │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 45: invalid start byte

...


╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in <cell line: 129>:130                                                                          │
│ in process_folder_recursively:65                                                                 │
│ in get_class_token_from_folder_name:85                                                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
NameError: name 'class_token' is not defined
alinasama commented 1 year ago

I have the same issue, that I can not pass 5.2