loading of transfer learning MXNet resnet 18 for inference #3294
-
So I am fairly new to the party: I trained resnet18 instance according to the https://docs.djl.ai/master/docs/demos/jupyter/transfer_learning_on_cifar10.html example (MXNet as Engine).
So this basically works but only if I keep the Model model AND the Model customModel object references alive. So probably my reconstruction/reloading strategie of the original model architecture is not quite the best practice. How shoud this be done or is there some way to decouple the dependency from my "template" model to the custom one. Thx Peter |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I created a PR that show case how to load a DJL trained model with I removed symbolic training for MXNet since MXNet engine is deprecated. If you are looking for add layers to existing model, please see this example: https://github.com/deepjavalibrary/djl/blob/master/examples/src/main/java/ai/djl/examples/training/transferlearning/TransferFreshFruit.java#L66 |
Beta Was this translation helpful? Give feedback.
-
I created a PR to update the jupyter notebook example: deepjavalibrary/djl-demo#473 |
Beta Was this translation helpful? Give feedback.
-
Regarding ATLearn: We originally plan to add it in Java, however, currently we don't have anyone actively maintain it. |
Beta Was this translation helpful? Give feedback.
@rd-peter-braun
Regarding ATLearn: We originally plan to add it in Java, however, currently we don't have anyone actively maintain it.