Open mobilelifeful opened 2 years ago
image size: (682, 1024, 3) mask image size: (683, 1024, 3) (682, 1024, 3)
Traceback (most recent call last):
File "main.py", line 32, in
You can just comment line 42 out
i meet this question too
preprocess_image.py line 42 -> assert image.shape == preprocessed_mask_image.shape
As @VIkill33 said, you can just comment it out. That worked for me. the assert image.shape == preprocessed_mask_image.shape
is a check that apparently doesn't need to be there because it works fine without it.
Can anybody comment, on why I am getting this kind of response from model
Traceback (most recent call last): File "main.py", line 32, in
input_image = preprocess_image(image, args.watermark_type)
File "/content/watermark-removal/preprocess_image.py", line 42, in preprocess_image
assert image.shape == preprocessed_mask_image
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()