neurvps icon indicating copy to clipboard operation
neurvps copied to clipboard

how to test your pretrained model on a picture from my own computer

Open ZeyingXuHuaWei opened this issue 4 years ago • 6 comments

hello, I am poor at programming, can you tell me how to test your pretrained model on a picture from my own computer?

ZeyingXuHuaWei avatar Apr 14 '20 07:04 ZeyingXuHuaWei

Currently you need to write you own dataset to test it. I might provide a script for this in the future.

zhou13 avatar Apr 15 '20 18:04 zhou13

@zhou13 thank you for your reply! May I ask another question. Suppose that three vanishing points of a picture in manhattan world are detected, can we compute the camera pose (including position and rotation ) or can we just obtain camera rotation?

ZeyingXuHuaWei avatar Apr 16 '20 02:04 ZeyingXuHuaWei

Just camera rotation.

zhou13 avatar Apr 16 '20 23:04 zhou13

@zhou13 I tried to make my own dataset file by reverse-engineering the datasets.py file and realized that label files like .mat, .txt, .npz are needed for each image to test. But I really want to test any random image with no label data. Hence, request you to provide a script/example that shows how to get vanishing points of any image without having any label data. Thank you.

hashimK avatar Jul 20 '20 14:07 hashimK

@hashimK The easiest way to do that for now is to create a dataset with a random label. Then you will be able to test it and find the vanishing point without gt labels. To finding the dominant vanishing point, I would suggest use the pre-trained model on Natural Scene dataset.

zhou13 avatar Jul 20 '20 19:07 zhou13

@zhou13 Thanks! It helps this way

hashimK avatar Jul 21 '20 10:07 hashimK

Hi Zhou! Could you provide the test script?

xiaoxiaoyi689 avatar Aug 03 '23 02:08 xiaoxiaoyi689

Sorry, I still don't have the scripts. I will close this issue as it is unlikely for me to provide such a script in the near future. However, I will be happy to test one if somebody makes an PR.

zhou13 avatar Aug 03 '23 04:08 zhou13