pytorch-superpoint icon indicating copy to clipboard operation
pytorch-superpoint copied to clipboard

Inference module for custom trained model

Open JingjunYi opened this issue 3 years ago • 9 comments

Hello, thanks for your great work. After i trained superpoint on my dataset, I can't find some way to extract feature points in my own database. I try to simply load image by using Opencv and calculate pred with those images but get some error'Expected 4-dimensional input for 4-dimensional weight [64, 1, 3, 3], but got 3-dimensional input of size [992, 744, 3] instead'. So i use your dataloader and modify it to Infer.py. And for configuring the path of dataset I change 'path' to a option in yaml. Thanks again for this code, but i still have many problems with your dataloader, it seems that it's not simply loading images. I'll appreciate it if you can tell more details about it.

JingjunYi avatar Sep 12 '21 15:09 JingjunYi

I fork it at here https://github.com/Blackpinkup/pytorch-superpoint

JingjunYi avatar Sep 12 '21 15:09 JingjunYi

Hi @Blackpinkup I also had the same problem, I just wanted to run prediction on a simple image to get key points and descriptors. Have you succeeded digging out the reason of wrong input dimension ? Thank you in advance

Chang-Paris avatar Apr 20 '22 09:04 Chang-Paris

I think you can solve your problem by browsing my project https://github.com/Blackpinkup/pytorch-superpoint. @Chang-Paris

JingjunYi avatar Apr 20 '22 12:04 JingjunYi

I think you can solve your problem by browsing my project https://github.com/Blackpinkup/pytorch-superpoint. @Chang-Paris

@Blackpinkup , Can you tell more details about how to predict on a simple image ? In the https://github.com/Blackpinkup/pytorch-superpoint, which file can do this?

weiningwei avatar Apr 21 '22 02:04 weiningwei

I have add a guideline in my own project(modification). Please use export.py(based on Infer.py) to export your final result. @Chang-Paris @weiningwei

JingjunYi avatar Apr 21 '22 02:04 JingjunYi

Thank you @Blackpinkup for your scripts, it works for me. @weiningwei , pay attention to your config file and dataset, you may also have to bring some modification when you load parameters. The command line would be like python export.py inference your_config.yaml output_name

Chang-Paris avatar Apr 21 '22 14:04 Chang-Paris

@JingjunYi Hello, can you please ask in detail about how to use your own data set for evaluation? If it is convenient, can you contact me by email?

fenglezhou avatar Sep 08 '23 09:09 fenglezhou

Thank you @Blackpinkup for your scripts, it works for me. @weiningwei , pay attention to your config file and dataset, you may also have to bring some modification when you load parameters. The command line would be like python export.py inference your_config.yaml output_name

两位好,方便提供一下能够直接运行的config吗?

li575867 avatar Apr 30 '24 09:04 li575867

@JingjunYi Hello, can you please ask in detail about how to use your own data set for evaluation? If it is convenient, can you contact me by email?

你好,后面有没有运行出来?方便提供一下能够直接运行起来的配置吗?

li575867 avatar Apr 30 '24 09:04 li575867