Git Product home page Git Product logo

Comments (12)

song-cc avatar song-cc commented on June 2, 2024

Duplicate of #

from rvgan.

SharifAmit avatar SharifAmit commented on June 2, 2024

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.

SharifAmit avatar SharifAmit commented on June 2, 2024

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
Screen Shot 2021-09-14 at 4 53 46 PM

from rvgan.

SharifAmit avatar SharifAmit commented on June 2, 2024

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 !

Screenshot from 2021-09-14 17-31-21

from rvgan.

song-cc avatar song-cc commented on June 2, 2024

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.

song-cc avatar song-cc commented on June 2, 2024

图片
图片

from rvgan.

SharifAmit avatar SharifAmit commented on June 2, 2024

Your problem is a classic case of gradient explosion. There are tons of github issues/stackexchange discussion on this.

  1. keras-team/keras#2134
  2. keras-team/keras#1244

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.

song-cc avatar song-cc commented on June 2, 2024

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.

song-cc avatar song-cc commented on June 2, 2024

If you can not download from:https://pan.baidu.com/s/1I8CNRCq_1WZ-TrAO83Nyzg
the code is :driv ,please email me

from rvgan.

SharifAmit avatar SharifAmit commented on June 2, 2024

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.

song-cc avatar song-cc commented on June 2, 2024

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.

SharifAmit avatar SharifAmit commented on June 2, 2024

It's already given in the Readme.MD file.

from rvgan.

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.