Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nerfacc
Commits
dc73eff4
Commit
dc73eff4
authored
Sep 13, 2022
by
Ruilong Li
Browse files
update readme performance
parent
0c7b5320
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
README.md
README.md
+5
-5
acc_binary_test.png
acc_binary_test.png
+0
-0
acc_binary_train.png
acc_binary_train.png
+0
-0
examples/trainval.py
examples/trainval.py
+4
-5
rgb_train.png
rgb_train.png
+0
-0
No files found.
README.md
View file @
dc73eff4
...
@@ -10,11 +10,11 @@ python examples/trainval.py
...
@@ -10,11 +10,11 @@ python examples/trainval.py
## Performance Reference
## Performance Reference
| trainval (
35
k, 1<<1
6
) | Lego | Mic | Materials |
| trainval (
20
k, 1<<1
8
) | Lego | Mic | Materials |
| - | - | - | - |
| - | - | - | - |
- |
| Time | 3
78
s |
357
s |
360
s |
| Time | 3
00
s |
272
s |
258
s |
| PSNR | 36.2
2
| 36.
55
| 29.
59
|
| PSNR | 36.2
8
| 36.
16
| 29.
76
|
| FPS | 1
2.08 | 25.54 | 9.65
|
| FPS | 1
1.49 | 21.48 | 8.86
|
Tested with the default settings on the Lego test set.
Tested with the default settings on the Lego test set.
...
...
acc_binary_test.png
0 → 100644
View file @
dc73eff4
4.27 KB
acc_binary_train.png
0 → 100644
View file @
dc73eff4
4.18 KB
examples/trainval.py
View file @
dc73eff4
...
@@ -71,7 +71,7 @@ if __name__ == "__main__":
...
@@ -71,7 +71,7 @@ if __name__ == "__main__":
train_dataset
=
SubjectLoader
(
train_dataset
=
SubjectLoader
(
subject_id
=
scene
,
subject_id
=
scene
,
root_fp
=
"/home/ruilongli/data/nerf_synthetic/"
,
root_fp
=
"/home/ruilongli/data/nerf_synthetic/"
,
split
=
"train"
,
split
=
"train
val
"
,
num_rays
=
1024
,
num_rays
=
1024
,
# color_bkgd_aug="random",
# color_bkgd_aug="random",
)
)
...
@@ -120,9 +120,9 @@ if __name__ == "__main__":
...
@@ -120,9 +120,9 @@ if __name__ == "__main__":
optimizer
=
torch
.
optim
.
Adam
(
optimizer
=
torch
.
optim
.
Adam
(
radiance_field
.
parameters
(),
radiance_field
.
parameters
(),
lr
=
1e-2
,
lr
=
1e-2
,
betas
=
(
0.9
,
0.99
),
#
betas=(0.9, 0.99),
eps
=
1e-15
,
eps
=
1e-15
,
weight_decay
=
1e-6
,
#
weight_decay=1e-6,
)
)
scheduler
=
torch
.
optim
.
lr_scheduler
.
MultiStepLR
(
scheduler
=
torch
.
optim
.
lr_scheduler
.
MultiStepLR
(
optimizer
,
milestones
=
[
10000
,
15000
,
18000
],
gamma
=
0.33
optimizer
,
milestones
=
[
10000
,
15000
,
18000
],
gamma
=
0.33
...
@@ -201,7 +201,7 @@ if __name__ == "__main__":
...
@@ -201,7 +201,7 @@ if __name__ == "__main__":
)
)
# if time.time() - tic > 300:
# if time.time() - tic > 300:
if
step
>=
5
_000
and
step
%
5000
==
0
and
step
>
0
:
if
step
>=
20
_000
and
step
%
5000
==
0
and
step
>
0
:
# evaluation
# evaluation
radiance_field
.
eval
()
radiance_field
.
eval
()
...
@@ -247,7 +247,6 @@ if __name__ == "__main__":
...
@@ -247,7 +247,6 @@ if __name__ == "__main__":
"acc_binary_train.png"
,
"acc_binary_train.png"
,
((
acc
>
0
).
float
().
cpu
().
numpy
()
*
255
).
astype
(
np
.
uint8
),
((
acc
>
0
).
float
().
cpu
().
numpy
()
*
255
).
astype
(
np
.
uint8
),
)
)
print
(
"acc"
,
acc
[
acc
>
0
].
min
())
imageio
.
imwrite
(
imageio
.
imwrite
(
"rgb_train.png"
,
"rgb_train.png"
,
(
rgb
.
cpu
().
numpy
()
*
255
).
astype
(
np
.
uint8
),
(
rgb
.
cpu
().
numpy
()
*
255
).
astype
(
np
.
uint8
),
...
...
rgb_train.png
0 → 100644
View file @
dc73eff4
303 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment