perronea / 3d_cyclegan Goto Github PK
View Code? Open in Web Editor NEWGAN for image-to-image translation of 3D T1w and T2w anatomical MR images
GAN for image-to-image translation of 3D T1w and T2w anatomical MR images
Has anyone encountered an environment incompatibility?
I want to generate brain images from brain masks. But I don't how to prepare data. Is the test set used in the training process? I only put datas in train set. But I got a "index 0 is out of bounds for axis 0 with size 0" error.
Hi~
I have some problems with data. I use HCP datasets, the image size is 260x311x260. First, I run prepare_train_data.py to crop data, the result is :
Smallest recommended input image shape: [260 311 260]
Then, I try to run CycleGAN_3D.py to train these data, I encounter a problem:
Traceback (most recent call last):
File "CycleGAN_3D.py", line 994, in
GAN = CycleGAN()
File "CycleGAN_3D.py", line 126, in init
subfolder=image_folder)
File "/3D_MRI_GAN/load_crop_data.py", line 30, in load_data
train_A_images = create_image_array(train_A_image_names, train_A_path, nr_of_channels, img_shape)
File "/3D_MRI_GAN/load_crop_data.py", line 58, in create_image_array
image = np.pad(image,((x1_pad,x2_pad),(y1_pad,y2_pad),(z1_pad,z2_pad)), mode='constant')
File "<array_function internals>", line 6, in pad
File "/environments/3D_MRI_GAN/lib/python3.6/site-packages/numpy/lib/arraypad.py", line 741, in pad
pad_width = _as_pairs(pad_width, array.ndim, as_index=True)
File "/environments/3D_MRI_GAN/lib/python3.6/site-packages/numpy/lib/arraypad.py", line 512, in _as_pairs
raise ValueError("index can't contain negative values")
ValueError: index can't contain negative values
I don't understand the meaning of this error. Could you offer some suggestions for this error?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.