vobecant
commited on
Commit
·
dbb9fc0
1
Parent(s):
ada80e8
Initial commit.
Browse files- .idea/workspace.xml +9 -3
- app.py +4 -4
.idea/workspace.xml
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 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$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
| 6 |
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
| 7 |
</list>
|
| 8 |
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -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>
|
|
@@ -172,7 +171,14 @@
|
|
| 172 |
<option name="project" value="LOCAL" />
|
| 173 |
<updated>1647357185506</updated>
|
| 174 |
</task>
|
| 175 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
<servers />
|
| 177 |
</component>
|
| 178 |
<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" />
|
|
|
|
| 50 |
<option name="number" value="Default" />
|
| 51 |
<option name="presentableId" value="Default" />
|
| 52 |
<updated>1647350746642</updated>
|
| 53 |
+
<workItem from="1647350750956" duration="6650000" />
|
| 54 |
</task>
|
| 55 |
<task id="LOCAL-00001" summary="Initial commit.">
|
| 56 |
<created>1647352693910</created>
|
|
|
|
| 171 |
<option name="project" value="LOCAL" />
|
| 172 |
<updated>1647357185506</updated>
|
| 173 |
</task>
|
| 174 |
+
<task id="LOCAL-00018" summary="Initial commit.">
|
| 175 |
+
<created>1647357429098</created>
|
| 176 |
+
<option name="number" value="00018" />
|
| 177 |
+
<option name="presentableId" value="LOCAL-00018" />
|
| 178 |
+
<option name="project" value="LOCAL" />
|
| 179 |
+
<updated>1647357429098</updated>
|
| 180 |
+
</task>
|
| 181 |
+
<option name="localTasksCounter" value="19" />
|
| 182 |
<servers />
|
| 183 |
</component>
|
| 184 |
<component name="TypeScriptGeneratedFilesManager">
|
app.py
CHANGED
|
@@ -49,10 +49,10 @@ def download_file_from_google_drive(destination=WEIGHTS):
|
|
| 49 |
|
| 50 |
|
| 51 |
def download_weights():
|
| 52 |
-
if not os.path.exists(WEIGHTS):
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
|
| 58 |
def segment_segmenter(image, model, window_size, window_stride, encoder_features=False, decoder_features=False,
|
|
|
|
| 49 |
|
| 50 |
|
| 51 |
def download_weights():
|
| 52 |
+
# if not os.path.exists(WEIGHTS):
|
| 53 |
+
url = 'https://drive.google.com/file/d/1v6_d2KHzRROsjb_cgxU7jvmnGVDXeBia/view?usp=sharing'
|
| 54 |
+
import urllib.request
|
| 55 |
+
urllib.request.urlretrieve(url, WEIGHTS)
|
| 56 |
|
| 57 |
|
| 58 |
def segment_segmenter(image, model, window_size, window_stride, encoder_features=False, decoder_features=False,
|