Comments (12)
Duplicate of #
from rvgan.
Hi,
I have not encountered this problem before. Did you check if the data-sets are normalized to -1 to 1 and being passed to the models properly?
You can check the npz file by opening and then printing one row of the values.
It can be also a problem of the version of tf/keras.
Just to be sure, I will try to run the train.py again and report you the output here.
Thanks
from rvgan.
I have run it once again, it seems to work for Tensorflow 2.0.0 and Keras 2.3.1, the version mentioned in the repository.
Also there seems to be no NAN value for any individual losses.
Attaching the image below
from rvgan.
After training for more than 2 epochs I am still seeing no NAN values in all the losses.
Please clone the latest repository and see if you are using the correct version of the packages.
I am closing this issue for now. Please reopen if necessary. Thanks !
from rvgan.
I am sure that my tensroflow and keras version are 2.0.0 and 2.3.1 . And I am sure that the value of .npz file is between -1 and 1. But I will still got the same problem.
from rvgan.
from rvgan.
Your problem is a classic case of gradient explosion. There are tons of github issues/stackexchange discussion on this.
Most of them mention the dataset being normalized (-1.0 to 1.0 in our case) properly and made into float values.
Can you mention which Data-set you used DRIVE, CHASE or STARE. Also, can you provide the .npz file as bitbucket, dropbox or drive link here ? I want to try it on my code.
Thanks
from rvgan.
I use DRIVE dataset,but the .npz is large.
Could you Email me? I will Email the .npz file.
My Email is [email protected]
Thanks very much.
from rvgan.
If you can not download from:https://pan.baidu.com/s/1I8CNRCq_1WZ-TrAO83Nyzg
the code is :driv ,please email me
from rvgan.
Please use this npz file and train using the python file given in the repository. Also post the results here.
Thanks
https://drive.google.com/file/d/1j1BErDnxJIjA3VEgrr66tXQFyW-NTzDr/view?usp=sharing
from rvgan.
Thanks very much.
It's better if you can link the original DRIVE data images.
I want to known why we got this problem.
from rvgan.
It's already given in the Readme.MD file.
from rvgan.
Related Issues (20)
- Inference time HOT 1
- Code for printing the metrics HOT 5
- Some questions about the paper and code HOT 9
- pretrained model of chase can't be loaded HOT 16
- Killed error HOT 1
- local_plot predictions always blank HOT 3
- How to determine the best model HOT 4
- need help! HOT 2
- Hello! HOT 5
- Hi~ HOT 1
- Having nan value for all the losses HOT 1
- length error! HOT 3
- libtiff error
- the generation of the final output image HOT 2
- When we run train.py, I find the loss is 'nan' at epchs 2. Do you have this problem. I want to know why and how to solve it. HOT 1
- whether we need to pay attention to some details during training? HOT 12
- Question about loss decline HOT 2
- How should we train the model using tf 2.6.0? HOT 4
- Warning while training HOT 2
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 rvgan.