Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference #27

Open
dengyijia214 opened this issue Apr 26, 2023 · 3 comments
Open

Inference #27

dengyijia214 opened this issue Apr 26, 2023 · 3 comments

Comments

@dengyijia214
Copy link

Could you pleaes help me with the inference problem, I have no idea of how to inference the model which I have trained well. I could not find the ckpt.meta file.

Thank you !

@omagdy
Copy link
Owner

omagdy commented Apr 26, 2023

Hi @dengyijia214

In any GAN model the inference is done using the generator after the training is complete. You can use the this function to automatically load the latest generator saved during training.

And then you can easily do inference with it like in this line of code. Make sure the input has 4 dimensions (number_of_images, x_size, y_szie, z_size).

Let me know if any part needs more clarification.

@dengyijia214
Copy link
Author

Thanks for your reply, I got sick these days so I did not reply you on time. I have not describe my question clearly, I want to know if I want to get the whole predicted image, for example the whole 512512300 size CT, is there anything I could do?

@omagdy
Copy link
Owner

omagdy commented May 23, 2023

Hi @dengyijia214

You would have to split the whole image into smaller blocks using a package like this one and then group them back together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants