vobecant
commited on
Commit
•
66cdd72
1
Parent(s):
0174f16
Initial commit.
Browse files- .idea/workspace.xml +9 -2
- app.py +2 -4
.idea/workspace.xml
CHANGED
@@ -51,7 +51,7 @@
|
|
51 |
<option name="number" value="Default" />
|
52 |
<option name="presentableId" value="Default" />
|
53 |
<updated>1647350746642</updated>
|
54 |
-
<workItem from="1647350750956" duration="
|
55 |
</task>
|
56 |
<task id="LOCAL-00001" summary="Initial commit.">
|
57 |
<created>1647352693910</created>
|
@@ -186,7 +186,14 @@
|
|
186 |
<option name="project" value="LOCAL" />
|
187 |
<updated>1647357507081</updated>
|
188 |
</task>
|
189 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
<servers />
|
191 |
</component>
|
192 |
<component name="TypeScriptGeneratedFilesManager">
|
|
|
51 |
<option name="number" value="Default" />
|
52 |
<option name="presentableId" value="Default" />
|
53 |
<updated>1647350746642</updated>
|
54 |
+
<workItem from="1647350750956" duration="7452000" />
|
55 |
</task>
|
56 |
<task id="LOCAL-00001" summary="Initial commit.">
|
57 |
<created>1647352693910</created>
|
|
|
186 |
<option name="project" value="LOCAL" />
|
187 |
<updated>1647357507081</updated>
|
188 |
</task>
|
189 |
+
<task id="LOCAL-00020" summary="Initial commit.">
|
190 |
+
<created>1647358316467</created>
|
191 |
+
<option name="number" value="00020" />
|
192 |
+
<option name="presentableId" value="LOCAL-00020" />
|
193 |
+
<option name="project" value="LOCAL" />
|
194 |
+
<updated>1647358316467</updated>
|
195 |
+
</task>
|
196 |
+
<option name="localTasksCounter" value="21" />
|
197 |
<servers />
|
198 |
</component>
|
199 |
<component name="TypeScriptGeneratedFilesManager">
|
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import requests
|
@@ -50,7 +48,7 @@ def download_file_from_google_drive(destination=WEIGHTS):
|
|
50 |
|
51 |
def download_weights():
|
52 |
# if not os.path.exists(WEIGHTS):
|
53 |
-
url = 'https://data.ciirc.cvut.cz/public/projects/2022DriveAndSegment/
|
54 |
import urllib.request
|
55 |
urllib.request.urlretrieve(url, WEIGHTS)
|
56 |
|
@@ -124,7 +122,7 @@ def get_transformations():
|
|
124 |
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])])
|
125 |
|
126 |
|
127 |
-
|
128 |
model, window_size, window_stride = create_model()
|
129 |
|
130 |
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import requests
|
|
|
48 |
|
49 |
def download_weights():
|
50 |
# if not os.path.exists(WEIGHTS):
|
51 |
+
url = 'https://data.ciirc.cvut.cz/public/projects/2022DriveAndSegment/segmenter.pth'
|
52 |
import urllib.request
|
53 |
urllib.request.urlretrieve(url, WEIGHTS)
|
54 |
|
|
|
122 |
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])])
|
123 |
|
124 |
|
125 |
+
download_weights()
|
126 |
model, window_size, window_stride = create_model()
|
127 |
|
128 |
|