iffyloop / triposr-bake Goto Github PK
View Code? Open in Web Editor NEWGenerate 3D meshes from a single 2D image using TripoSR, complete with manual geometry editing and texture baking support
License: The Unlicense
Generate 3D meshes from a single 2D image using TripoSR, complete with manual geometry editing and texture baking support
License: The Unlicense
if yes, could you provide example code?
thanks!
r
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.
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.
Hello, when i run python 02-texture.py,i meet the problem "Exception:(standalone) XOpenDisplay: cannot open display".
How can i solve this issue?
Hope to your reply!
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.