GithubHelp home page GithubHelp logo

Comments (3)

Masaaki-75 avatar Masaaki-75 commented on June 13, 2024 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 of conda to build pytorch to avoid OSError related to libcublasLt.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 and python=3.7. For example, monai>=1.0.1 does not support torch==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):
    image
  • some other compiling issues like #46 :(

from torch-radon.

roflmaostc avatar roflmaostc commented on June 13, 2024

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.

roflmaostc avatar roflmaostc commented on June 13, 2024

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)

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.