stevenrobertson / cuburn

PyCUDA implementation of a GPU-accelerated fractal flame renderer.
Other
39 stars 11 forks source link

ValueError: could not broadcast input array from shape (179) into shape (16384) #1

Closed davity closed 9 years ago

davity commented 10 years ago

Hi

I'm trying to run cuburn to render some flames but I'm getting the next error when execute it:

>python main.py test.flame
Traceback (most recent call last):
  File "main.py", line 180, in <module>
    main(args, prof)
  File "main.py", line 122, in main
    rmgr = render.RenderManager()
  File "cuburn\render.py", line 245, in __init__
    self.fb = Framebuffers()
  File "cuburn\render.py", line 98, in __init__
    seeds = mwc.make_seeds(util.DEFAULT_RB_SIZE * 256)
  File "cuburn\code\mwc.py", line 41, in make_seeds
    seeds[0][:] = mults[:nthreads]
ValueError: could not broadcast input array from shape (179) into shape (16384)

My system specs are:

And the dependencies that I've installed to run cuburn:

I know a little bit about Python and never worked with numpy, scipy or any of the other libraries (cuda, boost...), so I don't know what could be going wrong (as far as I search, the error looks related to numpy). I'm working on a project that uses flames a lot for data visualization. I found the paper Accelerated rendering of fractal flames and finally ended with cuburn, which could save me a lot of time of rendering several images.

Any help is much appreciated. Thank you!

EDIT: I forgot to tell that my input flame is a very basic flame with just one linear transformation withouth any modifications, created with Apophysis 2.09

<Flames name="test">
<flame name="mybasictest" version="Apophysis 2.09" size="784 757" center="0 0" scale="196" oversample="1" filter="0.2" quality="1" background="0 0 0" brightness="4" gamma="4" gamma_threshold="0.04" >
   <xform weight="0.5" color="0" linear="1" coefs="1 0 0 1 0 0" />
   <palette count="256" format="RGB">
      FF0000D31616BD2121A72C2C9137377C4242714747664D4D
      ...
      ...bunch of gradient numbers here omited...
      ...
      9400009000008C00008800008400008000007C0000750000
   </palette>
</flame>
</Flames>
stevenrobertson commented 9 years ago

Problem with Fortran-ordered arrays, maybe? Should be fixed in HEAD.