merve HF staff commited on
Commit
7aad423
·
1 Parent(s): 86c02a6

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +3 -3
pipeline.py CHANGED
@@ -57,11 +57,11 @@ class PreTrainedPipeline():
57
  mask_codes[f"mask_{cls}"] = mask
58
 
59
 
60
- for i in range(pred_mask.shape[-1]): #for every class
61
 
62
  labels.append({
63
- "label": f"LABEL_{i}",
64
- "mask": mask_codes[f"mask_{i}"],
65
  "score": 1.0,
66
  })
67
  return labels
 
57
  mask_codes[f"mask_{cls}"] = mask
58
 
59
 
60
+
61
 
62
  labels.append({
63
+ "label": f"LABEL_{cls}",
64
+ "mask": mask_codes[f"mask_{cls}"],
65
  "score": 1.0,
66
  })
67
  return labels