Git Product home page Git Product logo

Comments (4)

covasquezv avatar covasquezv commented on June 9, 2024

Were you able to solve this issue? I'm facing the same one.

from multiplanarunet.

christian-igel avatar christian-igel commented on June 9, 2024

from multiplanarunet.

covasquezv avatar covasquezv commented on June 9, 2024

Hi Christian, thanks for replying.

In my case, I'm using a p3.2xlarge AWS instance with the following details:

  • Deep Learning AMI (Ubuntu 18.04) Version 30.0
  • CUDA 10.0
  • Tensorflow-gpu 2.2.0
  • Python 3.6

I've followed each one of the instructions, but in this line:
mp train --num_GPUs=2 # Any number of GPUs (or 0)

the following error arise after the first epoch is completed:

Epoch 1/500
1/1 [==============================] - ETA: 0s - sparse_categorical_accuracy: 0.9208 - loss: 0.2810'UNet' object has no attribute 'loss_functions'
Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/tensorflow_p36/bin/mp", line 11, in <module>
    load_entry_point('mpunet', 'console_scripts', 'mp')()
  File "/home/ubuntu/MultiPlanarUNet/mpunet/bin/mp.py", line 55, in entry_func
    mod.entry_func(parsed.args)
  File "/home/ubuntu/MultiPlanarUNet/mpunet/bin/train.py", line 390, in entry_func
    raise e
  File "/home/ubuntu/MultiPlanarUNet/mpunet/bin/train.py", line 386, in entry_func
    run(project_dir=project_dir, gpu_mon=gpu_mon, logger=logger, args=args)
  File "/home/ubuntu/MultiPlanarUNet/mpunet/bin/train.py", line 349, in run
    hparams=hparams, no_im=args.no_images, **hparams["fit"])
  File "/home/ubuntu/MultiPlanarUNet/mpunet/train/trainer.py", line 161, in fit
    raise e
  File "/home/ubuntu/MultiPlanarUNet/mpunet/train/trainer.py", line 147, in fit
    **fit_kwargs)
  File "/home/ubuntu/MultiPlanarUNet/mpunet/train/trainer.py", line 257, in _fit
    verbose=verbose
  File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py", line 66, in _method_wrapper
    return method(self, *args, **kwargs)
  File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py", line 876, in fit
    callbacks.on_epoch_end(epoch, epoch_logs)
  File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/tensorflow/python/keras/callbacks.py", line 365, in on_epoch_end
    callback.on_epoch_end(epoch, logs)
  File "/home/ubuntu/MultiPlanarUNet/mpunet/callbacks/validation.py", line 263, in on_epoch_end
    class_wise_metrics, mean_batch_wise_metrics = self.evalaute()
  File "/home/ubuntu/MultiPlanarUNet/mpunet/callbacks/validation.py", line 145, in evalaute
    metrics = self.model.loss_functions + self.model.metrics
AttributeError: 'UNet' object has no attribute 'loss_functions'

from multiplanarunet.

perslev avatar perslev commented on June 9, 2024

Hi, thank you for your interest! Sorry for my late response. As Christian said, I have been on vacation over the last few weeks.

I was able to recreate this error on my system with TensorFlow 2.2. I have now updated the mpunet package to version 0.2.6 which should solve this issue. Please try to pull the latest repo from GitHub or install the new package with pip install mpunet==0.2.6.

If you experience any issues please feel free to reach out again.

Cheers,
Mathias

from multiplanarunet.

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.