Open bme-2020 opened 3 years ago
Hi,
these are only small examples to guide new users how to setup just the projection and reconstruction with the provided layers. However, there is no learning happening in this example, therefore you cant find any save method for the best parameters.
If you are interested in a pure Tensorflow learning example, I recommend you take a look at the "example_learning_tensorflow". However, there is no high-level model storage strategy in the learning example either. The train() method simply returns a result dict containing the best weights for the reconstruction filter. Note that the examples are mainly intended to show the basic use of the layers and the geometry object, but you can just include the provided layers in more complicated structures and training code.
Hope that clarifies your question.
best
As a preliminary student in the field of deep learning CT reconstruction, I am very interested in what you have done. After carefully reading your article and code implementation, I configured the environment on the server of the laboratory and successfully ran your code after making some modifications.But I have a question as follow: After training the model through train_model.py file, how are the best training parameters obtained using the early stop method saved and used for reconstruction later?When I just started to learn neural network, I have learned methods such as model.save() and model.load() to save and call the model. Of course, there are many other ways to complete this process. Could you please tell me how you realize this? I'm sorry I didn't see that in the code.
For instance,your example_cone_3d.py :
import RunetimeError import numpy as np import tensorflow as tf import matplotlib.pyplot as plt
from pyronn.ct_reconstruction.layers.projection_3d import cone_projection3d from pyronn.ct_reconstruction.layers.backprojection_3d import cone_backprojection3d from pyronn.ct_reconstruction.geometry.geometry_cone_3d import GeometryCone3D from pyronn.ct_reconstruction.helpers.phantoms import shepp_logan from pyronn.ct_reconstruction.helpers.trajectories import circular_trajectory from pyronn.ct_reconstruction.helpers.filters.filters import ram_lak_3D
def example_cone_3d():
------------------ Declare Parameters ------------------
if name == 'main': example_cone_3d()