-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Training accuracy does not change while training entire resnet18 from scratch #19
Comments
Hi @sleepingcat4, There are many reasons why this could be happening. A while ago it was pointed out that both the classical and quantum implementations of transfer learning had some issues (see here) so this may or may not be related to that. This is a question where the answer will require you to do some research and try out different options to see if there's a solution. I hope this motivates you to look deeper into the problem and let us know if you find the answer! |
thanks for your response. I suspected the same. I am aware of the limitations of transfer-learning in Classical Deep Learning but its interesting know about Quantum faces the same problem. I just wanted to ask, If I want to modify the Quantum Network, what is the best approach in modifying the network? Should I add more VQC/Classical DL equivalent to CNN layers or you suggest something different? I will also look into more research papers as well. |
Hi @sleepingcat4 , Adding more layers in QNNs doesn't necessarily help the way it does in classical CNNs. You can try this but I doubt the solution lies here. Something you can try (although I don't specifically know how you would do it) is changing the cost function. You can take inspiration from our demo on local cost functions. This is really just a guess so please make sure to believe the papers you read more than my guess 😄 . |
@CatalinaAlbornoz I think I have identified the problem. The way the tutorial was written, it oversimplified a lot of concepts in QCNN. I read a few papers, don't really have a gold standard in terms of What QCNN should be, but researchers who received either 90/100% accuracy, exploited Hilbert Space and used MERA method to train the Quantum Network from scratch. Otherwise took each pixel values and converted into angles via And thanks for the Barren Platues technique. I used it, previously but completely forgot about that. I would love to hear your thoughts on this : ) |
That's very interesting @sleepingcat4! |
I was using
c2q_transfer_learning_ants_bees.ipynb
this notebook and I let all the layers of resnet18 to train from scratch on theants_bees
dataset. And I did not change anything else on the code but now while training the model, the accuracy does not improve more than 55%.Can you guys suggest what might be causing this?
Code I changed:
Training Log:
The text was updated successfully, but these errors were encountered: