admin commited on
Commit
2554ac6
·
1 Parent(s): 52bbeff

exclude maxvit_t

Browse files
Files changed (1) hide show
  1. vi_backbones.py +3 -3
vi_backbones.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
  import re
3
- import hashlib
4
  import requests
5
  import datasets
6
  from bs4 import BeautifulSoup
@@ -59,7 +59,7 @@ class vi_backbones(datasets.GeneratorBasedBuilder):
59
  def _special_type(self, m_ver):
60
  m_type = re.search('[a-zA-Z]+', m_ver).group(0)
61
  m_name = m_ver
62
-
63
  if m_type == 'wide' or m_type == 'resnext':
64
  m_type = 'resnet'
65
 
@@ -99,7 +99,7 @@ class vi_backbones(datasets.GeneratorBasedBuilder):
99
  name = str(li.text)
100
  if name.__contains__('torchvision.models.') and len(name.split('.')) == 3:
101
 
102
- if name.__contains__('_api') or name.__contains__('feature_extraction'):
103
  continue
104
 
105
  href = li.find('a').get('href')
 
1
  import os
2
  import re
3
+ # import hashlib
4
  import requests
5
  import datasets
6
  from bs4 import BeautifulSoup
 
59
  def _special_type(self, m_ver):
60
  m_type = re.search('[a-zA-Z]+', m_ver).group(0)
61
  m_name = m_ver
62
+
63
  if m_type == 'wide' or m_type == 'resnext':
64
  m_type = 'resnet'
65
 
 
99
  name = str(li.text)
100
  if name.__contains__('torchvision.models.') and len(name.split('.')) == 3:
101
 
102
+ if name.__contains__('_api') or name.__contains__('feature_extraction') or name.__contains__('maxvit'):
103
  continue
104
 
105
  href = li.find('a').get('href')