ttheland commited on
Commit
ac92c82
1 Parent(s): 24c049f

included model

Browse files
app.py CHANGED
@@ -16,32 +16,32 @@ import markdown
16
  # load model state and class names from gdrive
17
  # issue accessing the link. updated permissions
18
  #https://drive.google.com/file/d/1m9C-WMfKRDCmScxTh8JmcoFtymxAqjS3/view?usp=sharing
19
- url = 'https://drive.google.com/uc?id=1m9C-WMfKRDCmScxTh8JmcoFtymxAqjS3'
20
  path_class_names = "./class_names_restnet_leeds_butterfly.pkl"
21
 
22
- MAX_TRIES = 10
23
- i = 0
24
- while(i<MAX_TRIES):
25
- try:
26
- gdown.download(url, path_class_names, quiet=False)
27
- break
28
- except:
29
- pass
30
- i += 1
31
 
32
  # gdown.download(url, path_class_names, quiet=False)
33
  #https://drive.google.com/file/d/1qxaWnYwLIwWGrGg9uehG7h2W227SXGKq/view?usp=sharing
34
- url = 'https://drive.google.com/uc?id=1qxaWnYwLIwWGrGg9uehG7h2W227SXGKq'
35
  path_model = "./model_state_restnet_leeds_butterfly.pth"
36
  # gdown.download(url, path_model, quiet=False)
37
- i = 0
38
- while(i<MAX_TRIES):
39
- try:
40
- gdown.download(url, path_model, quiet=False)
41
- break
42
- except:
43
- pass
44
- i += 1
45
 
46
  # example images
47
  url = "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Red_postman_butterfly_%28Heliconius_erato%29.jpg/1599px-Red_postman_butterfly_%28Heliconius_erato%29.jpg"
 
16
  # load model state and class names from gdrive
17
  # issue accessing the link. updated permissions
18
  #https://drive.google.com/file/d/1m9C-WMfKRDCmScxTh8JmcoFtymxAqjS3/view?usp=sharing
19
+ # url = 'https://drive.google.com/uc?id=1m9C-WMfKRDCmScxTh8JmcoFtymxAqjS3'
20
  path_class_names = "./class_names_restnet_leeds_butterfly.pkl"
21
 
22
+ # MAX_TRIES = 10
23
+ # i = 0
24
+ # while(i<MAX_TRIES):
25
+ # try:
26
+ # gdown.download(url, path_class_names, quiet=False)
27
+ # break
28
+ # except:
29
+ # pass
30
+ # i += 1
31
 
32
  # gdown.download(url, path_class_names, quiet=False)
33
  #https://drive.google.com/file/d/1qxaWnYwLIwWGrGg9uehG7h2W227SXGKq/view?usp=sharing
34
+ # url = 'https://drive.google.com/uc?id=1qxaWnYwLIwWGrGg9uehG7h2W227SXGKq'
35
  path_model = "./model_state_restnet_leeds_butterfly.pth"
36
  # gdown.download(url, path_model, quiet=False)
37
+ # i = 0
38
+ # while(i<MAX_TRIES):
39
+ # try:
40
+ # gdown.download(url, path_model, quiet=False)
41
+ # break
42
+ # except:
43
+ # pass
44
+ # i += 1
45
 
46
  # example images
47
  url = "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Red_postman_butterfly_%28Heliconius_erato%29.jpg/1599px-Red_postman_butterfly_%28Heliconius_erato%29.jpg"
class_names_restnet_leeds_butterfly.pkl ADDED
Binary file (247 Bytes). View file
 
model_state_restnet_leeds_butterfly.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:788b13657e30de02e97110c3b5446f84698badd8febc0b182bfd8b0f2acd0e60
3
+ size 44804557