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

matlab评估结果遇到问题 #25

Open
gangweiX opened this issue Jul 1, 2023 · 4 comments
Open

matlab评估结果遇到问题 #25

gangweiX opened this issue Jul 1, 2023 · 4 comments

Comments

@gangweiX
Copy link

gangweiX commented Jul 1, 2023

***** GT dir: ../data/dynamic_RGB_data_2exp_release/, 76 Expo , Max num: 76
***** Est dir: ../data/Details/01/*****
Loading HDR list: ../data/dynamic_RGB_data_2exp_release/hdr_list.txt
Grab all *.hdr files in ../data/Details/01/
Found 76 hdr files
Found 76 HDRs, test 76 HDRs
Starting parallel pool (parpool) using the 'local' profile ...
Connected to parallel pool with 8 workers.
错误使用 hdrvdp_visual_pathway
MEX 文件
'/Users/xugangwei/Desktop/matlab/DeepHDRVideo/matlab/Library/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
无效:
dlopen(/Users/xugangwei/Desktop/matlab/DeepHDRVideo/matlab/Library/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64,
0x0006): Library not loaded: @loader_path/libmex.dylib
Referenced from: <9F1237D5-8AD4-BB28-F5F8-A352CDC5C208>
/Users/xugangwei/Desktop/matlab/DeepHDRVideo/matlab/Library/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64
Reason: tried:
'/Users/xugangwei/Desktop/matlab/DeepHDRVideo/matlab/Library/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/libmex.dylib'
(no such file), '/usr/local/lib/libmex.dylib' (no such file), '/usr/lib/libmex.dylib' (no such file, not in dyld
cache)

出错 hdrvdp (第 266 行)
[B_R L_adapt_reference band_freq bb_padvalue] = hdrvdp_visual_pathway( reference, 'reference', metric_par, -1 );

出错 paral_eval_HDRs (第 37 行)
parfor i = 1: num

出错 main_eval (第 32 行)
[psnrTs, psnrLs, ~, hdrvdps] = paral_eval_HDRs(gt_dir, est_dir, max_num, est_hdr_max); % parfor loop

你好,我在MacBook Air (M1)上面下载的Matlab_R2023a,在评估结果时遇到这个问题,请问您知道这该如何解决吗?

@gangweiX
Copy link
Author

gangweiX commented Jul 1, 2023

报错上似乎说,在matlab/Library/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed里面没有找到libmex.dylib

@guanyingc
Copy link
Owner

Maybe it is caused by a different version of matlab used. Previously, I used the matlab with an old version of R2016a in Ubuntu.

@gangweiX
Copy link
Author

gangweiX commented Jul 2, 2023

嗨,非常感谢您的回复!按照您的建议,我又在我的Mac上面重新安装了R2016a。然而,在安装HDR Toolbox(https://github.com/banterle/HDR_Toolbox)时遇到报错,如下:
image
提示说错误使用mex,实际上我安装了相应的c++编译器,如Xcode。
当我无视这些报错,直接运行你给的matlab/main_eval时候,发现可以正常评估,如下:
image
image

似乎这个结果是和您论文一致的,因此是否按照这种方式就可以测量?不需要再解决HDR Toolbox的错误?
非常期待得到您的回复!

@guanyingc
Copy link
Owner

Hi, 我也不是很确定,因为很久没弄这个代码和matlab环境了。如果结果一致的话,应该可以直接用。

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