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

Save flow file as numpy and visualize it #5

Open
RokiaAbdeen opened this issue Jul 21, 2022 · 1 comment
Open

Save flow file as numpy and visualize it #5

RokiaAbdeen opened this issue Jul 21, 2022 · 1 comment

Comments

@RokiaAbdeen
Copy link

thank you so much for sharing your awesome code

could you please explain how to save the flow file as .npy to visualize it as in visualize.py file

thank you in advance

@RokiaAbdeen
Copy link
Author

RokiaAbdeen commented Jul 26, 2022

I have saved the predicted flow with shape [batch=1,3,npoints=8192] as follows:
flow=flow.cpu().detach().numpy #convert tensor to numpy file
np.save(file_path,flow)
then, in visual.py I have tried to upload the saved file with the same code as in visual.py but the shape of the flow is zero
could you explain how could I solve this problem please ..

thanks in advance

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