Skip to content

[bug]: Prompt with term weighted 0 results in an all-black image #2832

@JPPhoto

Description

@JPPhoto

Is there an existing issue for this?

  • I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

12GB

What happened?

Generating an image with a zero-weight prompt (prompt with term weighted++ (zero)0.0) results in a black image.

>> Image Generation Parameters:

{'prompt': 'prompt with term weighted++ (zero)0.0', 'iterations': 1, 'steps': 100, 'cfg_scale': 7.5, 'threshold': 0, 'perlin': 0, 'height': 1024, 'width': 576, 'sampler_name': 'k_euler_a', 'seed': 2084177759, 'progress_images': False, 'progress_latents': True, 'save_intermediates': 5, 'generation_mode': 'txt2img', 'init_mask': '...', 'hires_fix': True, 'strength': 0.6, 'seamless': False, 'variation_amount': 0.01}

>> ESRGAN Parameters: False
>> Facetool Parameters: False

>> [TOKENLOG] Parsed Prompt: FlattenedPrompt:[Fragment:'prompt with term'@1.0, Fragment:'weighted'@1.2100000000000002, Fragment:'zero'@0.0]

>> [TOKENLOG] Parsed Negative Prompt: FlattenedPrompt:[Fragment:''@1.0]

>> [TOKENLOG] Tokens  (5):
prompt with term weighted zero

Tagging @damian0815.

Screenshots

No response

Additional context

No response

Contact Details

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions