GithubHelp home page GithubHelp logo

Comments (9)

DonkeyShot21 avatar DonkeyShot21 commented on August 16, 2024 2

I have just merged a pull request that fixes this bug. Closing. Thanks @DeepTecher

from uno.

DonkeyShot21 avatar DonkeyShot21 commented on August 16, 2024

Yes, you are right, it is a small typo, I changed the code multiple times and I forgot to remove the loop. Anyway, the swapped assignment is performed in the same way, since I only index the view axis inside the swapped_assignment method, and the cross-entropy loss compares tensors element-wise. Also, the losses are then averaged, so nothing should change.

from uno.

DeepTecher avatar DeepTecher commented on August 16, 2024

yeah...
But it still has a problem on cross_entropy_loss function.
if I guess right, the dims of preds is [num_views, bach_size, num_label+num_unlabel], our F.log_softmax should be

preds = F.log_softmax(preds / 0.1, dim=2)

on the last dim to do log_softmax.
we do dim=1 will work on batch_size. Is it right?

from uno.

DonkeyShot21 avatar DonkeyShot21 commented on August 16, 2024

Yes, you are right. For some reason, this still works. Let me look into it.

from uno.

DeepTecher avatar DeepTecher commented on August 16, 2024

Ok.
if you have a new conclusion, please let me know
many thanks

from uno.

DonkeyShot21 avatar DonkeyShot21 commented on August 16, 2024

Hi, I fixed it and ran CIFAR100-20. I got similar results for CIFAR100-20 on the test set, while performance is slightly worse on the training set. I am now trying to do some hyperparameter tuning. I'll upload the fix as soon as possible.

from uno.

DeepTecher avatar DeepTecher commented on August 16, 2024

nice~ 👍

from uno.

DonkeyShot21 avatar DonkeyShot21 commented on August 16, 2024

Hi, I have some good news. It seems that normalizing on the correct dimension improves performance quite significantly. I needed to tune the parameters a bit, but I just had one run hit 55% on the training set (unlab/train/acc) and 56% on the test set (unlab/test/acc) for CIFAR100-50. I am testing if the same parameters work on the other settings.

I also went back to my logs and found that ImageNet experiments were probably run without the bug, while all other datasets were affected. I will upload the new version as soon as I finish running experiments.

from uno.

DeepTecher avatar DeepTecher commented on August 16, 2024

okay,
I cannot wait for the newest result.

from uno.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.