shapegan
shapegan copied to clipboard
Red cube displayed upon running demo_gan.py
I ran demo_gan.py
using the pre-trained gan_generator_voxels_sofas.to
file. I made the following changes:
-
Copied
gan_generator_voxels_sofas.to
fromexamples
folder tomodels
folder. -
Did
pip install scipy==1.5.2
-
In
rendering/__init__.py
vertices, faces, normals, _ = skimage.measure.marching_cubes_lewiner(voxels, level=level, spacing=(2.0 / voxel_resolution, 2.0 / voxel_resolution, 2.0 / voxel_resolution))
tovertices, faces, normals, _ = skimage.measure.marching_cubes(voxels, level=level, spacing=(2.0 / voxel_resolution, 2.0 / voxel_resolution, 2.0 / voxel_resolution),method='lewiner')
-
In
model/gan.py
super(Generator, self).__init__(filename="generator.to")
tosuper(Generator, self).__init__(filename="gan_generator_voxels_sofas.to")
I got this visualization as a result:
How do I resolve this?