Code Monkey home page Code Monkey logo

Comments (5)

code-conquer avatar code-conquer commented on September 1, 2024 1

Okay, I get it. Thank you very much for your patient reply!

from ostec.

barisgecer avatar barisgecer commented on September 1, 2024

Can you give me more insight about at which part you had this problem? Or maybe share the generated assets?

from ostec.

code-conquer avatar code-conquer commented on September 1, 2024
    self.tcoords_full = mio.import_pickle('models/topology/tcoords_full.pkl')
    self.tcoords = mio.import_pickle('models/topology/tcoords.pkl')    
    self.mask = mio.import_pickle('models/topology/mask_full2crop.pkl')
    self.tight_mask = mio.import_pickle('models/topology/mask_full2tightcrop.pkl')
    self.template = mio.import_pickle('models/topology/all_all_all_crop_mean.pkl')
    self.lms_ind = mio.import_pickle('models/topology/all_all_all_lands_ids.pkl')

Thank you for your reply. I found that when I use 3D vertices in tcoords_full.pkl to generate obj files, the texture and geometry are not aligned. When I use tcoords.pkl and mask_full2crop.pkl to generate obj, the texture and geometry are aligned, but the texture of the ears are not included. Can you explain the role of these files? Or how to generate obj files containing ears?
in short, this code can be used to generate obj aligned with texture and geometry:
self.full_uv_vertices = self.tcoords_full.copy().points
self.full_uv_vertices[self.mask] = self.tcoords.points
Using the following code alone generates misaligned:

self.full_uv_vertices = self.tcoords_full.copy().points

from ostec.

barisgecer avatar barisgecer commented on September 1, 2024

You are right. The Full topology is different than the topology of the UV texture images OSTeC is generating. The reason why I preferred to exclude ears is that they are often occluded in StyleGAN space and are difficult to match correctly. Thus you need to use cropped topology to visualize properly.

from ostec.

zeta7337 avatar zeta7337 commented on September 1, 2024

Okay, I get it. Thank you very much for your patient reply!

hello,i face the same problem.how do you fix it?

from ostec.

Related Issues (20)

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.