Update mask_nodes.py

This commit is contained in:
Mokan Alexander 2024-05-10 03:39:06 +03:00 committed by GitHub
parent 3260038935
commit 030b6a20b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,9 @@ Segments an image or batch of images using CLIPSeg.
if binary_mask:
results = results.round()
del outputs, tensor, tensor_thresholded, tensor_normalized, resized_tensor, images
torch.cuda.empty_cache()
return results,
class CreateTextMask: