-
Notifications
You must be signed in to change notification settings - Fork 28
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
Example of using patch_NLM with a solver #10
Comments
I don't know if I'm doing something wrong, but when I tried the above code I get the following error
Before running I just pulled the last versions of both ODL and ProxImaL, so I have the latest version from the ODL branch (i.e., commit 14ccca7) and the latest commit in ProxImaL (i.e., commit a9bec9e) I'm running Ubuntu 14.04, Python version 2.7.12, and opencv version 2.4.10. |
This will sound very strange, with the use of I went back to the the Laplace example in ODL. There you basically have the following example
When I run this exact code above, it gives output from ProxImaL on the form:
and after 1000 iterations the variable is full of
and after 1000 iterations it terminates and gives a perfectly fine reconstruction. Now if I put the line
and again after 1000 iterations it gives a perfectly fine reconstruction. Just to make sure that I'm not doing anything obvious wrong: I run it on python consoles in spyder, version 2.3.9, and after each time a ran a file it closed the corresponding console and open a new one (in order to not have anything lying around in memory that could affect the outcome). |
This might be a spyder-related issue. When I run the code in the standard Konsole everything runs nicely. @adler-j are you running the original issue-code in spyder? Try to remove the |
Removing the show statement, or running it in the Konsole, I don't get the crash that I first reported... I seem to have an issue with spyder and graphics. |
Not able to test this atm, but I am not getting NaN as an answer, instead only getting a typically divergent sequence. So I dont think that is the issue. Regarding getting NaN when using Edit: Regarding the OpenCV error I'm not getting it, and since I'm behind the great firewall of china I cant help you debug it. It does however look like a separate iasue. |
The whole matplotlib in spyder issue is pretty bizarre. I wanted to add though that |
Certainly agree. Interestingly we found a related yet very similar bug in the astra-toolbox package earlier this year. That time creating a plot changed the behaviour of the rest of the code. May be related?
What is the initial guess otherwise? |
The default initial guess is x0 = 0. On Mon, Aug 8, 2016 at 11:33 AM Jonas Adler notifications@github.com
|
I've been trying to use
patch_NLM
with a nontrivial data discrepancy term, but my results seem to always diverge. The call is basically, using this ODL branch:Which gives utter nonsense as a result, and it does not seem to converge when
max_iters
is increased, nor does overestimating thenorm_bound
help. Changing the scaling term0.01´ in front of
patch_NLM` seems to have only minor impact.It seems I am missing something, so adding an example of using this regularizer would be great!
The text was updated successfully, but these errors were encountered: