Comfy-Org / Comfy-Org/ComfyUI

LoadImage returns a 64x64 mask even when there's no mask painted

Open
#7,301 13 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

LoadImage should return "None" for Mask, when no mask is painted

### Actual Behavior

LoadImage returns a 64x64 mask even when there's no mask painted

### Steps to Reproduce

LoadImage -> MaskToImage -> PreviewImage

### Debug Logs

```powershell
n/a
```

### Other

this affects "mask optional" nodes, as I cannot just connect things together, as I _always_ get a mask, even when none is painted.

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.