open-mmlab / mmagic

OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox. Unlock the magic 🪄: Generative-AI (AIGC), easy-to-use APIs, awsome model zoo, diffusion models, for text-to-image generation, image/video restoration/enhancement, etc.
https://mmagic.readthedocs.io/en/latest/
Apache License 2.0
6.95k stars 1.06k forks source link

[Bug] Invalid 'input_ids' in position:0 to 75.Expect'[49428,49429,49430,49431,49432,49433,49434,49435,49436,49437] for embedding 'P_obj' but found '[49428,49407]' #2096

Open shineway14 opened 11 months ago

shineway14 commented 11 months ago

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

main branch https://github.com/open-mmlab/mmagic

Environment

yes

Reproduces the problem - code sample

python gradio_PowerPaint.py pipline_PowerPaint.py line 613

Reproduces the problem - command or script

prompts: nsfw,(low quality,normal quality,worst quality,jpeg artifacts), cropped, monochrome, lowres, low saturation, ((watermark)), (white letters), non-medieval architecture, bright color palette, unrealistic fantasy elements, cartoonish drawings, ordinary castle, small size, lacking details, modern building, lack of atmosphere, generic fantasy scenes.

Reproduces the problem - error message

[Bug] Invalid 'input_ids' in position:0 to 75.Expect'[49428,49429,49430,49431,49432,49433,49434,49435,49436,49437] for embedding 'P_obj' but found '[49428,49407]'

Additional information

No response