Comments (9)
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.
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.
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.
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.
@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.
I have already sent you an email about code.Please let me know if something is not available.
from nn-for-missing-marker-reconstruction.
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:
-
Train the model
-
Test the model (with your setting)
-
Save the model in the checkpoint
-
Load the model from this checkpoint
-
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.
@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.
Thank you for you help.It's really a matter of randomness.Thanks again!
from nn-for-missing-marker-reconstruction.
Related Issues (3)
- Questions HOT 5
- preprocessed dataset links not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nn-for-missing-marker-reconstruction.