@@ -56,6 +56,7 @@ def INPUT_TYPES(cls):
5656 "width" : ("INT" , {"default" : 128 , "min" : 16 , "max" : 512 , "step" : 8 }),
5757 "height" : ("INT" , {"default" : 128 , "min" : 16 , "max" : 512 , "step" : 8 }),
5858 "prompt_style" : (prompt_styles ,),
59+ "bypass_prompt_expansion" : ("BOOLEAN" , {"default" : False }),
5960 "remove_bg" : ("BOOLEAN" , {"default" : False }),
6061 "tile_x" : ("BOOLEAN" , {"default" : False }),
6162 "tile_y" : ("BOOLEAN" , {"default" : False }),
@@ -74,7 +75,7 @@ def INPUT_TYPES(cls):
7475 FUNCTION = "generate_image"
7576 CATEGORY = "RetroDiffusion"
7677
77- def generate_image (self , seed , width , height , prompt_style , remove_bg , tile_x , tile_y , return_spritesheet_for_animations , prompt , denoise , input_image = None ):
78+ def generate_image (self , seed , width , height , prompt_style , bypass_prompt_expansion , remove_bg , tile_x , tile_y , return_spritesheet_for_animations , prompt , denoise , input_image = None ):
7879 url = "https://api.retrodiffusion.ai/v1/inferences"
7980
8081 headers = {
@@ -86,6 +87,7 @@ def generate_image(self, seed, width, height, prompt_style, remove_bg, tile_x, t
8687 "width" : width ,
8788 "height" : height ,
8889 "prompt_style" : prompt_style ,
90+ "bypass_prompt_expansion" : bypass_prompt_expansion ,
8991 "remove_bg" : remove_bg ,
9092 "tile_x" : tile_x ,
9193 "tile_y" : tile_y ,
@@ -127,4 +129,4 @@ def generate_image(self, seed, width, height, prompt_style, remove_bg, tile_x, t
127129 except Exception as e :
128130 print (f"Error processing response: { e } " )
129131 # Return empty tensor and 0 cost on error
130- return (torch .zeros (1 , 64 , 64 , 3 ), 0 , - 1 )
132+ return (torch .zeros (1 , 64 , 64 , 3 ), 0 , - 1 )
0 commit comments