vobecant
commited on
Commit
·
e78cfd3
1
Parent(s):
b684c1d
Initial commit.
Browse files
app.py
CHANGED
@@ -58,6 +58,7 @@ def download_file_from_google_drive(destination=WEIGHTS):
|
|
58 |
|
59 |
|
60 |
def download_weights():
|
|
|
61 |
# if not os.path.exists(WEIGHTS):
|
62 |
url = 'https://data.ciirc.cvut.cz/public/projects/2022DriveAndSegment/segmenter_nusc.pth'
|
63 |
import urllib.request
|
@@ -223,6 +224,8 @@ examples = [ # 'examples/img5.jpeg',
|
|
223 |
'examples/snow1.jpg']
|
224 |
examples += ['examples/cs{}.jpg'.format(i) for i in range(2, 5)]
|
225 |
|
|
|
|
|
226 |
# predict(examples[0])
|
227 |
|
228 |
iface = gr.Interface(predict, inputs=gr.Image(type='filepath'), title=title, description=description,
|
|
|
58 |
|
59 |
|
60 |
def download_weights():
|
61 |
+
print('Downloading weights...')
|
62 |
# if not os.path.exists(WEIGHTS):
|
63 |
url = 'https://data.ciirc.cvut.cz/public/projects/2022DriveAndSegment/segmenter_nusc.pth'
|
64 |
import urllib.request
|
|
|
224 |
'examples/snow1.jpg']
|
225 |
examples += ['examples/cs{}.jpg'.format(i) for i in range(2, 5)]
|
226 |
|
227 |
+
examples = ['examples/cs2.jpg']
|
228 |
+
|
229 |
# predict(examples[0])
|
230 |
|
231 |
iface = gr.Interface(predict, inputs=gr.Image(type='filepath'), title=title, description=description,
|