Giter VIP home page Giter VIP logo

Comments (7)

david-berthelot avatar david-berthelot commented on June 14, 2024

What TensorFlow version is it happening on?
During development we used 1.12.0

from mixmatch.

zhangbin0917 avatar zhangbin0917 commented on June 14, 2024

My TensorFlow version is 1.14.0.
And I also want to ask how many iterations in training process? I am a bit confused about you code. It's seem to the number of iteration in your implement is not same to the paper "Realistic evaluation of deep semi-supervised learning algorithms" (500,000 iterations).

from mixmatch.

david-berthelot avatar david-berthelot commented on June 14, 2024

So try

pip install tensorflow-gpu==1.12.0

As to the iteration, this code counts them in number of images seen. For standard experiments, the number is 64 million roughly speaking. So in terms of iterations, the number would be divided by the batch size (64).

Yes there are many difference with the paper you mentioned, amongst them we also do not use a learning rate schedule, we also use less augmentations (just mirror and shift) to keep things simpler.

from mixmatch.

zhangbin0917 avatar zhangbin0917 commented on June 14, 2024

I know, I will try tensorflow with 1.12.0. Thank you for your reply.

from mixmatch.

david-berthelot avatar david-berthelot commented on June 14, 2024

I also pushed a commit to the requirements.txt file so that it install 1.12.0 by default.

from mixmatch.

varunnair18 avatar varunnair18 commented on June 14, 2024

Did you have any success with making pseudo_label.py run @zhangbin0917 ? I am having a similar error while running mixup.py, vat.py, and pseudo_label.py, however, I am able to successfully run mixmatch.py, ict.py, and mean_teacher.py .

ValueError: Cannot feed value of shape (64, 2, 32, 32, 3) for Tensor 'y:0', which has shape '(?, 32, 32, 3)'

This is using version 1.13.1 of tensorflow.

from mixmatch.

jagielski avatar jagielski commented on June 14, 2024

That's a different issue - the problem there is the placeholder y_in (line 43 in mixup.py, 37 in vat.py, and 36 in pseudo_label.py) has the wrong shape:
[None] + hwc,
when the ClassifySemi code passes in
[None, 2] + hwc
A quick fix might be changing the y_in line to
y_in = tf.placeholder(tf.float32, [None, 2] + hwc, 'y')
y_stacked = tf.reshape(y_in, [-1] + hwc)
and then changing
logits_y = classifier(y_in, training=True)
to
logits_y = classifier(y_stacked, training=True)
in the relevant files, but I'm not sure that follows intended behavior of the respective algorithms.

from mixmatch.

Related Issues (20)

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.