Code Monkey home page Code Monkey logo

ddcgan's People

Contributors

hanna-xu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ddcgan's Issues

GPU使用

这个代码只能使用一个GPU,运行速度很慢,怎么使用多个GPU来跑这个代码

训练模型是出现一个问题

I want to know how to solve this plblem.
raise ValueError("Can only save/restore ResourceVariables when
ValueEmror: Can only save/restore ResourceVariables when executing eagerly, got type: <class tensorflow.python,framework.ops .Tensor '>

How can I improve it?

First of all, thank you for sharing your code.In the code of the same-resolution vis-ir image fusion, I used your training datasets, test datasets and related parameters, but only a few pairs of the final test results could achieve the effect in your paper.A similar situation occurred after I directly used your model. How can I improve it?

about multi-ressolution testing

hi, thank you for sharing the code!
I've noticed that in the muti-resolution fusion part, the resolution of the IR and VIS picture have to be fixed, which is 1:4 in your testing codes, to work out. I'm trying to change the resolution relationship by changing the multiple '4' in the following codes:
Generator.py line16
IR = deconv_ir(ir, strides = [1, 4, 4, 1], scope_name = 'deconv_ir')

Deconv.py line18-21
out = tf.nn.conv2d_transpose(out, filter = kernel, output_shape = [int(input_shape[0]), int(input_shape[1]) * 4,
int(input_shape[2]) * 4,
int(input_shape[3])],
strides = strides, padding = 'SAME')

It works out for 2, 4, 8 but fails on 3, 6, 9, mainly because of the resolution difference.

I wonder if there is a way to fuse arbitrary resolution IR and VIS pictures. Is there anything else which needs to be modified?

Try with .nii images

Hi!
First of all, thank you very much for sharing your code, it's a great job, congratulations!

I would like to train it with my own dataset. I've the image volumes in .nii format. Would be it possible?

Thank you very much in advance!

session问题

Traceback (most recent call last):
File "/home/root3203/wanniny/code/DDcGAN-master/PET-MRI image fusion/main.py", line 57, in
main()
File "/home/root3203/wanniny/code/DDcGAN-master/PET-MRI image fusion/main.py", line 32, in main
train(sources, MODEL_SAVE_PATH, EPOCHES, BATCH_SIZE, logging_period=LOGGING)
File "/home/root3203/wanniny/code/DDcGAN-master/PET-MRI image fusion/train.py", line 200, in train
saver.save(sess, save_path + str(epoch) + '/' + str(epoch) + '.ckpt')
File "/home/root3203/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1703, in save
{self.saver_def.filename_tensor_name: checkpoint_file})
File "/home/root3203/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 900, in run
run_metadata_ptr)
File "/home/root3203/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1058, in _run
raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.
您好在跑完您的training后总是遇到这个错误请问怎么解决

about The MRI/PET

Dear Professor Xu,
At first place, I generally thanks for your code. When I run the code of MRI/PET , I could not get your results. And I always get the significantly lower results than your results. Could you tell me about how can I get your results?
Your sincerely.
Scarlett

What are the dependencies used?

Hi!

It'd be great if tyou could add a dependency versions list.
Cannot reproduce results without creating the same environment.

About the metrics

Dear hanna-xu,
I sincerely thank you for your code. Since I didn't find the metrics in your code ,I have looked for variable codes about PSNR. But I got the PSNR always approximately 29. I didn't kown why I got the results. Can you help me?
Your sincerely.
Jessis

我在训练多分辨率融合时遇到一个问题

ir_batch[b, :, :] = scipy.ndimage.zoom(ir_or_batch[b, :, :], 0.25)

ValueError: could not broadcast input array from shape (0,21) into shape (21,21)

执行的过程中报了这个错误。请问应该如何处理

Question about dataset

Hello, author, thank you for sharing the source program. I have some questions for you. How do you make dataset Medical_dataset.h5? How are PET data and MRI data combined? I'm very confused about this. Can you help me? Thank you very much.

对于数据集的问题

作者您好,我想知道您的训练数据是否都是单通道的灰度图像?
对于我目前的工作,我想使用RGB的图像来进行训练是否可行?
感激不尽

Training data encountered a problem

ir_batch[b, :, :] = scipy.ndimage.zoom(ir_or_batch[b, :, :], 0.25)

ir_batch[b, :, :] = scipy.ndimage.zoom(ir_or_batch[b, :, :], 0.25)

ValueError: could not broadcast input array from shape (0,21) into shape (21,21)

there is an error when I run your model

Hi, thank your for sharing your code. I met some problems when I run your model under the folder same-resolution vis-ir image fusion. I used your model to inference the images, there is the error:

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Key Generator_1/decoder/conv2_5/bias not found in checkpoint
[[node save/RestoreV2 (defined at generate.py:38) ]]
I am confused . Could you help me? Thanks~

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.