Comfy-Org / Comfy-Org/ComfyUI

Broken prompt weighting

Open
#4,550 4 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Expected Behavior

prompts `person (smiling:0.0)` & `person` should be similar
In other worlds:
`prompt = person + smiling * 0.0` => `prompt = person`

These are outputs from InvokeAI
`person smiling`
![person smiling](https://github.com/user-attachments/assets/fe209322-fa03-451f-a1b7-08abdf8c9c11)
`person`
![person](https://github.com/user-attachments/assets/6812b353-f2a9-4ebc-a56e-983067a23faf)
`person (smiling)0.0`
![person (smiling)0 0](https://github.com/user-attachments/assets/d883f58a-ac41-4ef9-aa5d-00207e9f7c1e)
`person (smiling)1.0`
![person (smiling)1 0](https://github.com/user-attachments/assets/beb44746-7cc0-4038-a6ac-33bbd8b988d4)

### Actual Behavior

![image](https://github.com/user-attachments/assets/9dff9db4-e353-453a-95d1-b2b789302412)

### Steps to Reproduce

[workflow.json](https://github.com/user-attachments/files/16718596/workflow.json)

### Debug Logs

```powershell
Nothing important here.
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.