layumi / 2016_person_re-ID

TOMM2017 A Discriminatively Learned CNN Embedding for Person Re-identification

Home Page:https://dl.acm.org/citation.cfm?id=3159171

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About the share weights?

tjulyz opened this issue · comments

commented

Hi, @layumi
Thanks a lot for your code.
There is a question which puzzles me. Are the two branches of Resnet in your code share the same weights? I find that you initialize the parameters by the pretrained model and change the learning rate of parameters in each branch. But I haven't found how to make the two branches share the same weights.
Can you help me that?
Thanks!

Hi @tjulyz
If you go deep into the network, you can see the layers in both branch use the same 'weight name'. They use the same weight (params).

commented

Thank you for providing the details. I will read it again.