how to solve? need help
zxilin01 opened this issue · comments
Traceback (most recent call last):
File "/Users/zhengxilin01/Desktop/PhotoMaker-main2/test.py", line 53, in
images = pipe(
File "/Users/zhengxilin01/miniconda3/envs/PhotoMaker-main/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/Users/zhengxilin01/Desktop/PhotoMaker-main2/photomaker/pipeline.py", line 338, in call
) = self.encode_prompt_with_trigger_word(
File "/Users/zhengxilin01/Desktop/PhotoMaker-main2/photomaker/pipeline.py", line 196, in encode_prompt_with_trigger_word
clean_input_ids = clean_input_ids + [tokenizer.pad_token_id] * (max_len - len(clean_input_ids))
OverflowError: cannot fit 'int' into an index-sized integer
i think maybe "max_len" is too large, but after changing it, the project can run, but can't output result.
How to replicate this error?
i meet this error too, how to solve it?