TencentARC / PhotoMaker

PhotoMaker
https://photo-maker.github.io/
Other
8.63k stars 676 forks source link

how to solve? need help #92

Open zxilin01 opened 5 months ago

zxilin01 commented 5 months ago

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.

Paper99 commented 5 months ago

How to replicate this error?

baimazhaoge commented 3 months ago

i meet this error too, how to solve it?