chenhao2345 / ICE

Implementation for ICCV 2021 paper "ICE: Inter-instance Contrastive Encoding for Unsupervised Person Re-identification"
MIT License
44 stars 15 forks source link

What is the meaning of intra-camera loss and cross-camera loss? #10

Open MoEmma opened 2 years ago

MoEmma commented 2 years ago

Sorry to bother you again. I'd like to ask a question. What is the meaning of intra-camera loss and cross-camera loss?

chenhao2345 commented 2 years ago

For example, given a sample from camera 1, Intra-camera loss is the loss between this sample (camera 1) and the same camera center (camera 1); Cross-camera loss is the loss between this sample (camera 1) and other camera centers (camera 2, 3, 4, 5, 6).

MoEmma commented 2 years ago

Ok, thank you for your reply.

wqydyh commented 2 years ago

Sorry to bother you ,where is the part of intra-camera loss? I can only find cross-camera loss to be used in the paper

chenhao2345 commented 2 years ago

@wqydyh I didn't use the intra-camera loss in the training. I keep the code commented out. https://github.com/chenhao2345/ICE/blob/a206eb9a97ad431ab9d9cf38cdcf5ab6fdc6ad1c/ice/trainers.py#L109-L115