Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
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 |
-
|
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):
|