Closed qwitriy closed 1 year ago
Yeah that would probably be a smart thing to do for both region_text
and target_text
at the top of that function call. If you want you can put in a PR with the changes, or I'll push things once I get home.
Thank you. I made such edit. Please review.
Hi!![image](https://user-images.githubusercontent.com/6897424/231379340-9d4359b5-9b80-4ab9-9bd0-15bf6f304e4d.png)
In the CLIPSetRegion if target_text value starts or ends with space, python throws error: IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
I fixed it locally using strip() on target_text after this https://github.com/BlenderNeko/ComfyUI_Cutoff/blob/master/cutoff.py#L86 No sure if this quickfix in proper place.