GithubHelp home page GithubHelp logo

Comments (15)

wtzhu13 avatar wtzhu13 commented on May 24, 2024 1

The code is running Ok, thanks for your guidance!

from wb_srgb.

wtzhu13 avatar wtzhu13 commented on May 24, 2024

Hello, I have faced this error. But I can not run the demo.m because the model loaded does not replace. So how can I get the new model after replacing the line 59 and 60? Thank you!

from wb_srgb.

mahmoudnafifi avatar mahmoudnafifi commented on May 24, 2024

What do you mean by "the model loaded does not replace"? Could you please explain more what is the error message you got in Matlab?

from wb_srgb.

wtzhu13 avatar wtzhu13 commented on May 24, 2024

I mean that I just replace the code, but the model loaded in the demo.h is still the old one.

from wb_srgb.

mahmoudnafifi avatar mahmoudnafifi commented on May 24, 2024

Thanks for clarifying. No need to replace the model .. just replace the code and it should work.

from wb_srgb.

wtzhu13 avatar wtzhu13 commented on May 24, 2024

really?Actually, I still can not run the demo.h. The model which is loaded in the demo in models folder is still the old one, I think maybe I should rebuild the model, but I can not find where to rebuild it. The version of my matlab is 2014a.
1

from wb_srgb.

mahmoudnafifi avatar mahmoudnafifi commented on May 24, 2024

It seems that the problem is not in the model .. probably, it is related to the image itself. Do you mind to print out the size of Iy, diff_u and diff_v? Or if you can send me figure3.jpg. Thanks!

from wb_srgb.

wtzhu13 avatar wtzhu13 commented on May 24, 2024

1
The size of the 3 variables are printed in the picture respectively, and the figure3.jpg is still the one which you pushed to the github, I do not repalce it.
figure3

from wb_srgb.

mahmoudnafifi avatar mahmoudnafifi commented on May 24, 2024

Please replace Line 69 in WBmodel.m and Line 69 in WBmodel_GPU.m with the following one:

hist(:,:,i)=(repmat(Iy, [1, size(diff_u,2)]) .* double(diff_u))'*double(diff_v); % compute the histogram

from wb_srgb.

wtzhu13 avatar wtzhu13 commented on May 24, 2024

There are still some bugs in the code, but that's ok, I'll read your code and the paper carefully first so I don't waste your valuable time. I was going to see the phenomenon and then read the code and the paper carefully, but maybe I will deal with these bugs by myself after reading the paper and code. Thank you anyway!
1

from wb_srgb.

mahmoudnafifi avatar mahmoudnafifi commented on May 24, 2024

Could you please refer to the part that you think it is a bug? What is the error message you got?

from wb_srgb.

wtzhu13 avatar wtzhu13 commented on May 24, 2024

After replacing Line 69 in WBmodel.m and Line 69 in WBmodel_GPU.m, there are still some errors shown above.

from wb_srgb.

mahmoudnafifi avatar mahmoudnafifi commented on May 24, 2024

thanks for sharing. I guess the problem is about broadcasting .. let me have a look and try to make things work for you.

from wb_srgb.

wtzhu13 avatar wtzhu13 commented on May 24, 2024

OK,thank you for your guidance, I will also read the code carefully after my work.

from wb_srgb.

mahmoudnafifi avatar mahmoudnafifi commented on May 24, 2024

Replace line 92 in WBmodel.m and line 92 in WBmodel_GPU.m with the following code:
mf = sum(repmat(weightsH,[1, size(obj.mappingFuncs,2)]) .* obj.mappingFuncs(idH,:),1);

Please let me know if you still have a problem with your Matlab version.

from wb_srgb.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.