Closed yogi1510 closed 4 years ago
What version of tensorflow ? Its quite picky .. I posted a link for a working collab for 2.2 https://github.com/bklooste/tensorflowcollab/blob/master/CapsuleNet_on_MNIST_with_retrain.ipynb it wasnt easy but im not super proficient in tf . I posted a previous issue because the code bakes the shape into model . This means you change the batch size or dont have samples exactly divisible by batch size then it dont work .
Thank you so much! 🙏@bklooste. It really helped me. I stoped my research due to this error. Yeah, I am using tf2.2 version and the training set is divisible by batch size but the validation set is not. So,I added few images to the validation set and it worked fine!. Actually in the previous version it worked well even if the samples are not exactly divisible by batch size. So, I didn't taught about it. Thanks again : )
@bklooste OMG. thanks so much for the notebook version. I was actually looking for something like that to test some things out. ♥♥♥
I got the following error while running the code in google colab with my local dataset. I have resized the dataset to 28x28. It has only two classes. I have even scaled them to [0,1]. Can you please take a look @XifengGuo .Thanks!