Giter VIP home page Giter VIP logo

pseudo_label-pytorch's People

Contributors

ibelievecjm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pseudo_label-pytorch's Issues

i have some confused in your code

labeled_bs = self.labeled_bs
labeled_loss = torch.sum(self.loss_fn(outputs, targets)) / labeled_bs
with torch.no_grad():
pseudo_labeled = outputs.max(1)[1]
unlabeled_loss = torch.sum(targets.eq(NO_LABEL).float() * self.loss_fn(outputs, pseudo_labeled)) / (data.size(0)-labeled_bs +1e-10)
loss = labeled_loss + self.unlabeled_weight()*unlabeled_loss

pseudo_labeled = outputs.max(1)[1] #outputs should be unlabel data,but your code outputs is model(label_data)??????

pre-training

paper shows that they pretraining use all data in a unsupervised way.I'm wondering where you pretrain your net in your codes.

missing files

The 'datadir' in util.datasets.py in line 27 shows that cifar10 should be stored in the route, but I can't find the file. Can you upload the file? I'm a green hand in deep learning and have no idea about distribution method in datasets. I would be obliged if you could help me solve the problem.
ERROR

Loss calculation of the unlabeled data

`# make the pseudo label for unlabeled data
output2 = net(img2);
_, label2 = torch.max(output2, 1);

#semi-supervised loss
loss = criterian(output1, label1) + alpha * criterian(output2, label2);`

Could you please explain why criterian() for unlabeled data works? Because label2 is actually calculated from output2, they are the same indeed? Why non-zero loss is obtained?

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.