Giter Club home page Giter Club logo

flare's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flare's Issues

Running error

Training Deformer
STAGE 1: Using positional encoding (NeRF) for intrinsic materials
{'material_mlp_ch': 5, 'light_mlp_ch': 3, 'material_mlp_dims': [128, 128, 128, 128], 'light_mlp_dims': [64, 64]}

Re-initializing main() because the training of light MLP diverged and all the values are zero.

I got this error when running the code. Could you give some suggestions? Thanks very much.

About using xatlas to extract uvmap

Hi.
Thank you for great work.

While I was working on this work, I found out that the resulting uv map is corrupted.

I fount that although xatlas duplicates some vertices, current work does not apply this on the mesh class.

the resulting uv map is

스크린샷 2024-03-05 164209

however,

if I add two lines in the xatlas_uvmap a bit, like

@torch.no_grad()
def xatlas_uvmap(self):
    import numpy as np
    # Create uvs with xatlas
    v_pos = self.vertices.detach().cpu().numpy()
    t_pos_idx = self.indices.detach().cpu().numpy()
    vmapping, indices, uvs = xatlas.parametrize(v_pos, t_pos_idx)

    # Convert to tensors
    indices_int64 = indices.astype(np.uint64, casting='same_kind').view(np.int64)
    vmapping_int64 = vmapping.astype(np.uint64, casting='same_kind').view(np.int64)
    vmapping = torch.tensor(vmapping_int64, dtype=torch.int64, device=self.device)

    uvs = torch.tensor(uvs, dtype=torch.float32, device=self.device)
    faces = torch.tensor(indices_int64, dtype=torch.int64, device=self.device)

    self._uv_coords = uvs
    self._uv_idx = faces
    self.vmapping = vmapping

    # ADDED LINES
    self.vertices = self.vertices[vmapping]
    self.indices = faces

the resulting UV map goes

스크린샷 2024-03-05 164405

It may not affect the result, hope it helps.
especially about the tangent computation, which includes uv coordinates.

mesh

Can I get a mesh with color and texture?

the result looks not that good

Hi,
thank you for your great work!
I run the code on rtx 3090 and the training process works well. But the result I got looks so strange. Yesterday you told me to fix the tiny-cuda-nn warning tinycudann was built for lower compute capability ({cc}) than the system's ({system_compute_capability}). Performance may be suboptimal. and I just can't fix it by now. But maybe the result won't be that bad because of the warning?
Can you give me some advice to fix this. Thank you in advance!
image

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.