Dinoking commited on
Commit
04540f4
·
verified ·
1 Parent(s): 1d0f337

Update netdissect/dissection.py

Browse files
Files changed (1) hide show
  1. netdissect/dissection.py +1 -1
netdissect/dissection.py CHANGED
@@ -912,7 +912,7 @@ def collect_cond_quantiles(outdir, model, segloader, segrunner):
912
  scale_offset_map = getattr(model, 'scale_offset', None)
913
  upsample_grids = {}
914
  common_conditions = set()
915
- if label_fracs is None or label_fracs is 0:
916
  for i, batch in enumerate(progress(segloader, desc='label fracs')):
917
  seg, batch_label_counts, im, _ = segrunner.run_and_segment_batch(
918
  batch, model, want_bincount=True, want_rgb=True)
 
912
  scale_offset_map = getattr(model, 'scale_offset', None)
913
  upsample_grids = {}
914
  common_conditions = set()
915
+ if label_fracs is None or label_fracs == 0:
916
  for i, batch in enumerate(progress(segloader, desc='label fracs')):
917
  seg, batch_label_counts, im, _ = segrunner.run_and_segment_batch(
918
  batch, model, want_bincount=True, want_rgb=True)