[bug]: A fraction number in prompt causes black image
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
8
What happened?
If a prompt contains a fractional number, the whole rendering process produces a black image. Integer numbers cause no problems. If having a fractional number in the prompt is a syntax error, it should be caught before generation - think of poor souls who generate 30 minutes per picture only to find out they accidentally got a number into the prompt.
web 20

web 2.0

web 2/0

Screenshots
No response
Additional context
No response
Contact Details
No response
isnt that because Invokeai is trying to parse the prompt for certain ast-format? such as: (subject:1.1)
The problem is in the way numeric attention values are parsed in the prompt: 2.0 is interpreted as 2 with a weight of .0, which is most likely a bug.
This happens similarly for any words in the prompt that end with a decimal point (.) followed by some digits, such as f/2.8, which is parsed as f/2 with a weight of .8.
Intentional use of numeric attention values following words are parsed incorrectly as well. The prompt intricate1.5 is parsed as intricate1 with a weight of .5.
My suggestion would be to change the prompt syntax specification to only allow numeric weights after parentheses to avoid these issues.
There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.
The issue still exists.
There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.
Bump, you bot.
This is fixed, thanks!