vobecant commited on
Commit
330f925
1 Parent(s): edfc4ee

Initial commit.

Browse files
Files changed (2) hide show
  1. .idea/workspace.xml +10 -4
  2. segmenter_model/utils.py +1 -4
.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$/.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" />
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="8471000" />
55
  </task>
56
  <task id="LOCAL-00001" summary="Initial commit.">
57
  <created>1647352693910</created>
@@ -249,7 +248,14 @@
249
  <option name="project" value="LOCAL" />
250
  <updated>1647359368440</updated>
251
  </task>
252
- <option name="localTasksCounter" value="29" />
 
 
 
 
 
 
 
253
  <servers />
254
  </component>
255
  <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$/segmenter_model/utils.py" beforeDir="false" afterPath="$PROJECT_DIR$/segmenter_model/utils.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="8634000" />
54
  </task>
55
  <task id="LOCAL-00001" summary="Initial commit.">
56
  <created>1647352693910</created>
 
248
  <option name="project" value="LOCAL" />
249
  <updated>1647359368440</updated>
250
  </task>
251
+ <task id="LOCAL-00029" summary="Initial commit.">
252
+ <created>1647359422799</created>
253
+ <option name="number" value="00029" />
254
+ <option name="presentableId" value="LOCAL-00029" />
255
+ <option name="project" value="LOCAL" />
256
+ <updated>1647359422799</updated>
257
+ </task>
258
+ <option name="localTasksCounter" value="30" />
259
  <servers />
260
  </component>
261
  <component name="TypeScriptGeneratedFilesManager">
segmenter_model/utils.py CHANGED
@@ -356,11 +356,7 @@ def inference(
356
  batch_size,
357
  decoder_features=False,
358
  encoder_features=False,
359
- save2cpu=False,
360
  no_upsample=False,
361
- debug_file=None,
362
- im_rgb=None,
363
- channel_first=False
364
  ):
365
  C = model.n_cls
366
  patch_size = model.patch_size
@@ -389,6 +385,7 @@ def inference(
389
  with torch.no_grad():
390
  for i in range(0, num_crops, WB):
391
  # try:
 
392
  seg_maps[i: i + WB] = model.forward(crops[i: i + WB], decoder_features=decoder_features,
393
  encoder_features=encoder_features,
394
  no_upsample=no_upsample)
 
356
  batch_size,
357
  decoder_features=False,
358
  encoder_features=False,
 
359
  no_upsample=False,
 
 
 
360
  ):
361
  C = model.n_cls
362
  patch_size = model.patch_size
 
385
  with torch.no_grad():
386
  for i in range(0, num_crops, WB):
387
  # try:
388
+ print('Forward crop {}'.format(crops[i: i + WB].shape))
389
  seg_maps[i: i + WB] = model.forward(crops[i: i + WB], decoder_features=decoder_features,
390
  encoder_features=encoder_features,
391
  no_upsample=no_upsample)