wondervictor commited on
Commit
b62a9c0
·
verified ·
1 Parent(s): 0e6546e

Update autoregressive/models/dinov2_adapter.py

Browse files
autoregressive/models/dinov2_adapter.py CHANGED
@@ -10,7 +10,7 @@ class Dinov2_Adapter(nn.Module):
10
  super(Dinov2_Adapter, self).__init__()
11
  print(f"Choose adapter size: {adapter_size}")
12
  print(f"condition type: {condition_type}")
13
- self.model = AutoModel.from_pretrained(f'facebook/dinov2-{adapter_size}')
14
  # config = AutoConfig.from_pretrained(f'facebook/dinov2-{adapter_size}')
15
  # self.model = AutoModel.from_config(config)
16
  self.condition_type = condition_type
 
10
  super(Dinov2_Adapter, self).__init__()
11
  print(f"Choose adapter size: {adapter_size}")
12
  print(f"condition type: {condition_type}")
13
+ self.model = AutoModel.from_pretrained(f'checkpoints/dinov2-{adapter_size}')
14
  # config = AutoConfig.from_pretrained(f'facebook/dinov2-{adapter_size}')
15
  # self.model = AutoModel.from_config(config)
16
  self.condition_type = condition_type