Giter Site home page Giter Site logo

Comments (9)

Svito-zar avatar Svito-zar commented on June 11, 2024

I think it is an issue with Tensorflow model saving/loading.

To verify that I suggest evaluating a freshly trained model, then saving it, loading it from the checkpoint and evaluating the restored model again. If you get different results - then the issue is clearly in saving/loading.

from nn-for-missing-marker-reconstruction.

jilu95 avatar jilu95 commented on June 11, 2024

I have repeatedly trained to save the model several times and load the model, this problem will still appear.I can't find the error when saving and loading the model.The code of load the model comes from train.py.

from nn-for-missing-marker-reconstruction.

jilu95 avatar jilu95 commented on June 11, 2024

I run test.py twice,
The first result isbasketball: 0.8070919273342075 basketball: 1.0064784338799717
The second result isbasketball: 0.8070919273342075 basketball: 1.0064784338799717
The two results are the same.But,why the basketball different when tested together?I suspect that there is a problem in calling the test function. Is there any random value I have not found?but I have not found it yet.

from nn-for-missing-marker-reconstruction.

jilu95 avatar jilu95 commented on June 11, 2024

Mark points are randomly missing during training, but at the time of testing, the missing points are fixed.Or maybe there is a possibility that this deviation exists, but why does this deviation exist? I don't understand very well.

from nn-for-missing-marker-reconstruction.

Svito-zar avatar Svito-zar commented on June 11, 2024

@jilu95 , can you , please, provide, the code snippet you are using to get those results on the basketball sequence? (not the whole file, but just the code when you save, load an test the model)

from nn-for-missing-marker-reconstruction.

jilu95 avatar jilu95 commented on June 11, 2024

I have already sent you an email about code.Please let me know if something is not available.

from nn-for-missing-marker-reconstruction.

Svito-zar avatar Svito-zar commented on June 11, 2024

I think you did not understand what I mean.

What I suggested you try is to modify the code in train.py in the following way:

  1. Train the model

  2. Test the model (with your setting)

  3. Save the model in the checkpoint

  4. Load the model from this checkpoint

  5. Test it again.

And that all should be in the same file. The results of step 2 and 5 should be the same, if saving/restoring work fine.

from nn-for-missing-marker-reconstruction.

Svito-zar avatar Svito-zar commented on June 11, 2024

@jilu95 , I had more time to look at your issue now and I think I found where the different results come from.

The function test has randomness in it, since it generates a random mask for the missing values using function cont_gap_mask. So every time you run test you are testing with different mask and hence getting different results.

Does it answer your question?

from nn-for-missing-marker-reconstruction.

jilu95 avatar jilu95 commented on June 11, 2024

Thank you for you help.It's really a matter of randomness.Thanks again!

from nn-for-missing-marker-reconstruction.

Related Issues (3)

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.