GithubHelp home page GithubHelp logo

xth430 / deforming-nerf Goto Github PK

View Code? Open in Web Editor NEW
146.0 146.0 3.0 139.89 MB

Code for "Deforming Radiance Fields with Cages", ECCV 2022.

Home Page: https://xth430.github.io/deforming-nerf/

License: BSD 2-Clause "Simplified" License

Shell 0.15% Python 66.85% CMake 0.56% Cuda 30.47% C++ 1.96%
3d cage deformation machine-learning nerf

deforming-nerf's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deforming-nerf's Issues

Question for grid2world in plenoxels?

I read the code of the paper.

In svox2.py, I don't understand grid2world function.
roffset = self.radius * (1.0 / gsz - 1.0) + self.center
Why do I need to add self.radius * (1.0 / gsz)?

Move vertices,mesh became not wartertight

Hi, I moved some verteces of your provided deformed chair cage ,and also keep the vertex order when export.
And then I ran:

python render_imgs_deform.py ckpt/nerf_lego/ckpt.npz ../data/nerf_synthetic/lego/ -c configs/syn.json --interpolate --cam_id 64

I got

Traceback (most recent call last):
  File "render_imgs_deform.py", line 93, in <module>
    cage_source, cage_target = load_cages(args)
  File "/root/deforming-nerf/opt/deformation/util.py", line 19, in load_cages
    assert cage_target.is_watertight, "Cage (target) is not watertight!"
AssertionError: Cage (target) is not watertight!

It seems the cage I deformed became not wartertight anymore,but I look it up in blender, it seems nowhere is unclosed.
Could you give me some advices help to move the vertices while keep the mesh wartertight?

Bad outputs in self-made real world datasets

Hi!Thanks for your great work!
I captured about 90 pictures(360°) around an object like this(removed background manualy in photoshop):
image1
and get the c2w metrics from directly from colmap
render a static scene using syn.config,but the results are very bad:
0000
0002
Could you please give me some advices about where could go wrong

And I tried dtu dataset scan83,the output fine.obg is very odd like this:
BJ~~A25NNR75{XNMPNBAJX0
It is nothing like the scene and the size of ckpt.npz of this scene is about 1.3GB, more less than your provided ckpt.npz of scan83,could you tell me how to get the resonable output?

Obtaining cage mesh from optimized grid

Hello. Thank you for your wonderful work.

I have a question about training the custom dataset.
I have images, mesh from those images, and deformed mesh, and I want to render them with your deforming-nerf code.
The problem is my meshes are not cage-mesh. How can I transform regular mesh into cage mesh?

Could you please give some instructions regarding the custom dataset training part including how to build cage-mesh?

Thank you

The estimated cage seems to be less accurate

Hello, thanks for your excellent work!
But when I follow the MANUAL.md and try to estimate the cage for the lego case, I get the following results:
B5WCCGjtWE
But in the given ckpt file, the cage for lego is:
v9TY3IfjhZ
Is there any way to improve the estimated cage for custom images?

Error in extracting mesh from pretrained Plenoxel model

When I try to extract mesh from nerf-lego dataset, I ran

python cage/extract_mesh.py ckpt/nerf_lego/ckpt.npz

and then I got

[INFO] loading Plenoxel model from: ckpt/nerf_lego/ckpt.npz
Traceback (most recent call last):
  File "cage/extract_mesh.py", line 18, in <module>
    grid = svox2.SparseGrid.load(args.ckpt, device=device)
  File "/root/miniconda3/envs/deforming-nerf/lib/python3.8/site-packages/svox2/svox2.py", line 1560, in load
    z = np.load(path)
  File "/root/miniconda3/envs/deforming-nerf/lib/python3.8/site-packages/numpy/lib/npyio.py", line 420, in load
    ret = NpzFile(fid, own_fid=own_fid, allow_pickle=allow_pickle,
  File "/root/miniconda3/envs/deforming-nerf/lib/python3.8/site-packages/numpy/lib/npyio.py", line 187, in __init__
    _zip = zipfile_factory(fid)
  File "/root/miniconda3/envs/deforming-nerf/lib/python3.8/site-packages/numpy/lib/npyio.py", line 103, in zipfile_factory
    return zipfile.ZipFile(file, *args, **kwargs)
  File "/root/miniconda3/envs/deforming-nerf/lib/python3.8/zipfile.py", line 1269, in __init__
    self._RealGetContents()
  File "/root/miniconda3/envs/deforming-nerf/lib/python3.8/zipfile.py", line 1336, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

The ckpt.npz file is directly downlowded from the provided link and using tar -zxvf to unzip it.
I 'm using ubuntu20.04,pytorch 1.11.0,cuda 11.3

Code Relesed Time

Congratulations!I wanna ask when will your team release the code. Appreciated!

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.