Git Product home page Git Product logo

Comments (4)

D0miH avatar D0miH commented on July 29, 2024 2

Hey,

so I looked into the code and I think you can calculate/get those numpy arrays on your own.
Here is what I did:

  1. Get the Texture space from the official FLAME website
  2. Extract the zip file and execute the following script:
import numpy as np
tex_space = np.load('./FLAME_texture.npz')
tex_mean = tex_space['mean']
tex_basis = tex_space['tex_dir']
np.save('./texture_mean_image_completed.npy', np.reshape(tex_mean, (1, -1)))
np.save('./texture_basis_images_completed.npy', np.reshape(tex_basis, (-1, 200))[:, :50])

This should generate the necessary files. Keep in mind that only the 50 first principal components of the texture space are used by default. If you want to use all 200 principle components of the texture space just remove the [:, :50] above and exchange the value of tex_params at the beginning of the __main__ function with the value of 200.

from photometric_optimization.

zhangqijun avatar zhangqijun commented on July 29, 2024

same question,not found

from photometric_optimization.

HavenFeng avatar HavenFeng commented on July 29, 2024

Thanks for pointing it out. It's a version legacy issue, I've adapted the codes to FLAME_texture.npz as input, also fixed a texture space color range bug.

from photometric_optimization.

wwdok avatar wwdok commented on July 29, 2024

Could anyone tell me where to download the FLAME_texture.npz, is it one of the two :
image

from photometric_optimization.

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.