Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.
This repository was archived by the owner on May 1, 2025. It is now read-only.

About Loss of InfoNCE and Cluter_results  #22

@lsyysl9711

Description

@lsyysl9711

Hi,

  1. I notice that the labels created in InfoNCE loss is always a zero-vector:(

    labels = torch.zeros(logits.shape[0], dtype=torch.long).cuda()
    )
    I think this is wrong since otherwise the loss will always be zero. Did I mis-understand the codes?

  2. In creating the Custer_Result dictionary, I found that only eval dataset was involved into consideration:
    (

    PCL/main_pcl.py

    Line 299 in 964da1f

    cluster_result['im2cluster'].append(torch.zeros(len(eval_dataset),dtype=torch.long).cuda())
    )
    So what is the motivation behind this operation, I think we should run it on training set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions