mehrhardt / spdhg Goto Github PK
View Code? Open in Web Editor NEWStochastic PDHG with Arbitrary Sampling and Imaging Applications
License: Mozilla Public License 2.0
Stochastic PDHG with Arbitrary Sampling and Imaging Applications
License: Mozilla Public License 2.0
Hi, I am studying your paper these days. When ploting the iter, I get the error "valuererror: arange: cannot computer length." This happens in other examples too. So how can I correct the code ?
The pdf file is the output of example_rof.
Looking forward to your reply! Thank you!
The URL:
http://store.maths.cam.ac.uk/DAMTP/me404/data_sets/cms.mat
from which the images are downloaded (as in example_rof.py) is not accessible. I tried this on different computers (Windows 10) and with different web browsers.
I've recently installed the code, but I had several issues in the process. Here there is an account of the issues and steps I follow to set up the code.
So, I have tested SPDGH with two different environments, one for Python3.7 and one for Python2.7. I'm working on a Mac but, eventually, I had to install it on a Linux machine, and still, I found the following problems:
Environment Python 3.5: despite this version of Python is not supported, it can still be found for Mac, Windows and Linux. However, the brew2mpl package is not available for this version of Python (or above). In addition, even if you install Spyder with your environment as per instruction, it still doesn’t launch and crashes.
Environment Python 2.7: you can only find it for Linux. With this version of Python, you can install brew2mpl, but it has the same problem with Spyder. For SPDHG with Python2.7, you need the old version of ODL but, then, the proximal operator function can’t be installed straightforwardly, unless you install manually its dependencies, in particular cv2.
Note: Despite Spyder doesn’t work with any of the above python environments , virtual studio does with python3.5 (python 2.7 doesn’t generate the virtual environment file that virtual studio needs, it is just from >python3).
How I get SPDHG to work: with Python3.5 and newer ODL version, I comment the “import brew2mpl” (used for colormaps settings) and the lines of code that uses it to adjust the colour maps. In this way, I can run it and I use virtual studio rather than spyder, but that’s OK. Alternatively, I can run the version of SPDHG that works with the python 2.7 environment from the terminal, not ideal, but still fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.