You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re. Height and Width of image, mask or masks should be equal. You can disable shapes check by setting a parameter is_check_shapes=False of Compose class
#162
Open
andysingal opened this issue
Sep 14, 2023
· 0 comments
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[<ipython-input-6-a1bcbb09e6b0>](https://localhost:8080/#) in <cell line: 30>()
29 mask2 = np.array(mask2)
30 for i in range(4):
---> 31 augmentations = transform(image=image, masks=[mask, mask2])
32 augmented_img = augmentations["image"]
33 augmented_masks = augmentations["masks"]
1 frames
[/usr/local/lib/python3.10/dist-packages/albumentations/core/composition.py](https://localhost:8080/#) in _check_args(self, **kwargs)
284
285 if self.is_check_shapes and shapes and shapes.count(shapes[0]) != len(shapes):
--> 286 raise ValueError(
287 "Height and Width of image, mask or masks should be equal. You can disable shapes check "
288 "by setting a parameter is_check_shapes=False of Compose class (do it only if you are sure "
ValueError: Height and Width of image, mask or masks should be equal. You can disable shapes check by setting a parameter is_check_shapes=False of Compose class (do it only if you are sure about your data consistency).
The text was updated successfully, but these errors were encountered:
Hi,
which gives error:
The text was updated successfully, but these errors were encountered: