Comments (3)
Can relate π I've try installing it for over 10x and here are some tricks that I found may be useful:
1. Use (Updated) Precompile Packages
- Build a virtual environment with python=3.7.
- Use
pip
instead ofconda
to build pytorch to avoidOSError
related tolibcublasLt.so.11
:
pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
-
Install all other packages needed for your project, but remember to select a version that supports
torch==1.7
andpython=3.7
. For example,monai>=1.0.1
does not supporttorch==1.7
any more. -
Install torch-radon v2 branch if possible, using:
wget -qO- https://raw.githubusercontent.com/matteo-ronchetti/torch-radon/v2/auto_install.py | python -
This command is provided in Issue #23, but surprisingly the authors did not update it in the README.md.
- If you installed v2, then import will be like:
from torch_radon.radon import FanBeam, ParallelBeam, RadonFanbeam, Radon
# ParallelBeam is the new version for Radon, and Fanbeam for RadonFanbeam
- Ready for other more issues. One of them can be seen in Issue #47 .
If Method 1 produces problem with version conflicts, try
2. build from source
git clone https://github.com/matteo-ronchetti/torch-radon.git
cd torch-radon
python setup.py install
This will support higher versions of cuda and pytorch (I succeeded on RTX 3090 with cuda 11.7). However, when compiling you may encounter other issues:
- Wrong naming of variables in compiling code (in
torch-radon/build_tools/__init__.py
):
- some other compiling issues like #46 :(
from torch-radon.
Hi @matteo-ronchetti ,
installation is getting quite difficult with newer GPUs (even RTX 3060 fails early).
Do you have any plans to continue this? Would be quite sad to not have it working anymore π’
from torch-radon.
Wow, cool!
Yeah in my case it failed because of the RTX 3060 which was too new for those versions.
from torch-radon.
Related Issues (20)
- AttributeError: 'RadonFanbeam' object has no attribute 'noise_generator' HOT 2
- Error of python setup.py install
- RuntimeError: CUDA error: no kernel image is available for execution on the device HOT 4
- detector size HOT 1
- How to install the 3D projection in the v2 version, does it need to be installed in the same environment as the 2D? HOT 1
- compile error
- CUDA error at cudaMemcpy3D(&myparms) HOT 3
- Colab updated to Python 3.10 HOT 1
- FBP with sinogram obtained by real equipment
- NameError: name 'RaysCfg' is not defined with Python 3.10
- When can torch-radon support RTX 4090?
- pytorch 1.8.1 has a problm: module βtorchβ has no attribute "rfft" HOT 5
- how to import it when downloaded in anaconda
- error in pip install setup.py
- Will accept Pull Requests on my fork / recent builds available on conda-forge HOT 6
- windows error in 'python setup.py install'
- About the fbp
- Conebeam operator
- Import Exception (missing torch_radon_cuda.py?) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torch-radon.