Open amew0 opened 1 year ago
There was an issue in Tensorflow and in a different implementation of Capnets (and matmul function). You should use Tensorflow 1.13 (as specified in environment.yml) or rewrite the capsule layers to the newest version.
Yeah, I first installed all the dependencies following the README.md file (so yes tensorflow v1.13 is installed)
I have been going over the implementation of the NASCaps repo, and to understand how the algorithm searches the architecture I am following the README.md there to run the "main.py" with its args as mentioned in the file. and I have encountered an issue explained down below: Once a gene is created and the corresponding CapsNet model is created, upon training the model for evaluating the population (method evaluate_population > wrap_train_test > train) I get the following error:
After disabling (commenting out) the training and testing of the generated model and replacing it with a dummy model to generate a random test_acc I have seen that the program runs successfully.
I have been looking around the net and have some suggestions that the use of tensorflow v1 is causing the issue (I also have seen that it has been showing me plenty of warnings of deprecations).
I also have started migrating the project into tensorflow 2, although not very successfully.
It would have been delightful if I could have been given any suggestions.