deepliif 1.1.15__py3-none-any.whl → 1.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -283,11 +283,11 @@ def run_dask(img, model_path=None, nets=None, eager_mode=False, opt=None, seg_on
283
283
  if opt.model in ['DeepLIIF','DeepLIIFKD']:
284
284
  if seg_weights is None:
285
285
  weights = {
286
- 'G51': 0.25, # IHC
287
- 'G52': 0.25, # Hema
288
- 'G53': 0.25, # DAPI
289
- 'G54': 0.00, # Lap2
290
- 'G55': 0.25, # Marker
286
+ 'G51': 0.5, # IHC
287
+ 'G52': 0.0, # Hema
288
+ 'G53': 0.0, # DAPI
289
+ 'G54': 0.0, # Lap2
290
+ 'G55': 0.5, # Marker
291
291
  }
292
292
  else:
293
293
  weights = {
@@ -1053,17 +1053,17 @@ def calculate_large_noise_thresh(large_noise_thresh, resolution):
1053
1053
  if large_noise_thresh != 'default':
1054
1054
  return large_noise_thresh
1055
1055
  if resolution == '10x':
1056
- return 250
1057
- elif resolution == '20x':
1058
1056
  return 1000
1059
- else: # 40x
1057
+ elif resolution == '20x':
1060
1058
  return 4000
1059
+ else: # 40x
1060
+ return 16000
1061
1061
 
1062
1062
 
1063
1063
  def compute_cell_results(seg, marker, resolution, version=3,
1064
1064
  seg_thresh=DEFAULT_SEG_THRESH,
1065
1065
  noise_thresh=DEFAULT_NOISE_THRESH,
1066
- large_noise_thresh='default'):
1066
+ large_noise_thresh=None):
1067
1067
  """
1068
1068
  Perform postprocessing to compute individual cell results.
1069
1069
 
@@ -1134,7 +1134,7 @@ def compute_final_results(orig, seg, marker, resolution,
1134
1134
  size_thresh_upper=None,
1135
1135
  seg_thresh=DEFAULT_SEG_THRESH,
1136
1136
  noise_thresh=DEFAULT_NOISE_THRESH,
1137
- large_noise_thresh='default'):
1137
+ large_noise_thresh=None):
1138
1138
  """
1139
1139
  Perform postprocessing to compute final count and image results.
1140
1140