vobecant
commited on
Commit
•
88a4add
1
Parent(s):
b426e64
Initial commit.
Browse files- .idea/workspace.xml +10 -4
- app.py +4 -1
.idea/workspace.xml
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
<project version="4">
|
3 |
<component name="ChangeListManager">
|
4 |
<list default="true" id="5dd22f22-8223-4d55-99f9-57d1e00622d7" name="Default Changelist" comment="Initial commit.">
|
5 |
-
<change beforePath="$PROJECT_DIR
|
6 |
-
<change beforePath="$PROJECT_DIR$/segmenter_model/factory.py" beforeDir="false" afterPath="$PROJECT_DIR$/segmenter_model/factory.py" afterDir="false" />
|
7 |
</list>
|
8 |
<option name="SHOW_DIALOG" value="false" />
|
9 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -51,7 +50,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>
|
@@ -158,7 +157,14 @@
|
|
158 |
<option name="project" value="LOCAL" />
|
159 |
<updated>1647356671773</updated>
|
160 |
</task>
|
161 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
<servers />
|
163 |
</component>
|
164 |
<component name="TypeScriptGeneratedFilesManager">
|
|
|
2 |
<project version="4">
|
3 |
<component name="ChangeListManager">
|
4 |
<list default="true" id="5dd22f22-8223-4d55-99f9-57d1e00622d7" name="Default Changelist" comment="Initial commit.">
|
5 |
+
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
|
|
6 |
</list>
|
7 |
<option name="SHOW_DIALOG" value="false" />
|
8 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
|
50 |
<option name="number" value="Default" />
|
51 |
<option name="presentableId" value="Default" />
|
52 |
<updated>1647350746642</updated>
|
53 |
+
<workItem from="1647350750956" duration="6323000" />
|
54 |
</task>
|
55 |
<task id="LOCAL-00001" summary="Initial commit.">
|
56 |
<created>1647352693910</created>
|
|
|
157 |
<option name="project" value="LOCAL" />
|
158 |
<updated>1647356671773</updated>
|
159 |
</task>
|
160 |
+
<task id="LOCAL-00016" summary="Initial commit.">
|
161 |
+
<created>1647357087405</created>
|
162 |
+
<option name="number" value="00016" />
|
163 |
+
<option name="presentableId" value="LOCAL-00016" />
|
164 |
+
<option name="project" value="LOCAL" />
|
165 |
+
<updated>1647357087405</updated>
|
166 |
+
</task>
|
167 |
+
<option name="localTasksCounter" value="17" />
|
168 |
<servers />
|
169 |
</component>
|
170 |
<component name="TypeScriptGeneratedFilesManager">
|
app.py
CHANGED
@@ -14,7 +14,9 @@ from segmenter_model.utils import colorize_one, map2cs
|
|
14 |
WEIGHTS = './weights/segmenter.pth'
|
15 |
|
16 |
|
17 |
-
def download_file_from_google_drive(
|
|
|
|
|
18 |
def get_confirm_token(response):
|
19 |
for key, value in response.cookies.items():
|
20 |
if key.startswith('download_warning'):
|
@@ -113,6 +115,7 @@ def get_transformations():
|
|
113 |
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])])
|
114 |
|
115 |
|
|
|
116 |
model, window_size, window_stride = create_model()
|
117 |
|
118 |
|
|
|
14 |
WEIGHTS = './weights/segmenter.pth'
|
15 |
|
16 |
|
17 |
+
def download_file_from_google_drive(destination=WEIGHTS):
|
18 |
+
id = '1v6_d2KHzRROsjb_cgxU7jvmnGVDXeBia'
|
19 |
+
|
20 |
def get_confirm_token(response):
|
21 |
for key, value in response.cookies.items():
|
22 |
if key.startswith('download_warning'):
|
|
|
115 |
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])])
|
116 |
|
117 |
|
118 |
+
download_file_from_google_drive()
|
119 |
model, window_size, window_stride = create_model()
|
120 |
|
121 |
|