Coder Social home page Coder Social logo

triposr-texture-gen's People

Contributors

ejones 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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

triposr-texture-gen's Issues

Google Colab

Saw your tweet and tried to get it running in Google Colab. Seems to do the depth but doesn't generate the model texture. If you get a chance can you take a look and let me know any suggestions:
colab link

improve seams?

i really like that this generates textures significantly faster than TEXTurePaper

any recommendations on improving seams?

Image from Gyazo

UVAtlasPartition: Non-manifold mesh,"The mesh output by Triposr does not match."

File "text2texture.py", line 329, in
tmesh = text2texture(
File "text2texture.py", line 229, in text2texture
tmesh.compute_uvatlas(size, parallel_partitions=2)
RuntimeError: [Open3D Error] (void open3d::t::geometry::kernel::uvunwrapping::{anonymous}::ComputeUVAtlasPartition(open3d::t::geometry::TriangleMesh, float, bool, open3d::t::geometry::kernel::uvunwrapping::{anonymous}::UVAtlasPartitionOutput&)) /root/Open3D/cpp/open3d/t/geometry/kernel/UVUnwrapping.cpp:124: UVAtlasPartition: Non-manifold mesh

how to solve it?thanks!

FileNotFoundError: [Errno 2] No such file or directory

Traceback (most recent call last):
File "E:\Business\TripoSR\texture-gen\text2texture.py", line 345, in
tmesh = text2texture(
File "E:\Business\TripoSR\texture-gen\text2texture.py", line 282, in text2texture
np.array(Image.open(painted_path)),
File "D:\Users\ellio\miniconda3\envs\tripo\lib\site-packages\PIL\Image.py", line 3247, in open
fp = builtins.open(filename, "rb")

Isn't the script supposed to generate painted_path for color as well?

Please help

I have a error :
(textureautovenv) (base) C:\pinokio\api\triposr.git\app>python text2texture.py .\output\catgirl.obj "catgirl"

processing mesh

computing UV atlas for 9999 triangles
[Open3D INFO] actual parallel_partitions 3
saving depth map at output\mesh-preproc-depth.png

'C:\pinokio\api\triposr.git\app\depth_txt2img.py' catgirl 'output\mesh-preproc-depth.png' 'output\mesh-preproc-depth-paint.png' --steps 12 --image-model 'SG161222\Realistic_Vision_V5.1_noVAE'
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
Python runtime state: preinitialized

Traceback (most recent call last):
File "C:\pinokio\api\triposr.git\app\text2texture.py", line 329, in
tmesh = text2texture(
File "C:\pinokio\api\triposr.git\app\text2texture.py", line 258, in text2texture
subprocess.run(
File "C:\pinokio\bin\miniconda\lib\subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\pinokio\api\triposr.git\app\textureautovenv\Scripts\python.exe', 'C:\pinokio\api\triposr.git\app\depth_txt2img.py', 'catgirl', 'output\mesh-preproc-depth.png', 'output\mesh-preproc-depth-paint.png', '--steps', '12', '--image-model', 'SG161222\Realistic_Vision_V5.1_noVAE']' returned non-zero exit status 1.

windows only error in running subprocces.popen - [WinError 10106] The requested service provider could not be loaded or initialized

see this stackoverflow question/answer
https://stackoverflow.com/questions/78652758/cryptic-oserror-winerror-10106-the-requested-service-provider-could-not-be-l

in text2tecture.py you have ~line 258

    subprocess.run(
        [sys.executable, *depth_paint_args],
        check=True,
        env={'PYTORCH_ENABLE_MPS_FALLBACK': '1'},
    )

as described in the stack overflow answer, env= works fine on mac an linux, but causes errors on windows.
env should first be initialized by copying the system and then added to.

code should be something like this (tested on my system)

    enviroment = os.environ.copy()
    enviroment['PYTORCH_ENABLE_MPS_FALLBACK'] = '1'
    subprocess.run(
        [sys.executable, *depth_paint_args],
        check=True,
        env=enviroment
    )

Improve the resolution of the ordinary TripoSR

Great work! Note the resolution of TripoSR is only 256, can we use the multi view images and mesh file generated by TripoSR to generate texture to improve the resolution of the 3D model generated by TripoSR using your method. We can firstly use StableDiffusionUpScalePipeline to impove the resolution of rendered image of TripoSR.

Unable to load file

I have a error message I use windows 10 :
[Open3D WARNING] Unable to load file ~/output/arcade.obj with ASSIMP

processing mesh
[Open3D WARNING] Creating from empty legacy TriangleMesh.

Traceback (most recent call last):
File "C:\Users\Shadow\Desktop\triposr-texture-gen\text2texture.py", line 329, in
tmesh = text2texture(
File "C:\Users\Shadow\Desktop\triposr-texture-gen\text2texture.py", line 228, in text2texture
print('computing UV atlas for', len(tmesh.triangle.indices), 'triangles')
KeyError: 'Key indices not found in TensorMap'

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.