PhotoMaker icon indicating copy to clipboard operation
PhotoMaker copied to clipboard

how to solve? need help

Open zxilin01 opened this issue 2 years ago • 2 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.

zxilin01 avatar Jan 22 '24 09:01 zxilin01

How to replicate this error?

Paper99 avatar Jan 22 '24 15:01 Paper99

i meet this error too, how to solve it?

baimazhaoge avatar Mar 28 '24 03:03 baimazhaoge