wondervictor commited on
Commit
1ddf4f5
·
verified ·
1 Parent(s): ba359c6

Update autoregressive/models/dinov2_adapter.py

Browse files
autoregressive/models/dinov2_adapter.py CHANGED
@@ -10,9 +10,9 @@ 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
17
 
18
  def to_patch14(self, input):
 
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
17
 
18
  def to_patch14(self, input):