bernardohenz / deep_joint_design_cfa_demosaicing

Implementation of the article Deep Joint Design of Color Filter Arrays and Demosaicing
GNU General Public License v3.0
21 stars 5 forks source link

can we use this method via opencv dnn for inference only? #2

Open ghimiredhikura opened 5 years ago

ghimiredhikura commented 5 years ago

Hello @bernardohenz,

Thanks for the nice work. I was wondering is it possible to use opencv dnn inference module for demosaicing using pretrained models you have provided in this repo.

opencv dnn modules: https://github.com/opencv/opencv/tree/master/modules/dnn/src/tensorflow

Best, Deepak

bernardohenz commented 5 years ago

I've never tried this opencv module. But if you could load the saved models (.h5 files saved with keras), I believe you could make it work. I haven't used any custom layer, so it should not be a problem.

ghimiredhikura commented 5 years ago

@bernardohenz, Thanks for the reply. Can we convert this keras models (.h5 and .json) into tensorflow?