amiratag / ACE

Towards Automatic Concept-based Explanations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shape Error

naumanbashir70 opened this issue · comments

I am getting this error,

ValueError: Cannot feed value of shape (0,) for Tensor 'Placeholder:0', which has shape '(?, ?, ?, 3)'

Could you please help me?
I will appreciate your response
Thanks,

commented

Hello! Did you solve this problem? I am getting the same error.
Could you please help me

Same problem here. Maybe it has to do with TF versions incompatibility...?

Remind those who encounter this problem in the future:The format of the image must be RGB instead of RGBA,if your images in SOURCE_DIR is .PNG,it may cause the error ValueError: Cannot feed value of shape (0,) for Tensor 'Placeholder:0', which has shape '(?, ?, ?, 3)'
I solve the problem by convert the format of images into RGB. and the end of the name of the my images ( in SOURCE_DIR/passenger car ) is JPEG.