Comments (4)
Were you able to solve this issue? I'm facing the same one.
from multiplanarunet.
from multiplanarunet.
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.
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)
- [urgent] Inputs to operation AddN_7 of type AddN must have the same size and shape.
- Does it support multi-channel input images? HOT 1
- ValueError: 'bg_value' should be a list of length 'n_channels'. Got [4.0] for n_channels=2 HOT 1
- Input volume is sampled on 2D HOT 2
- Error when trying to train HOT 1
- Does MPU have to install "tensorflow-gpu==2.3.2"? The readme file says that GPU is not required. HOT 1
- Why do we need 'predict_single' in predict.py? HOT 2
- No available GPUs... Sleeping 120 seconds HOT 1
- What is real_space_span? HOT 1
- nan weights, nan validation losses HOT 3
- dataset folder structure
- Could you please provide the pdf of your paper? HOT 1
- my system restarts automatically whenever I start training HOT 1
- Clallbacks: Cannot feed value of shape (16, 128, 128, 1) for Tensor 'conv2d/truediv:0', which has shape '(?, 128, 128, 3)' HOT 7
- Getting ValueError in new environment HOT 1
- Memory Error and Lack of GPU Usage HOT 4
- When training on toy_data, TypeError: can only concatenate list (not "dict") to list HOT 1
- weights can not be broadcast to values. values.rank=3. weights.rank=1. values.shape=(2, 448, 448). weights.shape=(2,). HOT 12
- xla_gup not compatible to newest tensorflow version 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 multiplanarunet.