Giter VIP home page Giter VIP logo

Comments (6)

MaybeShewill-CV avatar MaybeShewill-CV commented on August 11, 2024

@chenhuiphd the inference result was the output of a sigmoid function:)

from attentive-gan-derainnet.

chenhuiphd avatar chenhuiphd commented on August 11, 2024

yes, My TF version is 1.10.The range of discriminate_inference value is between (0-1), so log (1-discriminate_inference) is negative. When I train, I find that generator loss will start to appear negative, and finally Nan will appear. So I think adding negative sign before lgan can make lgan positive, so that loss can be avoided in the case of negative numbers or nan.

from attentive-gan-derainnet.

MaybeShewill-CV avatar MaybeShewill-CV commented on August 11, 2024

@chenhuiphd I have met the same problem with tf 1.3 but nothing happened when I upgrade tensorflow from 1.3 into 1.12. Amazing tensorflow:)

from attentive-gan-derainnet.

YangSN0719 avatar YangSN0719 commented on August 11, 2024

FileNotFoundError: [Errno 2] No such file or directory: './data/vgg16.npy'

from attentive-gan-derainnet.

YangSN0719 avatar YangSN0719 commented on August 11, 2024

After downloading the file, the following problems occurred again. I hope you can help me when you see the message. Thank you very much

Traceback (most recent call last):
File "tools/train_model.py", line 339, in
train_model(args.dataset_dir, weights_path=args.weights_path)
File "tools/train_model.py", line 272, in train_model
encoding='latin1').item()
File "/home/409/anaconda3/envs/derain/lib/python3.5/site-packages/numpy/lib/npyio.py", line 453, in load
pickle_kwargs=pickle_kwargs)
File "/home/409/anaconda3/envs/derain/lib/python3.5/site-packages/numpy/lib/format.py", line 722, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

from attentive-gan-derainnet.

YangSN0719 avatar YangSN0719 commented on August 11, 2024

是numpy的版本没处理好,参考https://blog.csdn.net/qq_35008279/article/details/89496094已经解决

from attentive-gan-derainnet.

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.