Mask_RCNN icon indicating copy to clipboard operation
Mask_RCNN copied to clipboard

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Open connortran216 opened this issue 4 years ago • 1 comments

Hi every, a week ago, I trained my custom model as usually, but now it pop up this problem. I have tried change my tensorflow-gpu, keras, h5py,.. version as follow but nothing seem to work: tensorflow-gpu==1.15.0 keras==2.2.5/2.1.6 h5py==2.10.0

If you have encountered this problem, please help me. Thanks for advanced.

Traceback (most recent call last): File "train.py", line 520, in train(model) File "train.py", line 293, in train layers='heads') File "/usr/local/lib/python3.7/dist-packages/mask_rcnn-2.1-py3.7.egg/mrcnn/model.py", line 2424, in train File "/usr/local/lib/python3.7/dist-packages/mask_rcnn-2.1-py3.7.egg/mrcnn/model.py", line 2251, in compile File "/usr/local/lib/python3.7/dist-packages/mask_rcnn-2.1-py3.7.egg/mrcnn/model.py", line 2252, in File "/usr/local/lib/python3.7/dist-packages/keras/regularizers.py", line 41, in call if self.l2: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

connortran216 avatar Jun 10 '21 04:06 connortran216

Have you solved this problem yet?

Sunflower135 avatar May 02 '22 00:05 Sunflower135