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

hello can you help with models? #20

Open
ilie321 opened this issue Jan 4, 2023 · 6 comments
Open

hello can you help with models? #20

ilie321 opened this issue Jan 4, 2023 · 6 comments

Comments

@ilie321
Copy link

ilie321 commented Jan 4, 2023

Hello
i have a free app with code for thermal camera and i want to try the models you have in this git but the problems is that my app use opencv which know only *.pb or *.onnx models and i'm stuck
can you help me somehow? thank you

@tumuyan
Copy link
Owner

tumuyan commented Jan 4, 2023

Sorry I can't help you with that. In fact the work I have done is very small. As the readme shows, these projects have original projects (use Python language and .pth models), nihui produced inference in c language and ncnn models. This repository uses nihui's results directly.
Currently there are tools to directly convert pth models to onnx models, but the inference need to be rewritten. I have no such experience.

@ilie321
Copy link
Author

ilie321 commented Jan 17, 2023

Ok thank you. Do you know what settings are better for ncnn for video conversion? Like the net.opt are different?

@ilie321
Copy link
Author

ilie321 commented Jan 19, 2023

Anyone? Thanks

@tumuyan
Copy link
Owner

tumuyan commented Jan 23, 2023

A model processing video is actually to parse the video into multiple pictures, then process each image separately, and finally connect these pictures into a video again.
For ir sensors, you may need to train a dedicated model. There are many problems with existing models, such as the image resolution of the model is higher than that of ir sensor, but I am not good at these so could not help you

@ilie321
Copy link
Author

ilie321 commented Jan 23, 2023

Thanks for answering. Using your models i got good results for IR but i need for pcb to get good results and this is my problem. Can you point me where to start for build a good model step by step tha is working with ncnn? I found some pytorch gits and i tried to train some model with ir images but image is distorted and only one color and after converting pth to ncnn is give me black screen.
Yor models example : 80x60 image
2023-01-16-17-38-41
Results look like this :amazing
2023-01-13-17-06-10

@tumuyan
Copy link
Owner

tumuyan commented Jan 23, 2023

I'm not sure which model you used? realesrgan pth model to ncnn model:
https://github.com/tumuyan/RealSR-NCNN-Android#add-more-models-to-realsr-ncnn-android-gui

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

2 participants