techxzen / hdrnet-mobile

A C++ implementation of hdrnet inference.
49 stars 11 forks source link

Found a Bug:FILE * fi = fopen(file_name, "r"); #3

Open PanJinquan opened 6 years ago

PanJinquan commented 6 years ago

Hi,thank you so much for sharing your code! Recently,I write aCMakelists.txt for your project and try to build your project by cmake in Windows. But I found a Bug.When running on Linux(Ubuntu), the result was normal .But when running on Windows,the output image was abnormal(all black). Puzzling ! So I debug your code, I found this function read_data_from_file read the binary file and try to print its value ,result show that different from the Linux. So , I modified the code FILE * fi = fopen(file_name, "rb");and it ran successfully in windows.

PanJinquan commented 6 years ago

Besides,your codeint HDRNET_run(void ** handle, UINT8 * src_img, UINT8 * dst_img, int height, int width),The array fullres_img_hwcmemory is not freed

techxzen commented 6 years ago

Thank you very much for bug report.