Don Schnitzius
Don Schnitzius
To fix this, open **spaceship_generator.py** and change line 340 from: `num_segments = uniform(3, 6)` to `num_segments = randint(3, 6)`
Ah, Yes! Thanks for detailing the solution! I found that [**ldo** had forked it and got it working](https://github.com/ldo/blender_spaceship_generator), but hadn't yet done a DIFF to see what they had changed.
It looks like you need to change all instances of `uniform()` to `int()` or `radint()` (and make those values whole integers; so no `0.001`, only `1`) and all instances of...
Same: ![SwinIR-A](https://user-images.githubusercontent.com/2380716/223304720-19d1bd0e-0878-4b4b-beee-18016423572b.jpg) ![SwinIR-B](https://user-images.githubusercontent.com/2380716/223304732-e1a82d30-c249-42cc-9ba4-5dacb18113a9.jpg) 32Gb M1 Mac Macbook python: 3.10.10 torch: 2.0.0.dev20230210 xformers: N/A gradio: 3.16.2
Had same issue, but deleted `venv` and reinstalled, and now it works again.