GithubHelp home page GithubHelp logo

Comments (2)

Guaishou74851 avatar Guaishou74851 commented on June 13, 2024
# python 
Python 3.6.7 (default, Oct 21 2018, 04:56:05) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> from torch_radon import Radon, RadonFanbeam
Importing exception
Importing exception
>>> my_radon = Radon(362, np.linspace(0, np.pi, 60, endpoint=False))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/torch_radon/__init__.py", line 169, in __init__
    rays_cfg = RaysCfg(resolution, resolution, det_count, det_spacing, len(angles), clip_to_circle)
NameError: name 'RaysCfg' is not defined
>>> 
Exception ignored in: <bound method BaseRadon.__del__ of <torch_radon.Radon object at 0x7f80e16b84e0>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/torch_radon/__init__.py", line 140, in __del__
    self.noise_generator.free()
AttributeError: 'Radon' object has no attribute 'noise_generator'

from torch-radon.

stefenmax avatar stefenmax commented on June 13, 2024

Have u solved it yet?
You may didn't complied it like
python setup.py
But I can't comile it with the upper code,could u help me? thx

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.