-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' #57
Comments
I got this too when I tried a few days ago, for now you can replace that line with a static prompt until it gets fixed prompt = "put your prompt here" #tokenizer.decode(batch['tokens'][random.randint(0, len(batch['tokens'])-1)]) |
thanks, i found that set the '--extended_mode_chunks' parameter can also fix this error. |
@zakinp To what value did you set it? And what does it? I solved it with setting Thank you and regards |
@mcrisafu It is a prompt for generating log images from |
@SY573M404 Thank you. I meant the |
@mcrisafu It seems that anything greater that 1 would work. It is probably caused by a simple typo here: waifu-diffusion/trainer/diffusers_trainer.py Lines 533 to 539 in 1a83e47
Like you mentioned before, there is |
i got this problem when using "diffusers_trainer.py":
Exception caught on rank 0 at step 10, saving checkpoint...
int() argument must be a string, a bytes-like object or a number, not 'list'
Traceback (most recent call last):
File "/root/waifu-diffusion/trainer/diffusers_trainer.py", line 953, in main
prompt = tokenizer.decode(batch['tokens'][random.randint(0, len(batch['tokens'])-1)])
File "/root/miniconda3/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 3367, in decode
return self._decode(
File "/root/miniconda3/lib/python3.8/site-packages/transformers/tokenization_utils.py", line 931, in _decode
filtered_tokens = self.convert_ids_to_tokens(token_ids, skip_special_tokens=skip_special_tokens)
File "/root/miniconda3/lib/python3.8/site-packages/transformers/tokenization_utils.py", line 906, in convert_ids_to_tokens
index = int(index)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
The text was updated successfully, but these errors were encountered: