GlassyWu / AECR-Net

Contrastive Learning for Compact Single Image Dehazing, CVPR2021
339 stars 48 forks source link

how to select one positive sample and multiple negative samples and compute CR loss? #33

Open jchenTech opened 2 years ago

jchenTech commented 2 years ago

In your CR.py file , you select postive and negative samples with the number of batch size. However, how to select one positive sample and multiple negative samples and compute CR loss as shown in your paper? Can you explain or update the code? Thanks for your reply.

booker-max commented 1 year ago

Hello, I also encountered the same problem as you, have you solved it, I don't know how to implement this in code?