mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-05-31 22:27:16 +08:00
Update nodes.py
This commit is contained in:
parent
4489e5878c
commit
5cbc2b3104
4
nodes.py
4
nodes.py
@ -703,7 +703,7 @@ class GrowMaskWithBlur:
|
|||||||
# Convert back to tensor
|
# Convert back to tensor
|
||||||
out[idx] = pil2tensor(pil_image)
|
out[idx] = pil2tensor(pil_image)
|
||||||
|
|
||||||
blurred = torch.stack(out, dim=0)
|
blurred = torch.cat(out, dim=0)
|
||||||
return (blurred, 1.0 - blurred)
|
return (blurred, 1.0 - blurred)
|
||||||
|
|
||||||
|
|
||||||
@ -2366,7 +2366,6 @@ class CreateShapeMask:
|
|||||||
image = pil2tensor(image)
|
image = pil2tensor(image)
|
||||||
mask = image[:, :, :, 0]
|
mask = image[:, :, :, 0]
|
||||||
out.append(mask)
|
out.append(mask)
|
||||||
|
|
||||||
return (torch.cat(out, dim=0), 1.0 - torch.cat(out, dim=0),)
|
return (torch.cat(out, dim=0), 1.0 - torch.cat(out, dim=0),)
|
||||||
|
|
||||||
class CreateVoronoiMask:
|
class CreateVoronoiMask:
|
||||||
@ -3004,7 +3003,6 @@ class StableZero123_BatchSchedule:
|
|||||||
interpolated_azimuth = interpolate_angle(azimuth_points[prev_point][1], azimuth_points[next_point][1], fraction)
|
interpolated_azimuth = interpolate_angle(azimuth_points[prev_point][1], azimuth_points[next_point][1], fraction)
|
||||||
else:
|
else:
|
||||||
interpolated_azimuth = azimuth_points[prev_point][1]
|
interpolated_azimuth = azimuth_points[prev_point][1]
|
||||||
print(interpolated_azimuth)
|
|
||||||
# Interpolate the elevation
|
# Interpolate the elevation
|
||||||
next_elevation_point = 1
|
next_elevation_point = 1
|
||||||
while next_elevation_point < len(elevation_points) and i >= elevation_points[next_elevation_point][0]:
|
while next_elevation_point < len(elevation_points) and i >= elevation_points[next_elevation_point][0]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user