-
Notifications
You must be signed in to change notification settings - Fork 58
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
Test trained model on single image #20
Comments
I am sorry that we did not provide such a script. But there are ways for doing that. One easy way is to set those arguments (truth_boxes, masks) to None. Those GT arguments are used only in training mode (https://github.com/uci-cbcl/NoduleNet/blob/master/net/nodule_net.py#L365-L374). |
Thanks for answering! I tried passing a whole scan, but got this error: I'm so sorry to disturb you at all on this matter. |
The input is the 3D CT scan. PyTorch expects a 5-dimensional input for volumetric data. So your input should be [batch_size, channel, depth, height, width]. You need to add one more dimension to your input, e.g. using torch.unsqueeze(tensor, 0) |
Hello Tang, that helped, thanks a lot.
Error:
Thank you again. |
can you find the function average_precision()? |
|
Excuse me,sir?!may I ask you for some help? my emil is 913620614@qq.com thank you very much! |
Hello ,
Is it possible to run the trained model on a single CT scan?
I've tried loading the provided checkpoint and running inference on a single CT scan, but ran into a number of problem.
But the most relevant one is that the net forward method expects a number of inputs, truth_bboxes, masks, etc.
I've also tried using the eval_single function, so I assumed the model was ready to receive a single ct scan input.
I appreciate the attention.
The text was updated successfully, but these errors were encountered: