File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -588,6 +588,12 @@ def main(checkpoint_path,
588
588
if load_fast != "" :
589
589
load_aot_fast (mask_generator , load_fast )
590
590
591
+ if furious :
592
+ set_furious (mask_generator )
593
+ # since autoquant is replicating what furious mode is doing, don't use these two together
594
+ elif use_autoquant :
595
+ set_autoquant (mask_generator )
596
+
591
597
if save_fast != "" :
592
598
assert load_fast == "" , "Can't save compiled models while loading them with --load-fast."
593
599
assert not baseline , "--fast cannot be combined with baseline. code to be torch.compile(fullgraph=True) compatible."
@@ -598,12 +604,6 @@ def main(checkpoint_path,
598
604
assert not baseline , "--fast cannot be combined with baseline. code to be torch.compile(fullgraph=True) compatible."
599
605
set_fast (mask_generator , load_fast )
600
606
601
- if furious :
602
- set_furious (mask_generator )
603
- # since autoquant is replicating what furious mode is doing, don't use these two together
604
- elif use_autoquant :
605
- set_autoquant (mask_generator )
606
-
607
607
with open ('dog.jpg' , 'rb' ) as f :
608
608
image_tensor = file_bytes_to_image_tensor (bytearray (f .read ()))
609
609
You can’t perform that action at this time.
0 commit comments