Update nodes.py

This commit is contained in:
kijai 2024-04-23 00:52:48 +03:00
parent 60cd6b555a
commit 48d5a18bd4

View File

@ -2462,7 +2462,7 @@ Segments an image or batch of images using CLIPSeg.
for image in images:
image = (image* 255).type(torch.uint8)
prompt = text
input_prc = processor(text=prompt, images=image, padding="max_length", return_tensors="pt")
input_prc = processor(text=prompt, images=image, return_tensors="pt")
# Move the processed input to the device
for key in input_prc:
input_prc[key] = input_prc[key].to(device)