3D-VAE icon indicating copy to clipboard operation
3D-VAE copied to clipboard

Can't run the code

Open Sunghee-SDL opened this issue 4 years ago • 2 comments

Hello Thanks for sharing the good code.

But I want to run the code but I get a ValueError. I ran it all on tensorflow 2.2, 2.1, and 2.0, but it doesn't work.

I used voxel data that I have The data demension is set to (x, 1, 32, 32, 32). And I haven't changed the rest at all.

But keep going ValueError: ('Error when checking model target: expected no data, but got:', array([[[[[-1., -1., -1., ..., -1., -1.," -One.], [-1., -1., -1., ..., -1., -1., -1.], [-1., -1., -1., ..., -1., -1., -1.], ..., [-1., -1., -1., ..., -1., -1., -1.], [-1., -1., -1., ..., -1., -1., -1.], [-1., -1., -1., ..., -1., -1., -1.]],

     [[-1., -1., -1., ..., -1., -1., -1.],
      [-1., -1., -1., ..., -1., -1., -1.],
      [-1., -1., -1., ..., -1., -1., -1.],

I get an error like this. Why is this?

And which version of tensorflow should I use?

Sunghee-SDL avatar Sep 14 '20 14:09 Sunghee-SDL

Hi, could you try to run it with TensorFlow 1.13.1? This is the version I was using and I didn't test the code with other versions.

IsaacGuan avatar Oct 09 '20 19:10 IsaacGuan

Try tf 1.14.0 with keras 2.3.0 version it will work and use GPU since conv3d layer requires GPU support

rudransh2004 avatar May 16 '22 20:05 rudransh2004