bethgelab / siamese-mask-rcnn

Siamese Mask R-CNN model for one-shot instance segmentation
Other
346 stars 60 forks source link

plz help #20

Closed kidcad1412 closed 5 years ago

kidcad1412 commented 5 years ago

when I run evaluate.ipynb it throw this error

ValueError: Error when checking : expected input_target to have shape (5, 96, 96, 3) but got array with shape (1, 96, 96, 3)

michaelisc commented 5 years ago

Sorry, I somehow missed this. Can you quickly state, what caused the error and how you fixed it?

kidcad1412 commented 5 years ago

oh  it's my mistake.I forgot change the number of classes. sorry to bother you.

---Original--- From: "Claudio Michaelis"<notifications@github.com> Date: Wed, Oct 16, 2019 16:19 PM To: "bethgelab/siamese-mask-rcnn"<siamese-mask-rcnn@noreply.github.com>; Cc: "State change"<state_change@noreply.github.com>;"kidcad1412"<603944787@qq.com>; Subject: Re: [bethgelab/siamese-mask-rcnn] plz help (#20)

Sorry, I somehow missed this. Can you quickly state, what caused the error and how you fixed it?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

li-yanling commented 4 years ago

oh  it's my mistake.I forgot change the number of classes. sorry to bother you. ---Original--- From: "Claudio Michaelis"<notifications@github.com> Date: Wed, Oct 16, 2019 16:19 PM To: "bethgelab/siamese-mask-rcnn"<siamese-mask-rcnn@noreply.github.com>; Cc: "State change"<state_change@noreply.github.com>;"kidcad1412"<603944787@qq.com>; Subject: Re: [bethgelab/siamese-mask-rcnn] plz help (#20) Sorry, I somehow missed this. Can you quickly state, what caused the error and how you fixed it? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, same error happens to me. Could you give some suggestion? Thanks.

ddddyyyy commented 3 years ago

oh  it's my mistake.I forgot change the number of classes. sorry to bother you. ---Original--- From: "Claudio Michaelis"[notifications@github.com](mailto:notifications@github.com) Date: Wed, Oct 16, 2019 16:19 PM To: "bethgelab/siamese-mask-rcnn"[siamese-mask-rcnn@noreply.github.com](mailto:siamese-mask-rcnn@noreply.github.com); Cc: "State change"[state_change@noreply.github.com](mailto:state_change@noreply.github.com);"kidcad1412"[603944787@qq.com](mailto:603944787@qq.com); Subject: Re: [bethgelab/siamese-mask-rcnn] plz help (#20) Sorry, I somehow missed this. Can you quickly state, what caused the error and how you fixed it? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, same error happens to me. Could you give some suggestion? Thanks.

In chapter of "Visualization" ,modify config.NUM_TARGETS to 1

kidcad1412 commented 3 years ago

oh  it's my mistake.I forgot change the number of classes. sorry to bother you. ---Original--- From: "Claudio Michaelis"[notifications@github.com](mailto:notifications@github.com) Date: Wed, Oct 16, 2019 16:19 PM To: "bethgelab/siamese-mask-rcnn"[siamese-mask-rcnn@noreply.github.com](mailto:siamese-mask-rcnn@noreply.github.com); Cc: "State change"[state_change@noreply.github.com](mailto:state_change@noreply.github.com);"kidcad1412"[603944787@qq.com](mailto:603944787@qq.com); Subject: Re: [bethgelab/siamese-mask-rcnn] plz help (#20) Sorry, I somehow missed this. Can you quickly state, what caused the error and how you fixed it? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, same error happens to me. Could you give some suggestion? Thanks.

sorry,I missed your question. if you only have one class to detect,you should change the class number to 1.