Skip to content

number of classes value when training without labels? #9

@easternbun

Description

@easternbun

Awesome Work!!!! I am study your paper and code for my project.
There are a few question if you could help me out:

I have unlabeled images to train and test.
What should I set for number of classes value for task_encoder?

1st Follow Up:
I tested it by randomly setting the number to 100, and the clustering result is not good. The result is basically every image used in testing has its seperate class. It only gets better when C value is set close to actual number of classes.

What I did:

  1. take 6 classes from caltech101 dataset and put all images under my own dataset folder.
  2. Altered the data_utils.py to just read images x and no labels y. Ran recompute_representation.py with 1space on my dataset.
  3. Skipped the precompute_label step and altered the run_turtle.py by commit out label accuracy calculations. Set the number_of_classes or C value 100.
  4. train by run_turtle.py and evaluate. Am expecting same output for similar images.

2nd Follow Up:
I trained with a dataset conjured up with images from internet on mechanical objects. all labeled by putting them under different class folders
I ran the codes (original/github version) and the accuracy could not surpass 0.28 no matter the size of dataset.

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