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
d858e9f3
"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "97eddc5d6a83a9bf620070075ef1e1864c9a68ac"
Unverified
Commit
d858e9f3
authored
Apr 14, 2023
by
Yujie Yuan
Committed by
GitHub
Apr 13, 2023
Browse files
fix issues in the example code (#203)
parent
ebeb5ddf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
examples/datasets/dnerf_synthetic.py
examples/datasets/dnerf_synthetic.py
+1
-1
examples/datasets/nerf_360_v2.py
examples/datasets/nerf_360_v2.py
+1
-1
examples/datasets/nerf_synthetic.py
examples/datasets/nerf_synthetic.py
+1
-1
No files found.
examples/datasets/dnerf_synthetic.py
View file @
d858e9f3
...
@@ -176,7 +176,7 @@ class SubjectLoader(torch.utils.data.Dataset):
...
@@ -176,7 +176,7 @@ class SubjectLoader(torch.utils.data.Dataset):
device
=
self
.
images
.
device
,
device
=
self
.
images
.
device
,
)
)
else
:
else
:
image_id
=
[
index
]
image_id
=
[
index
]
*
num_rays
x
=
torch
.
randint
(
x
=
torch
.
randint
(
0
,
self
.
WIDTH
,
size
=
(
num_rays
,),
device
=
self
.
images
.
device
0
,
self
.
WIDTH
,
size
=
(
num_rays
,),
device
=
self
.
images
.
device
)
)
...
...
examples/datasets/nerf_360_v2.py
View file @
d858e9f3
...
@@ -306,7 +306,7 @@ class SubjectLoader(torch.utils.data.Dataset):
...
@@ -306,7 +306,7 @@ class SubjectLoader(torch.utils.data.Dataset):
device
=
self
.
images
.
device
,
device
=
self
.
images
.
device
,
)
)
else
:
else
:
image_id
=
[
index
]
image_id
=
[
index
]
*
num_rays
x
=
torch
.
randint
(
x
=
torch
.
randint
(
0
,
self
.
width
,
size
=
(
num_rays
,),
device
=
self
.
images
.
device
0
,
self
.
width
,
size
=
(
num_rays
,),
device
=
self
.
images
.
device
)
)
...
...
examples/datasets/nerf_synthetic.py
View file @
d858e9f3
...
@@ -174,7 +174,7 @@ class SubjectLoader(torch.utils.data.Dataset):
...
@@ -174,7 +174,7 @@ class SubjectLoader(torch.utils.data.Dataset):
device
=
self
.
images
.
device
,
device
=
self
.
images
.
device
,
)
)
else
:
else
:
image_id
=
[
index
]
image_id
=
[
index
]
*
num_rays
x
=
torch
.
randint
(
x
=
torch
.
randint
(
0
,
self
.
WIDTH
,
size
=
(
num_rays
,),
device
=
self
.
images
.
device
0
,
self
.
WIDTH
,
size
=
(
num_rays
,),
device
=
self
.
images
.
device
)
)
...
...
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