Giter Site home page Giter Site logo

Comments (9)

jermenkoo avatar jermenkoo commented on July 22, 2024 8

@lxyhahaha you seem to be using Python 3 where / does floating point division by default; you might want to change that to // which performs integral division.

from keras-fcn.

WenbinYang123 avatar WenbinYang123 commented on July 22, 2024 5

@anas-899 I solved it by following code:
image

from keras-fcn.

WenbinYang123 avatar WenbinYang123 commented on July 22, 2024 3

@anas-899 you can change histogram_freq=10 to histogram_freq=0.
image

from keras-fcn.

anas-899 avatar anas-899 commented on July 22, 2024

@lxyhahaha did you solve the problem?

from keras-fcn.

anas-899 avatar anas-899 commented on July 22, 2024

@WenbinYang123
Thanks a lot for your fast response.
I tried your solution and the previous error disappear but I got another error:
tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[512] [[Node: bn3b_branch2c/moments/mean = Mean[T=DT_FLOAT, Tidx=DT_INT32, keep_dims=true, _device="/job:localhost/replica:0/task:0/gpu:0"](res3b_branch2c/BiasAdd, bn3b_branch2c/moments/mean/reduction_indices)]] [[Node: loss/add_53/_2497 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_28257_loss/add_53", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[512] [[Node: bn3b_branch2c/moments/mean = Mean[T=DT_FLOAT, Tidx=DT_INT32, keep_dims=true, _device="/job:localhost/replica:0/task:0/gpu:0"](res3b_branch2c/BiasAdd, bn3b_branch2c/moments/mean/reduction_indices)]] [[Node: loss/add_53/_2497 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_28257_loss/add_53", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]()]]

do you know how can I resolve it?

from keras-fcn.

anas-899 avatar anas-899 commented on July 22, 2024

@WenbinYang123

it turned out that happened because of big batch_size = 16
I changed it to batch_size = 4 and it worked without any problem.

Thanks

from keras-fcn.

anas-899 avatar anas-899 commented on July 22, 2024

@WenbinYang123
I am getting new error after the training started:

raise ValueError('If printing histograms, validation_data must be ' ValueError: If printing histograms, validation_data must be provided, and cannot be a generator.

this is happening at the end of first Epoch 1/200
2781/2782 [============================>.] - ETA: 0s - loss: 0.9863 - sparse_accuracy_ignoring_last_label: 0.7550Traceback

are you getting same error?

from keras-fcn.

lxy-94 avatar lxy-94 commented on July 22, 2024

@jermenkoo Thank you, I have just solved it by following your suggest.

from keras-fcn.

ahundt avatar ahundt commented on July 22, 2024

Merged a PR that should fix this, let me know if there are still problems, thanks!

from keras-fcn.

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.