shapegan icon indicating copy to clipboard operation
shapegan copied to clipboard

Red cube displayed upon running demo_gan.py

Open rgga-16 opened this issue 2 years ago • 0 comments

I ran demo_gan.py using the pre-trained gan_generator_voxels_sofas.to file. I made the following changes:

  1. Copied gan_generator_voxels_sofas.to from examples folder to models folder.

  2. Did pip install scipy==1.5.2

  3. 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)) to vertices, faces, normals, _ = skimage.measure.marching_cubes(voxels, level=level, spacing=(2.0 / voxel_resolution, 2.0 / voxel_resolution, 2.0 / voxel_resolution),method='lewiner')

  4. In model/gan.py super(Generator, self).__init__(filename="generator.to") to super(Generator, self).__init__(filename="gan_generator_voxels_sofas.to")

I got this visualization as a result: image

How do I resolve this?

rgga-16 avatar Jul 13 '22 01:07 rgga-16