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

how to visualize the results? #12

Closed
benzzhang opened this issue May 1, 2022 · 2 comments
Closed

how to visualize the results? #12

benzzhang opened this issue May 1, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@benzzhang
Copy link

benzzhang commented May 1, 2022

After testing,I got results included some .png and .npy
I want to know how to fuse them to show the points in the Chest X-Ray pics.
I used the following code,it didn't work:

import numpy as np
import cv2
import matplotlib.pyplot as plt
image = np.load(r'D:\code-zhangjian\code-space\src\chest\CHNCXR_0032_0_gt.npy')
src = plt.imread(r'D:\code-zhangjian\code-space\src\CHNCXR_0032_0.png')
for i in range(0,image.shape[0]):
    plt.imshow(image[i,:,:],cmap='gray')
    plt.imshow(src,cmap='gray')
    cv2.imwrite(str(i)+".png",image[i,:,:])
    plt.show()
@benzzhang benzzhang changed the title how 同 how to visualize the results? May 1, 2022
@heqin-zhu
Copy link
Collaborator

The visualization code is in evaluation.py. You can add -ds arguments at the evaluation stage to generate visualization results. For example, python3 evaluation.py -i ../runs/GU2Net/results/test_epoch067 -ds.

@heqin-zhu heqin-zhu added the good first issue Good for newcomers label May 2, 2022
@benzzhang
Copy link
Author

benzzhang commented May 2, 2022 via email

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

No branches or pull requests

2 participants