GithubHelp home page GithubHelp logo

pretrained model about siamese-rpn HOT 7 CLOSED

helloricky123 avatar helloricky123 commented on July 4, 2024
pretrained model

from siamese-rpn.

Comments (7)

HelloRicky123 avatar HelloRicky123 commented on July 4, 2024

songdejia provides a pretrained model https://github.com/songdejia/Siamese-RPN-pytorch#download-pretrained-model-on-vid-with-690000-image-pairs

from siamese-rpn.

zeduchen avatar zeduchen commented on July 4, 2024

Thank you! But this pre-training model is not the same as your AlexNet.

from siamese-rpn.

MrYANG23 avatar MrYANG23 commented on July 4, 2024

it seems like that the pretrained model of songdejia dont have the batchnormaliztion

from siamese-rpn.

HelloRicky123 avatar HelloRicky123 commented on July 4, 2024

During my training getting the 0.54 AUC, I use these code to load the former three layers of Li Bo's trained model, for they say these layers are frozen.
" if config.pretrained_model:
print("pre init checkpoint %s" % config.pretrained_model)
checkpoint = torch.load(config.pretrained_model)
model_dict = model.state_dict()
keys_former3conv = ['featureExtract.0.weight', 'featureExtract.0.bias', 'featureExtract.4.weight',
'featureExtract.4.bias', 'featureExtract.8.weight', 'featureExtract.8.bias', ]
checkpoint = {k: v for k, v in checkpoint.items() if k in keys_former3conv}
model_dict.update(checkpoint)
model.load_state_dict(model_dict)
for k, v in model.named_parameters():
if k in keys_former3conv:
v.requires_grad = False
del checkpoint
torch.cuda.empty_cache()
print("pre inited checkpoint")"

from siamese-rpn.

HelloRicky123 avatar HelloRicky123 commented on July 4, 2024

And thanks to Li Bo's help, they give out the pretrained model on Imagenet, this is the address: https://drive.google.com/drive/folders/1HJOvl_irX3KFbtfj88_FVLtukMI1GTCR

from siamese-rpn.

zeduchen avatar zeduchen commented on July 4, 2024

Thank you!

from siamese-rpn.

MrYANG23 avatar MrYANG23 commented on July 4, 2024

thank you !

from siamese-rpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.