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

Problems about "inference_segmentation.py" #7

Open
yixuanli1230 opened this issue Jan 18, 2024 · 1 comment
Open

Problems about "inference_segmentation.py" #7

yixuanli1230 opened this issue Jan 18, 2024 · 1 comment

Comments

@yixuanli1230
Copy link

Question 1: I would like to try to run the reference_segmentation.py file, but the following error occurs "RuntimeError: Can't call numpy() on Tensor that requires grad. use tensor.detach(). numpy() instead.". As shown in the image below.
Uploading WechatIMG599.jpg…

Then I modified ax.add_patch(rect) to ax.add_patch(rect.detach().numpy()). But new error "AttributeError: 'Rectangle' object has no attribute 'detach'" appears.
Uploading WechatIMG600.jpg…

I would like to ask how to solve this problem. The image format I am using is png.

Question 2: While segmenting the CT images, I found that there is a corresponding tasks file in both test and train datasets. How is that masks file obtained?

@yixuanli1230
Copy link
Author

solved it

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

1 participant