Merge branch 'main' of https://huggingface.co/merve/pet-segmentation
Browse files- README.md +1 -0
- pipeline.py +3 -3
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- image-segmentation
|
|
|
|
| 4 |
dataset:
|
| 5 |
- oxfort-iit pets
|
| 6 |
license: apache-2.0
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- image-segmentation
|
| 4 |
+
- generic
|
| 5 |
dataset:
|
| 6 |
- oxfort-iit pets
|
| 7 |
license: apache-2.0
|
pipeline.py
CHANGED
|
@@ -57,11 +57,11 @@ class PreTrainedPipeline():
|
|
| 57 |
mask_codes[f"mask_{cls}"] = mask
|
| 58 |
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
labels.append({
|
| 63 |
-
"label": f"LABEL_{
|
| 64 |
-
"mask": mask_codes[f"mask_{
|
| 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
|