Load Modified Resnet model from github

I modified the fc layer of resnet model available on github. Now i want to load it into my notebook. But i don’t know about how to load modified model from github and use in notebook.
Any Help?

I assume you’ve forked the torchvision repository and modified the resnet in your local branch?
If that’s the case, you could uninstall the official torchvision package, git clone your repository, and install it from source.
This would use your changes including your modified resnet implementation.

Also, a simpler way would be to copy-paste the resnet definition into your notebook and just use it locally.