Comments (3)
Hi,
The first thing I encounter is what you have at line 80:
you need to use the bounded_log_sigmas instead of sigmas, so you need to change the second argument from output[1] to output[3]
Moreover, you need to ensure that when training the fitting network that the gradient is not passing backward to the sampling network. You can ensure that by adding stop_gradient on input_2 in net.py (make_graph() at line 43)
Note that during training the fitting, the NLL loss usually does not decrease much but it should not be always constant. Maybe you can share the fitting loss plot.
Depending on your application, you need to check the quality of the hypotheses from the sampling network to see if they are good. If not, the fitting network won't be able to fit a mixture model to bad hypotheses.
Hope this helps,
from multimodal-future-prediction.
Thanks for your findings, the change of output[1] to output[3] solved the constant fitting loss problem. I also added: input_2 = tf.stop_gradient(input_2)
before the 'net2' layers, but there is not much difference on the loss compared to not using the stop_gradient. However, the errors are still there, I will train it with more data and epochs to see if these errors affect the performance.
I have not visualized the result of the hypothesis but will do it later. My training loss of the hypothesis is around 11 after 500 epochs of training on 10k training pairs.
from multimodal-future-prediction.
I think this can be closed for now. Please feel free to reopen it if you have encounter other problems.
from multimodal-future-prediction.
Related Issues (12)
- OSError: dlopen(wemd/lib/libwemd.so, 6): image not found HOT 5
- Question related to make_sampling_loss function HOT 3
- Training scripts for SDD dataset
- What is the `tb` package? HOT 4
- EMD on CPI dataset HOT 2
- Training scripts for CPI dataset HOT 14
- Figure3 on paper HOT 4
- Questions about sampling network training process HOT 7
- Questions about dataset creation HOT 3
- Feasibility for the training script HOT 1
- Questions about the optimizers used for training the sampling and fitting neural networks HOT 3
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 multimodal-future-prediction.