removed some useless stuff

This commit is contained in:
FizzleDorf
2024-05-24 21:32:19 -04:00
parent 972a8bbf64
commit 661c66734c
2 changed files with 0 additions and 9 deletions
-7
View File
@@ -115,13 +115,6 @@ def process_input_text(text: str) -> dict:
animation_prompts = json.loads(input_text.strip())
return animation_prompts
#def pad_with_zeros(tensor, target_length):
# current_length = tensor.shape[1]
# if current_length < target_length:
# padding = torch.zeros(tensor.shape[0], target_length - current_length, tensor.shape[2]).to(tensor.device)
# tensor = torch.cat([tensor, padding], dim=1)
# return tensor
def check_is_number(value):
float_pattern = r'^(?=.)([+-]?([0-9]*)(\.([0-9]+))?)$'
return re.match(float_pattern, value)
-2
View File
@@ -695,8 +695,6 @@ class BatchGLIGENSchedule:
# Update x and y values
x += x_change
y += y_change
print(x)
print(y)
out.append(self.append(conditioning_to, clip, gligen_textbox_model, pre_text, width, height, x, y))
return (out,)