PV-RAFT icon indicating copy to clipboard operation
PV-RAFT copied to clipboard

Save flow file as numpy and visualize it

Open RokiaAbdeen opened this issue 3 years ago • 1 comments

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 avatar Jul 21 '22 14:07 RokiaAbdeen

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

RokiaAbdeen avatar Jul 26 '22 12:07 RokiaAbdeen