solve conflict
Browse files- .gitattributes +5 -0
- .gitignore +132 -0
- .idea/.gitignore +0 -8
- .idea/inspectionProfiles/Project_Default.xml +0 -18
- .idea/inspectionProfiles/profiles_settings.xml +0 -6
- .idea/misc.xml +0 -4
- .idea/modules.xml +0 -8
- .idea/putting-nerf-on-a-diet.iml +0 -8
- .idea/vcs.xml +0 -6
- .idea/workspace.xml +65 -0
- README.md +15 -20
- fork-of-first-touch-of-nerf-in-jax.ipynb +0 -0
- models/14_shot_occluded/fine_plus_coarse/lego_14_shot_occluded_diet_nerf +3 -0
- models/14_shot_occluded/fine_plus_coarse/lego_14_shot_occluded_nerf +3 -0
- models/14_shot_occluded/fine_plus_coarse/ship_14_shot_occluded_diet_nerf +3 -0
- models/14_shot_occluded/fine_plus_coarse/ship_14_shot_occluded_nerf +3 -0
- models/4_shot/fine_plus_coarse/hotdog_4_shot_diet_nerf +3 -0
- models/4_shot/fine_plus_coarse/hotdog_4_shot_nerf +3 -0
- models/4_shot/fine_plus_coarse/materials_4_shot_diet_nerf +3 -0
- models/4_shot/fine_plus_coarse/materials_4_shot_nerf +3 -0
- models/4_shot/fine_plus_coarse/mic_4_shot_diet_nerf +3 -0
- models/4_shot/fine_plus_coarse/mic_4_shot_nerf +3 -0
- models/8_shot/coarse/chair_8_shot_coarse_diet_nerf +3 -0
- models/8_shot/coarse/drums_8_shot_coarse_diet_nerf +3 -0
- models/8_shot/coarse/hotdog_8_shot_coarse_diet_nerf +3 -0
- models/8_shot/coarse/lego_8_shot_coarse_diet_nerf +3 -0
- models/8_shot/coarse/materials_8_shot_coarse_diet_nerf +3 -0
- models/8_shot/coarse/mic_8_shot_coarse_diet_nerf +3 -0
- models/8_shot/coarse/ship_8_shot_coarse_diet_nerf +3 -0
- models/8_shot/fine_plus_coarse/chair_8_shot_diet_nerf +3 -0
- models/8_shot/fine_plus_coarse/drums_8_shot_diet_nerf +3 -0
- models/8_shot/fine_plus_coarse/hotdog_8_shot_diet_nerf +3 -0
- models/8_shot/fine_plus_coarse/lego_8_shot_diet_nerf +3 -0
- models/8_shot/fine_plus_coarse/materials_8_shot_diet_nerf +3 -0
- models/8_shot/fine_plus_coarse/mic_8_shot_diet_nerf +3 -0
- models/8_shot/fine_plus_coarse/ship_8_shot_diet_nerf +3 -0
.gitattributes
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
5 |
+
models/** filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Byte-compiled / optimized / DLL files
|
2 |
+
__pycache__/
|
3 |
+
*.py[cod]
|
4 |
+
*$py.class
|
5 |
+
|
6 |
+
# C extensions
|
7 |
+
*.so
|
8 |
+
|
9 |
+
# Distribution / packaging
|
10 |
+
.Python
|
11 |
+
build/
|
12 |
+
develop-eggs/
|
13 |
+
dist/
|
14 |
+
downloads/
|
15 |
+
eggs/
|
16 |
+
.eggs/
|
17 |
+
lib/
|
18 |
+
lib64/
|
19 |
+
parts/
|
20 |
+
sdist/
|
21 |
+
var/
|
22 |
+
wheels/
|
23 |
+
pip-wheel-metadata/
|
24 |
+
share/python-wheels/
|
25 |
+
*.egg-info/
|
26 |
+
.installed.cfg
|
27 |
+
*.egg
|
28 |
+
MANIFEST
|
29 |
+
|
30 |
+
# PyInstaller
|
31 |
+
# Usually these files are written by a python script from a template
|
32 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
33 |
+
*.manifest
|
34 |
+
*.spec
|
35 |
+
|
36 |
+
# Installer logs
|
37 |
+
pip-log.txt
|
38 |
+
pip-delete-this-directory.txt
|
39 |
+
|
40 |
+
# Unit test / coverage reports
|
41 |
+
htmlcov/
|
42 |
+
.tox/
|
43 |
+
.nox/
|
44 |
+
.coverage
|
45 |
+
.coverage.*
|
46 |
+
.cache
|
47 |
+
nosetests.xml
|
48 |
+
coverage.xml
|
49 |
+
*.cover
|
50 |
+
*.py,cover
|
51 |
+
.hypothesis/
|
52 |
+
.pytest_cache/
|
53 |
+
|
54 |
+
# Translations
|
55 |
+
*.mo
|
56 |
+
*.pot
|
57 |
+
|
58 |
+
# Django stuff:
|
59 |
+
*.log
|
60 |
+
local_settings.py
|
61 |
+
db.sqlite3
|
62 |
+
db.sqlite3-journal
|
63 |
+
|
64 |
+
# Flask stuff:
|
65 |
+
instance/
|
66 |
+
.webassets-cache
|
67 |
+
|
68 |
+
# Scrapy stuff:
|
69 |
+
.scrapy
|
70 |
+
|
71 |
+
# Sphinx documentation
|
72 |
+
docs/_build/
|
73 |
+
|
74 |
+
# PyBuilder
|
75 |
+
target/
|
76 |
+
|
77 |
+
# Jupyter Notebook
|
78 |
+
.ipynb_checkpoints
|
79 |
+
|
80 |
+
# IPython
|
81 |
+
profile_default/
|
82 |
+
ipython_config.py
|
83 |
+
|
84 |
+
# pyenv
|
85 |
+
.python-version
|
86 |
+
|
87 |
+
# pipenv
|
88 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
89 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
90 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
91 |
+
# install all needed dependencies.
|
92 |
+
#Pipfile.lock
|
93 |
+
|
94 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
95 |
+
__pypackages__/
|
96 |
+
|
97 |
+
# Celery stuff
|
98 |
+
celerybeat-schedule
|
99 |
+
celerybeat.pid
|
100 |
+
|
101 |
+
# SageMath parsed files
|
102 |
+
*.sage.py
|
103 |
+
|
104 |
+
# Environments
|
105 |
+
.env
|
106 |
+
.venv
|
107 |
+
env/
|
108 |
+
venv/
|
109 |
+
ENV/
|
110 |
+
env.bak/
|
111 |
+
venv.bak/
|
112 |
+
|
113 |
+
# Spyder project settings
|
114 |
+
.spyderproject
|
115 |
+
.spyproject
|
116 |
+
|
117 |
+
# Rope project settings
|
118 |
+
.ropeproject
|
119 |
+
|
120 |
+
# mkdocs documentation
|
121 |
+
/site
|
122 |
+
|
123 |
+
# mypy
|
124 |
+
.mypy_cache/
|
125 |
+
.dmypy.json
|
126 |
+
dmypy.json
|
127 |
+
|
128 |
+
# Pyre type checker
|
129 |
+
.pyre/
|
130 |
+
|
131 |
+
# VS Code settings
|
132 |
+
.vscode
|
.idea/.gitignore
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
# Default ignored files
|
2 |
-
/shelf/
|
3 |
-
/workspace.xml
|
4 |
-
# Datasource local storage ignored files
|
5 |
-
/dataSources/
|
6 |
-
/dataSources.local.xml
|
7 |
-
# Editor-based HTTP Client requests
|
8 |
-
/httpRequests/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.idea/inspectionProfiles/Project_Default.xml
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
<component name="InspectionProjectProfileManager">
|
2 |
-
<profile version="1.0">
|
3 |
-
<option name="myName" value="Project Default" />
|
4 |
-
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
5 |
-
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
6 |
-
<option name="ignoredPackages">
|
7 |
-
<value>
|
8 |
-
<list size="4">
|
9 |
-
<item index="0" class="java.lang.String" itemvalue="tensorboard" />
|
10 |
-
<item index="1" class="java.lang.String" itemvalue="shapely" />
|
11 |
-
<item index="2" class="java.lang.String" itemvalue="geopandas" />
|
12 |
-
<item index="3" class="java.lang.String" itemvalue="sklearn" />
|
13 |
-
</list>
|
14 |
-
</value>
|
15 |
-
</option>
|
16 |
-
</inspection_tool>
|
17 |
-
</profile>
|
18 |
-
</component>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.idea/inspectionProfiles/profiles_settings.xml
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<component name="InspectionProjectProfileManager">
|
2 |
-
<settings>
|
3 |
-
<option name="USE_PROJECT_PROFILE" value="false" />
|
4 |
-
<version value="1.0" />
|
5 |
-
</settings>
|
6 |
-
</component>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.idea/misc.xml
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<project version="4">
|
3 |
-
<component name="ProjectRootManager" version="2" project-jdk-name="Remote Python 3.8.8 (sftp://stella@147.46.112.43:8022/home/stella/anaconda3/envs/python3.8-pytorch17.1/bin/python)" project-jdk-type="Python SDK" />
|
4 |
-
</project>
|
|
|
|
|
|
|
|
|
|
.idea/modules.xml
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<project version="4">
|
3 |
-
<component name="ProjectModuleManager">
|
4 |
-
<modules>
|
5 |
-
<module fileurl="file://$PROJECT_DIR$/.idea/putting-nerf-on-a-diet.iml" filepath="$PROJECT_DIR$/.idea/putting-nerf-on-a-diet.iml" />
|
6 |
-
</modules>
|
7 |
-
</component>
|
8 |
-
</project>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.idea/putting-nerf-on-a-diet.iml
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<module type="PYTHON_MODULE" version="4">
|
3 |
-
<component name="NewModuleRootManager">
|
4 |
-
<content url="file://$MODULE_DIR$" />
|
5 |
-
<orderEntry type="inheritedJdk" />
|
6 |
-
<orderEntry type="sourceFolder" forTests="false" />
|
7 |
-
</component>
|
8 |
-
</module>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.idea/vcs.xml
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<project version="4">
|
3 |
-
<component name="VcsDirectoryMappings">
|
4 |
-
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
5 |
-
</component>
|
6 |
-
</project>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.idea/workspace.xml
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ChangeListManager">
|
4 |
+
<list default="true" id="8de53f6a-fbe7-4721-b732-1dc320acbf49" name="Default Changelist" comment="">
|
5 |
+
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
6 |
+
</list>
|
7 |
+
<option name="SHOW_DIALOG" value="false" />
|
8 |
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
9 |
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
10 |
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
11 |
+
</component>
|
12 |
+
<component name="Git.Settings">
|
13 |
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
14 |
+
</component>
|
15 |
+
<component name="ProjectId" id="1vp155NJAtsxo45TIukog9dgVgZ" />
|
16 |
+
<component name="ProjectViewState">
|
17 |
+
<option name="hideEmptyMiddlePackages" value="true" />
|
18 |
+
<option name="showLibraryContents" value="true" />
|
19 |
+
</component>
|
20 |
+
<component name="PropertiesComponent">
|
21 |
+
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
22 |
+
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
23 |
+
<property name="WebServerToolWindowFactoryState" value="true" />
|
24 |
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
25 |
+
<property name="node.js.detected.package.eslint" value="true" />
|
26 |
+
<property name="node.js.detected.package.tslint" value="true" />
|
27 |
+
<property name="node.js.path.for.package.eslint" value="project" />
|
28 |
+
<property name="node.js.path.for.package.tslint" value="project" />
|
29 |
+
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
30 |
+
<property name="node.js.selected.package.tslint" value="(autodetect)" />
|
31 |
+
</component>
|
32 |
+
<component name="RecentsManager">
|
33 |
+
<key name="CopyFile.RECENT_KEYS">
|
34 |
+
<recent name="$PROJECT_DIR$/assets" />
|
35 |
+
</key>
|
36 |
+
</component>
|
37 |
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
38 |
+
<component name="TaskManager">
|
39 |
+
<task active="true" id="Default" summary="Default task">
|
40 |
+
<changelist id="8de53f6a-fbe7-4721-b732-1dc320acbf49" name="Default Changelist" comment="" />
|
41 |
+
<created>1627244031095</created>
|
42 |
+
<option name="number" value="Default" />
|
43 |
+
<option name="presentableId" value="Default" />
|
44 |
+
<updated>1627244031095</updated>
|
45 |
+
<workItem from="1627244032826" duration="9796000" />
|
46 |
+
<workItem from="1627809909499" duration="444000" />
|
47 |
+
</task>
|
48 |
+
<servers />
|
49 |
+
</component>
|
50 |
+
<component name="TypeScriptGeneratedFilesManager">
|
51 |
+
<option name="version" value="3" />
|
52 |
+
</component>
|
53 |
+
<component name="Vcs.Log.Tabs.Properties">
|
54 |
+
<option name="TAB_STATES">
|
55 |
+
<map>
|
56 |
+
<entry key="MAIN">
|
57 |
+
<value>
|
58 |
+
<State />
|
59 |
+
</value>
|
60 |
+
</entry>
|
61 |
+
</map>
|
62 |
+
</option>
|
63 |
+
<option name="oldMeFiltersMigrated" value="true" />
|
64 |
+
</component>
|
65 |
+
</project>
|
README.md
CHANGED
@@ -24,15 +24,13 @@ streamlit run app.py
|
|
24 |
|
25 |
## ✨ Implementation
|
26 |
|
27 |
-
Our code is written in JAX/ Flax and mainly based upon [jaxnerf](https://github.com/google-research/google-research/tree/master/jaxnerf) from Google Research. The base code is highly optimized in GPU & TPU. For semantic consistency loss, we utilize pretrained CLIP Vision Transformer from [transformers](https://github.com/huggingface/transformers) library.
|
28 |
-
|
29 |
To learn more about DietNeRF, our experiments and implementation, you are highly recommended to check out our very detailed **[Notion write-up](https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745)**!
|
30 |
|
31 |
<p align="center"><img width="500" height="600" alt="스크린샷 2021-07-04 오후 4 11 51" src="assets/report_thumbnail.png"></p>
|
32 |
|
33 |
-
## 🤗 Hugging Face Hub Repo
|
34 |
-
|
35 |
-
[https://huggingface.co/flax-community/putting-nerf-on-a-diet/](https://huggingface.co/flax-community/putting-nerf-on-a-diet/)
|
36 |
|
37 |
Our JAX/Flax implementation currently supports:
|
38 |
|
@@ -73,19 +71,19 @@ Our JAX/Flax implementation currently supports:
|
|
73 |
|
74 |
```bash
|
75 |
# Clone the repo
|
76 |
-
|
77 |
# Create a conda environment, note you can use python 3.6-3.8 as
|
78 |
# one of the dependencies (TensorFlow) hasn't supported python 3.9 yet.
|
79 |
conda create --name jaxnerf python=3.6.12; conda activate jaxnerf
|
80 |
# Prepare pip
|
81 |
conda install pip; pip install --upgrade pip
|
82 |
# Install requirements
|
83 |
-
pip install -r
|
84 |
# [Optional] Install GPU and TPU support for Jax
|
85 |
# Remember to change cuda101 to your CUDA version, e.g. cuda110 for CUDA 11.0.
|
86 |
-
pip install --upgrade jax
|
87 |
# install flax and flax-transformer
|
88 |
-
pip install flax
|
89 |
```
|
90 |
|
91 |
## ⚽ Dataset
|
@@ -96,8 +94,7 @@ in the place you like. Let's assume they are placed under `/tmp/jaxnerf/data/`.
|
|
96 |
|
97 |
## 💖 Methods
|
98 |
|
99 |
-
You can check
|
100 |
-
* 👉👉 VEEEERY Detail DietNeRF Explaination Docs : https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745
|
101 |
|
102 |
<p align="center"><img width="400" alt="스크린샷 2021-07-04 오후 4 11 51" src="https://user-images.githubusercontent.com/77657524/124376591-b312b780-dce2-11eb-80ad-9129d6f5eedb.png"></p>
|
103 |
|
@@ -123,7 +120,7 @@ python -m train \
|
|
123 |
```
|
124 |
You can toggle the semantic loss by “use_semantic_loss” in configuration files.
|
125 |
|
126 |
-
## 💎
|
127 |
|
128 |
### ❗ Rendered Rendering images by 8-shot learned Diet-NeRF
|
129 |
|
@@ -136,9 +133,9 @@ DietNeRF has a strong capacity to generalise on novel and challenging views with
|
|
136 |
|
137 |
### ❗ Rendered GIF by occluded 14-shot learned NeRF and Diet-NeRF
|
138 |
|
139 |
-
We made
|
140 |
The reconstruction quality can be compared with this experiment.
|
141 |
-
|
142 |
|
143 |
#### Training poses
|
144 |
<img width="1400" src="https://user-images.githubusercontent.com/26036843/126111980-4f332c87-a7f0-42e0-a355-8e77621bbca4.png">
|
@@ -166,9 +163,9 @@ Diet NeRF shows better quailty than Original NeRF when It is occulused.
|
|
166 |
| Project Managing | [Stella Yang](https://github.com/codestella) To Watch Our Project Progress, Please Check [Our Project Notion](https://www.notion.so/Putting-NeRF-on-a-Diet-e0caecea0c2b40c3996c83205baf870d) |
|
167 |
| NeRF Team | [Stella Yang](https://github.com/codestella), [Alex Lau](https://github.com/riven314), [Seunghyun Lee](https://github.com/sseung0703), [Hyunkyu Kim](https://github.com/minus31), [Haswanth Aekula](https://github.com/hassiahk), [JaeYoung Chung](https://github.com/robot0321) |
|
168 |
| CLIP Team | [Seunghyun Lee](https://github.com/sseung0703), [Sasikanth Kotti](https://github.com/ksasi), [Khali Sifullah](https://github.com/khalidsaifullaah) , [Sunghyun Kim](https://github.com/MrBananaHuman) |
|
169 |
-
| Cloud TPU Team | [Alex Lau](https://github.com/riven314), [Aswin Pyakurel](https://github.com/masapasa)
|
170 |
|
171 |
-
* Extremely Don't Sleep Contributors
|
172 |
|
173 |
## 😎 What we improved from original JAX-NeRF : Innovation
|
174 |
- Neural rendering with fewshot images
|
@@ -221,16 +218,14 @@ This project is based on “Putting NeRF on a Diet”.
|
|
221 |
|
222 |
## ❤️ Special Thanks
|
223 |
|
224 |
-
|
225 |
-
Our Project is started in the HuggingFace X GoogleAI (JAX) Community Week Event.
|
226 |
-
https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/7104
|
227 |
|
228 |
Thank you for our mentor Suraj and organizers in JAX/Flax Community Week!
|
229 |
Our team grows up with this community learning experience. It was wonderful time!
|
230 |
|
231 |
<img width="250" alt="스크린샷 2021-07-04 오후 4 11 51" src="https://user-images.githubusercontent.com/77657524/126369170-5664076c-ac99-4157-bc53-b91dfb7ed7e1.jpeg">
|
232 |
|
233 |
-
Common Computer AI(https://comcom.ai/
|
234 |
Thank you so much for your support!
|
235 |
<img width="250" alt="스크린샷" src="https://user-images.githubusercontent.com/77657524/126914984-d959be06-19f4-4228-8d3a-a855396b2c3f.jpeg">
|
236 |
|
|
|
24 |
|
25 |
## ✨ Implementation
|
26 |
|
27 |
+
Our code is written in JAX/ Flax and mainly based upon [jaxnerf](https://github.com/google-research/google-research/tree/master/jaxnerf) from Google Research. The base code is highly optimized in GPU & TPU. For semantic consistency loss, we utilize pretrained CLIP Vision Transformer from [transformers](https://github.com/huggingface/transformers) library.
|
|
|
28 |
To learn more about DietNeRF, our experiments and implementation, you are highly recommended to check out our very detailed **[Notion write-up](https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745)**!
|
29 |
|
30 |
<p align="center"><img width="500" height="600" alt="스크린샷 2021-07-04 오후 4 11 51" src="assets/report_thumbnail.png"></p>
|
31 |
|
32 |
+
## 🤗 Hugging Face Model Hub Repo
|
33 |
+
You can also find our project on the [Hugging Face Model Hub Repository](https://huggingface.co/flax-community/putting-nerf-on-a-diet/).
|
|
|
34 |
|
35 |
Our JAX/Flax implementation currently supports:
|
36 |
|
|
|
71 |
|
72 |
```bash
|
73 |
# Clone the repo
|
74 |
+
git clone https://github.com/codestella/putting-nerf-on-a-diet
|
75 |
# Create a conda environment, note you can use python 3.6-3.8 as
|
76 |
# one of the dependencies (TensorFlow) hasn't supported python 3.9 yet.
|
77 |
conda create --name jaxnerf python=3.6.12; conda activate jaxnerf
|
78 |
# Prepare pip
|
79 |
conda install pip; pip install --upgrade pip
|
80 |
# Install requirements
|
81 |
+
pip install -r requirements.txt
|
82 |
# [Optional] Install GPU and TPU support for Jax
|
83 |
# Remember to change cuda101 to your CUDA version, e.g. cuda110 for CUDA 11.0.
|
84 |
+
!pip install --upgrade jax "jax[cuda110]" -f https://storage.googleapis.com/jax-releases/jax_releases.html
|
85 |
# install flax and flax-transformer
|
86 |
+
pip install flax transformers[flax]
|
87 |
```
|
88 |
|
89 |
## ⚽ Dataset
|
|
|
94 |
|
95 |
## 💖 Methods
|
96 |
|
97 |
+
* 👉👉 You can check VEEEERY detailed explanation about our project on [Notion Report](https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745)
|
|
|
98 |
|
99 |
<p align="center"><img width="400" alt="스크린샷 2021-07-04 오후 4 11 51" src="https://user-images.githubusercontent.com/77657524/124376591-b312b780-dce2-11eb-80ad-9129d6f5eedb.png"></p>
|
100 |
|
|
|
120 |
```
|
121 |
You can toggle the semantic loss by “use_semantic_loss” in configuration files.
|
122 |
|
123 |
+
## 💎 Experimental Results
|
124 |
|
125 |
### ❗ Rendered Rendering images by 8-shot learned Diet-NeRF
|
126 |
|
|
|
133 |
|
134 |
### ❗ Rendered GIF by occluded 14-shot learned NeRF and Diet-NeRF
|
135 |
|
136 |
+
We made artificial occlusion on the right side of image (Only picked left side training poses).
|
137 |
The reconstruction quality can be compared with this experiment.
|
138 |
+
DietNeRF shows better quality than Original NeRF when It is occluded.
|
139 |
|
140 |
#### Training poses
|
141 |
<img width="1400" src="https://user-images.githubusercontent.com/26036843/126111980-4f332c87-a7f0-42e0-a355-8e77621bbca4.png">
|
|
|
163 |
| Project Managing | [Stella Yang](https://github.com/codestella) To Watch Our Project Progress, Please Check [Our Project Notion](https://www.notion.so/Putting-NeRF-on-a-Diet-e0caecea0c2b40c3996c83205baf870d) |
|
164 |
| NeRF Team | [Stella Yang](https://github.com/codestella), [Alex Lau](https://github.com/riven314), [Seunghyun Lee](https://github.com/sseung0703), [Hyunkyu Kim](https://github.com/minus31), [Haswanth Aekula](https://github.com/hassiahk), [JaeYoung Chung](https://github.com/robot0321) |
|
165 |
| CLIP Team | [Seunghyun Lee](https://github.com/sseung0703), [Sasikanth Kotti](https://github.com/ksasi), [Khali Sifullah](https://github.com/khalidsaifullaah) , [Sunghyun Kim](https://github.com/MrBananaHuman) |
|
166 |
+
| Cloud TPU Team | [Alex Lau](https://github.com/riven314), [Aswin Pyakurel](https://github.com/masapasa), [JaeYoung Chung](https://github.com/robot0321), [Sunghyun Kim](https://github.com/MrBananaHuman) |
|
167 |
|
168 |
+
* Extremely Don't Sleep Contributors 🤣: [Seunghyun Lee](https://github.com/sseung0703), [Alex Lau](https://github.com/riven314), [Stella Yang](https://github.com/codestella), [Haswanth Aekula](https://github.com/hassiahk)
|
169 |
|
170 |
## 😎 What we improved from original JAX-NeRF : Innovation
|
171 |
- Neural rendering with fewshot images
|
|
|
218 |
|
219 |
## ❤️ Special Thanks
|
220 |
|
221 |
+
Our Project is started in the [HuggingFace X GoogleAI (JAX) Community Week Event](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/7104).
|
|
|
|
|
222 |
|
223 |
Thank you for our mentor Suraj and organizers in JAX/Flax Community Week!
|
224 |
Our team grows up with this community learning experience. It was wonderful time!
|
225 |
|
226 |
<img width="250" alt="스크린샷 2021-07-04 오후 4 11 51" src="https://user-images.githubusercontent.com/77657524/126369170-5664076c-ac99-4157-bc53-b91dfb7ed7e1.jpeg">
|
227 |
|
228 |
+
[Common Computer AI](https://comcom.ai/en/) sponsored multiple V100 GPUs for our project!
|
229 |
Thank you so much for your support!
|
230 |
<img width="250" alt="스크린샷" src="https://user-images.githubusercontent.com/77657524/126914984-d959be06-19f4-4228-8d3a-a855396b2c3f.jpeg">
|
231 |
|
fork-of-first-touch-of-nerf-in-jax.ipynb
DELETED
The diff for this file is too large to render.
See raw diff
|
|
models/14_shot_occluded/fine_plus_coarse/lego_14_shot_occluded_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:604e590e4b4233a7494e344cf25723cd9195837615f909fc6caaa9efd6fbd4ff
|
3 |
+
size 14305645
|
models/14_shot_occluded/fine_plus_coarse/lego_14_shot_occluded_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3786cf8dd77aa5aba5afe3632e801c37083be11e031901c31a4a90713eb0c2b6
|
3 |
+
size 14305645
|
models/14_shot_occluded/fine_plus_coarse/ship_14_shot_occluded_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36809817fe7dda0323127b3e1852d21a86885aac281c0b2e3115696eff07afe3
|
3 |
+
size 14305645
|
models/14_shot_occluded/fine_plus_coarse/ship_14_shot_occluded_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fd4a0baad6c81946578f479ba821bdfd0a3968ececa1bf72462478fb039e42a
|
3 |
+
size 14305645
|
models/4_shot/fine_plus_coarse/hotdog_4_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a19b47f668920b012148f976a33d798b4f62fd9ec60bb3b81a65f300489fa4b
|
3 |
+
size 14305645
|
models/4_shot/fine_plus_coarse/hotdog_4_shot_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f149bbfddb76db3d28a6629490dae4761b921e42152ba89e1add7c5267a25504
|
3 |
+
size 14305645
|
models/4_shot/fine_plus_coarse/materials_4_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef250be5cd68b1ca96ea36d2e1e96f6eb17d01ed988cb25ebff45be33c5aad6c
|
3 |
+
size 14305645
|
models/4_shot/fine_plus_coarse/materials_4_shot_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3af5846194f143fd8a2a2100c5dcd6d5a55e488b66542aa9d9fe741f121df0e4
|
3 |
+
size 14305645
|
models/4_shot/fine_plus_coarse/mic_4_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a343b1630046fc9063997577941e755841da2f2df52ab4962020e5e140577632
|
3 |
+
size 14305645
|
models/4_shot/fine_plus_coarse/mic_4_shot_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ec606fde58cef9a22d4d7b695ca777990ff0daf53fdbc64d32fd64b657f8528
|
3 |
+
size 14305645
|
models/8_shot/coarse/chair_8_shot_coarse_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a58308112c8a39cbe394bb147b22039043133284324470192cff28e9e77ee24
|
3 |
+
size 14305645
|
models/8_shot/coarse/drums_8_shot_coarse_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:32004a6b543c3159497b6166dfd39c86f0a1055eb74f397ce7bbb6ab1142eead
|
3 |
+
size 14305645
|
models/8_shot/coarse/hotdog_8_shot_coarse_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0f9216085509c996d6551de32929af4580b68ffb54d27dfa3212c4f28e405bd
|
3 |
+
size 14305645
|
models/8_shot/coarse/lego_8_shot_coarse_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:252f85cde306ff6994659b4ae9428867d68d4c0d424a6cf5e2599001fba94934
|
3 |
+
size 14305645
|
models/8_shot/coarse/materials_8_shot_coarse_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0eca4684c1ac755f4e08950645e0b3815042085e1cc7ae6644460a2fbb745bf3
|
3 |
+
size 14305645
|
models/8_shot/coarse/mic_8_shot_coarse_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f0e8b34abdc7fd642cb9d3ceb27c6653d67b3f6f1bed436c014b286c023e7ef
|
3 |
+
size 14305645
|
models/8_shot/coarse/ship_8_shot_coarse_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fedd2d5534bf2a9cbfc58ba66b4f91675c6122f005c5fe9c4ea9502f051168de
|
3 |
+
size 14305645
|
models/8_shot/fine_plus_coarse/chair_8_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:503a2cacf7cdebecb45556e97b786addcf2270cc45700331b00b63ef236a1c98
|
3 |
+
size 14305645
|
models/8_shot/fine_plus_coarse/drums_8_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:243316a2086a6b3f8dfb5d6ee7a9f4ff0d3fd00d7b049a8b34a409e6c125bcde
|
3 |
+
size 14305645
|
models/8_shot/fine_plus_coarse/hotdog_8_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a68d92db33c39a65e416fc01925c0ecd2caa613cbc9c74263be7b88f4219b3c
|
3 |
+
size 14305645
|
models/8_shot/fine_plus_coarse/lego_8_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2220eb2ef51ab7a4734eabd43b58420f9f6e2eb762390c92b94f703a640a7525
|
3 |
+
size 14305645
|
models/8_shot/fine_plus_coarse/materials_8_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dca981b7884038cf7498fd21018e5f4a4721252b3a9af64761498c8db008c389
|
3 |
+
size 14305645
|
models/8_shot/fine_plus_coarse/mic_8_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d6dae142642e07c12be9d0ab5bfd11a2c0f968b128a64b8e0a076aa3b2dc2b4
|
3 |
+
size 14305645
|
models/8_shot/fine_plus_coarse/ship_8_shot_diet_nerf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be28cdc08dd86ee57cae18b7f1d9098233d1fc3c6b1561c257d4737808acbedc
|
3 |
+
size 14305645
|