Stability-AI / stable-fast-3d

SF3D: Stable Fast 3D Mesh Reconstruction with UV-unwrapping and Illumination Disentanglement
https://stable-fast-3d.github.io
Other
1.16k stars 118 forks source link

pynim needs too much to install! #34

Open IgorAherne opened 2 months ago

IgorAherne commented 2 months ago

pynim requires too much to run, the MVC++ Runtime, VS build tools and Visual Studio IDE. That's just nuts! :D

If possible, please change it for something that's easier installed

I commented out the #import pynim in mesh.py and removed git+https://github.com/vork/PyNanoInstantMeshes.git from the requirements.txt. In mesh.py its quad_remesh looks like this for now:

def quad_remesh(
        self,
        quad_vertex_count: int = 12_000,
        quad_rosy: int = 4,
        quad_crease_angle: float = 0.0,
        quad_smooth_iter: int = 2,
        quad_align_to_boundaries: bool = False,
    ) -> Mesh:
         # Return a new Mesh instance with the same vertices and faces. Because import pynim is commented out above:
        return Mesh(self.v_pos.clone(), self.t_pos_idx.clone())

This allows to install SF3D smoothly, but unfortunately no quad-remesh :(

vork commented 2 months ago

There are not a lot of option for quad remeshing - so I'm afraid that this is the only option.