Code Monkey home page Code Monkey logo

triposr-bake's People

Contributors

iffyloop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

triposr-bake's Issues

Generation crashes in 02-texture.py on step 4/5 and headless server

Hi
Thanks for the interesting fork of the TripSR project!
I just tested it and can't finish the texture generation since it uses some OpenGL features that are rarely available on servers.
Here is the log:

(2/5): Load mesh
(3/5): Generate UVs
(4/5): Rasterize UV atlas
Traceback (most recent call last):
  File "/home/gorbuz/content/TripoSR-Bake/02-texture.py", line 268, in <module>
    main()
  File "/home/gorbuz/content/TripoSR-Bake/02-texture.py", line 245, in main
    rasterize_result = run_rasterize(args, mesh_result, xatlas_result)
  File "/home/gorbuz/content/TripoSR-Bake/02-texture.py", line 53, in run_rasterize
    ctx = moderngl.create_context(standalone=True)
  File "/home/gorbuz/.local/lib/python3.10/site-packages/moderngl/__init__.py", line 1936, in create_context
    ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, **settings)
  File "/home/gorbuz/.local/lib/python3.10/site-packages/glcontext/__init__.py", line 90, in create
    return x11.create_context(**kwargs)
Exception: (standalone) XOpenDisplay: cannot open display

I haven't looked at the code yet, so it might be an easy fix or a key showstopper. Will post there if anything changes.

How can we get a low poly 3D objects without been helped by blender or any other engine?

Thank you for resolving that issue earlier. I'm interested in converting directly the mesh generetae to FBX format to use the output in a game engine, and I'd prefer that 3D models to be low-poly. Could you suggest how I might proceed with this, considering my limited experience with 3D model generation? Additionally, I'm keen to integrate TripoSR with Stable Diffusion for text-to-3D generation. Any advice on this would be greatly appreciated.

Bug: crash in device=cuda mode

There is a minor bug when non-CPU device is used for torch:

(3/3): Marching cubes
Traceback (most recent call last):
  File "/home/gorbuz/content/TripoSR-Bake/01-mesh.py", line 202, in <module>
    main()
  File "/home/gorbuz/content/TripoSR-Bake/01-mesh.py", line 192, in main
    mesh_result = run_mesh(args, tsr_result, grid_result)
  File "/home/gorbuz/content/TripoSR-Bake/01-mesh.py", line 91, in run_mesh
    .numpy()
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

It's easily fixed by adding .cpu() to line 91 of 01-mesh.py. It's simple enough to fix so I won't submit a PR for it.

Texture not being applied correctly

I'm trying to execute the sample commands given in the readme, but the final obj file generated has no texture applied to it. There is a png file generated of the texture, but I'm not sure what to do with it. Can someone help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.