add utility node

This commit is contained in:
s9roll7
2025-06-06 19:19:11 +09:00
parent 8ff6900e31
commit e469cb66c7
5 changed files with 541 additions and 2 deletions
+9 -2
View File
@@ -31,7 +31,8 @@ class CoTrackerNode:
"default": 20,
"min": 0,
"max": 100,
"step": 1
"step": 1,
"tooltip": "Number of divisions along both width and height to create a grid of tracking points."
}),
"max_num_of_points": ("INT", {
"default": 100,
@@ -52,7 +53,8 @@ class CoTrackerNode:
"default": 30,
"min": 0,
"max": 500,
"step": 1
"step": 1,
"tooltip": "Minimum distance between tracking points"
}),
"force_offload": ("BOOLEAN", {"default": True}),
}
@@ -138,6 +140,11 @@ class CoTrackerNode:
queries = self.prepare_query_points(points, video.shape)
if video.shape[1] <= self.model.step:
print(f"{video.shape[1]=}")
raise ValueError(f"At least {self.model.step+1} frames are required to perform tracking.")
results = []
if len(points) > 0: