{"id":18614486,"url":"https://github.com/Totoro97/NeuS","last_synced_at":"2025-04-11T00:30:53.099Z","repository":{"id":37430403,"uuid":"398804195","full_name":"Totoro97/NeuS","owner":"Totoro97","description":"Code release for NeuS","archived":false,"fork":false,"pushed_at":"2024-02-28T08:17:37.000Z","size":42021,"stargazers_count":1659,"open_issues_count":96,"forks_count":211,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-04-08T01:37:39.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Totoro97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-22T13:17:06.000Z","updated_at":"2025-04-04T06:46:18.000Z","dependencies_parsed_at":"2022-07-08T18:43:37.434Z","dependency_job_id":"d60e2d52-328b-44d5-af1c-d37bda792c29","html_url":"https://github.com/Totoro97/NeuS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totoro97%2FNeuS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totoro97%2FNeuS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totoro97%2FNeuS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totoro97%2FNeuS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Totoro97","download_url":"https://codeload.github.com/Totoro97/NeuS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322221,"owners_count":21084333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T03:25:57.662Z","updated_at":"2025-04-11T00:30:48.086Z","avatar_url":"https://github.com/Totoro97.png","language":"Python","funding_links":[],"categories":["Papers"],"sub_categories":["NeRF Related Tasks"],"readme":"# NeuS\nWe present a novel neural surface reconstruction method, called NeuS (pronunciation: /nuːz/, same as \"news\"), for reconstructing objects and scenes with high fidelity from 2D image inputs.\n\n![](./static/intro_1_compressed.gif)\n![](./static/intro_2_compressed.gif)\n\n## [Project page](https://lingjie0206.github.io/papers/NeuS/) |  [Paper](https://arxiv.org/abs/2106.10689) | [Data](https://www.dropbox.com/sh/w0y8bbdmxzik3uk/AAAaZffBiJevxQzRskoOYcyja?dl=0)\nThis is the official repo for the implementation of **NeuS: Learning Neural Implicit Surfaces by Volume Rendering for Multi-view Reconstruction**.\n\n## Usage\n\n#### Data Convention\nThe data is organized as follows:\n\n```\n\u003ccase_name\u003e\n|-- cameras_xxx.npz    # camera parameters\n|-- image\n    |-- 000.png        # target image for each view\n    |-- 001.png\n    ...\n|-- mask\n    |-- 000.png        # target mask each view (For unmasked setting, set all pixels as 255)\n    |-- 001.png\n    ...\n```\n\nHere the `cameras_xxx.npz` follows the data format in [IDR](https://github.com/lioryariv/idr/blob/main/DATA_CONVENTION.md), where `world_mat_xx` denotes the world to image projection matrix, and `scale_mat_xx` denotes the normalization matrix.\n\n### Setup\n\nClone this repository\n\n```shell\ngit clone https://github.com/Totoro97/NeuS.git\ncd NeuS\npip install -r requirements.txt\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003e Dependencies (click to expand) \u003c/summary\u003e\n\n  - torch==1.8.0\n  - opencv_python==4.5.2.52\n  - trimesh==3.9.8 \n  - numpy==1.19.2\n  - pyhocon==0.3.57\n  - icecream==2.1.0\n  - tqdm==4.50.2\n  - scipy==1.7.0\n  - PyMCubes==0.1.2\n\n\u003c/details\u003e\n\n### Running\n\n- **Training without masks**\n\n```shell\npython exp_runner.py --mode train --conf ./confs/womask.conf --case \u003ccase_name\u003e\n```\n\n- **Training with masks**\n\n```shell\npython exp_runner.py --mode train --conf ./confs/wmask.conf --case \u003ccase_name\u003e\n```\n\n- **Extract surface from trained model** \n\n```shell\npython exp_runner.py --mode validate_mesh --conf \u003cconfig_file\u003e --case \u003ccase_name\u003e --is_continue # use latest checkpoint\n```\n\nThe corresponding mesh can be found in `exp/\u003ccase_name\u003e/\u003cexp_name\u003e/meshes/\u003citer_steps\u003e.ply`.\n\n- **View interpolation**\n\n```shell\npython exp_runner.py --mode interpolate_\u003cimg_idx_0\u003e_\u003cimg_idx_1\u003e --conf \u003cconfig_file\u003e --case \u003ccase_name\u003e --is_continue # use latest checkpoint\n```\n\nThe corresponding image set of view interpolation can be found in `exp/\u003ccase_name\u003e/\u003cexp_name\u003e/render/`.\n\n### Train NeuS with your custom data\n\nMore information can be found in [preprocess_custom_data](https://github.com/Totoro97/NeuS/tree/main/preprocess_custom_data).\n\n## Citation\n\nCite as below if you find this repository is helpful to your project:\n\n```\n@article{wang2021neus,\n  title={NeuS: Learning Neural Implicit Surfaces by Volume Rendering for Multi-view Reconstruction},\n  author={Wang, Peng and Liu, Lingjie and Liu, Yuan and Theobalt, Christian and Komura, Taku and Wang, Wenping},\n  journal={arXiv preprint arXiv:2106.10689},\n  year={2021}\n}\n```\n\n## Acknowledgement\n\nSome code snippets are borrowed from [IDR](https://github.com/lioryariv/idr) and [NeRF-pytorch](https://github.com/yenchenlin/nerf-pytorch). Thanks for these great projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTotoro97%2FNeuS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTotoro97%2FNeuS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTotoro97%2FNeuS/lists"}