You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,When I call the class 'AELearner' in the code in ae_runs. Py, I have the problem of 'the abstract class cannot be instantiated'.I have looked up a lot of information but failed to solve this problem, so I would like to ask if you have any good suggestions. I have not been in touch with this direction for a long time, and it is still difficult for me to reproduce the code, so I would like to ask you to send me a detailed introduction of the file order, or send me a code package that can run? It would be greatly appreciated if you could. If not, your reply will be greatly appreciated. My email address is [email protected].
The text was updated successfully, but these errors were encountered:
Not sure what's causing that. You are running Python 3?
The abstract class is contained in _learner.py. Have you made any modifications to AELearner, like removing methods? The abstract base class is there to ensure instantiation is possible only if certain methods are included, see https://pythonprogramminglanguage.com/abstract-base-classes/
To run this, you should more or less write your own ae_runs so the image data is fed in correctly. If you are familiar with PyTorch and its typical training of models, you can rewrite AELearner. Most of AELearner and its parent class _Learner are taken from the functions described here: https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html
The only differences in what I do compared to what is done in the linked tutorial is: I don't simply load a model, the models.resnet18(pretrained=True) line in the tutorial. Rather I define a model in ae_deep.
Then once you have managed to get a good enough auto-encoder model, you train the model with LALearner by writing your own variant of la_runs.
Hello,When I call the class 'AELearner' in the code in ae_runs. Py, I have the problem of 'the abstract class cannot be instantiated'.I have looked up a lot of information but failed to solve this problem, so I would like to ask if you have any good suggestions. I have not been in touch with this direction for a long time, and it is still difficult for me to reproduce the code, so I would like to ask you to send me a detailed introduction of the file order, or send me a code package that can run? It would be greatly appreciated if you could. If not, your reply will be greatly appreciated. My email address is [email protected].
The text was updated successfully, but these errors were encountered: