vobecant commited on
Commit
525f14a
·
1 Parent(s): 66cdd72

Initial commit.

Browse files
Files changed (2) hide show
  1. .idea/workspace.xml +9 -3
  2. app.py +1 -1
.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="7452000" />
55
  </task>
56
  <task id="LOCAL-00001" summary="Initial commit.">
57
  <created>1647352693910</created>
@@ -193,7 +192,14 @@
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">
 
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="7582000" />
54
  </task>
55
  <task id="LOCAL-00001" summary="Initial commit.">
56
  <created>1647352693910</created>
 
192
  <option name="project" value="LOCAL" />
193
  <updated>1647358316467</updated>
194
  </task>
195
+ <task id="LOCAL-00021" summary="Initial commit.">
196
+ <created>1647358382116</created>
197
+ <option name="number" value="00021" />
198
+ <option name="presentableId" value="LOCAL-00021" />
199
+ <option name="project" value="LOCAL" />
200
+ <updated>1647358382116</updated>
201
+ </task>
202
+ <option name="localTasksCounter" value="22" />
203
  <servers />
204
  </component>
205
  <component name="TypeScriptGeneratedFilesManager">
app.py CHANGED
@@ -108,7 +108,7 @@ def create_model(resnet=False):
108
 
109
  # TODO: load weights
110
  print('Load weights from {}'.format(weights_path))
111
- weights = torch.load(weights_path)['model']
112
  model.load_state_dict(weights, strict=True)
113
 
114
  model.eval()
 
108
 
109
  # TODO: load weights
110
  print('Load weights from {}'.format(weights_path))
111
+ weights = torch.load(weights_path, map_location=torch.device('cpu'))['model']
112
  model.load_state_dict(weights, strict=True)
113
 
114
  model.eval()