mananchawla2005 / contrastivelearning

Implementation of SimCLR model using pytorch for using contrastive learning over shapenet dataset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contrastive Learning using Point Cloud

Model

This repository explores the task of contrastive learning applied to 3d point clouds using SimCLR model.

  • SimCLR MODEL:
    simclr-general-architecture
  • NTXENT Loss: image The above image is the mathematical formula for NTXENT Loss introduced by SimCLR model. The numerator comprises of taking consine similarity of the the positive pairs which would lie between -1 to 1. It is then divided by a constant T or temperature and exponential of the value is taken to make it positive. The denominator comprises of summision of exponential of cosine similarity of negative pairs from 0 to 2N ( 2N for augmented pairs ). We dont sum the denominator for k=i ( i.e same as numerator ). Logarithm of whole thing is taken to soften the loss followed by a negative sign.

Results

image image image image

About

Implementation of SimCLR model using pytorch for using contrastive learning over shapenet dataset

License:Apache License 2.0


Languages

Language:Jupyter Notebook 100.0%