File tree 2 files changed +1
-2
lines changed 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def weights_init_classifier(m):
27
27
28
28
class USAM (nn .Module ):
29
29
#Joint Representation Learning and Keypoint Detection for Cross-view Geo-localization. TIP2022
30
- def __init__ (self , kernel_size = 3 , padding = 1 , polish = False ):
30
+ def __init__ (self , kernel_size = 3 , padding = 1 , polish = True ):
31
31
super (USAM , self ).__init__ ()
32
32
33
33
kernel = torch .ones ((kernel_size , kernel_size ))
Original file line number Diff line number Diff line change @@ -535,7 +535,6 @@ def draw_curve(current_epoch):
535
535
536
536
if torch .cuda .get_device_capability ()[0 ]> 6 and len (opt .gpu_ids )== 1 and int (version [0 ])> 1 : # should be >=7 and one gpu
537
537
torch .set_float32_matmul_precision ('high' )
538
- torch ._dynamo .config .automatic_dynamic_shapes = True
539
538
print ("Compiling model... The first epoch may be slow, which is expected!" )
540
539
# https://huggingface.co/docs/diffusers/main/en/optimization/torch2.0
541
540
model = torch .compile (model , mode = "reduce-overhead" , dynamic = True ) # pytorch 2.0
You can’t perform that action at this time.
0 commit comments