Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pointbased_neural_rendering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIBR
Projects
pointbased_neural_rendering
Commits
d4c15cc4
Commit
d4c15cc4
authored
3 years ago
by
KOPANAS Georgios
Browse files
Options
Downloads
Patches
Plain Diff
latest
parent
d0fb2bfa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pbnr_pytorch/scene_loaders/ibr_scene.py
+1
-1
1 addition, 1 deletion
pbnr_pytorch/scene_loaders/ibr_scene.py
pbnr_pytorch/test_render_and_save.py
+4
-4
4 additions, 4 deletions
pbnr_pytorch/test_render_and_save.py
with
5 additions
and
5 deletions
pbnr_pytorch/scene_loaders/ibr_scene.py
+
1
−
1
View file @
d4c15cc4
...
...
@@ -64,7 +64,7 @@ class Camera(nn.Module):
self
.
image
=
nn
.
Parameter
(
loaded_optimizedimages
.
requires_grad_
(
True
))
else
:
image
=
image
.
clamp
(
0.0
,
1.0
)
self
.
image
=
nn
.
Parameter
(
image
.
requires_grad_
(
True
))
self
.
image
=
nn
.
Parameter
(
image
.
cuda
().
requires_grad_
(
True
))
self
.
image_width
=
self
.
image
.
shape
[
3
]
self
.
image_height
=
self
.
image
.
shape
[
2
]
...
...
This diff is collapsed.
Click to expand it.
pbnr_pytorch/test_render_and_save.py
+
4
−
4
View file @
d4c15cc4
...
...
@@ -99,9 +99,9 @@ with torch.no_grad():
torch
.
manual_seed
(
0
)
random
.
seed
(
0
)
dataset_name
=
"
hallway_lamp
"
dataset_name
=
"
silver_vase2
"
path_name
=
"
test_path2
"
args
.
input_path
=
"
/data/graphdeco/user/gkopanas/scenes/
catacaustic_new
/
"
+
dataset_name
+
"
/sibr/pbnrScene/
"
+
dataset_name
+
"
.json
"
args
.
input_path
=
"
/data/graphdeco/user/gkopanas/scenes/
new_selection
/
"
+
dataset_name
+
"
/sibr/pbnrScene/
"
+
dataset_name
+
"
.json
"
with
open
(
args
.
input_path
)
as
json_file
:
input_json
=
json
.
load
(
json_file
)
...
...
@@ -118,9 +118,9 @@ with torch.no_grad():
int
(
args
.
test_cameras
),
load_iter
)
test_cameras_info
=
readColmapSceneInfo_Test
(
dataset_name
,
r
"
/data/graphdeco/user/gkopanas/scenes/
catacaustic_new
/
"
+
dataset_name
+
"
/colmap_1000/
"
+
path_name
).
cameras
test_cameras_info
=
readColmapSceneInfo_Test
(
dataset_name
,
r
"
/data/graphdeco/user/gkopanas/scenes/
new_selection
/
"
+
dataset_name
+
"
/colmap_1000/
"
+
path_name
).
cameras
test_cameras
=
[]
test_neighbors_dict_path
=
os
.
path
.
join
(
r
"
/data/graphdeco/user/gkopanas/scenes/
catacaustic_new
/
"
+
dataset_name
+
"
/sibr/pbnrScene/
"
+
"
neighbors_dict_test.json
"
)
test_neighbors_dict_path
=
os
.
path
.
join
(
r
"
/data/graphdeco/user/gkopanas/scenes/
new_selection
/
"
+
dataset_name
+
"
/sibr/pbnrScene/
"
+
"
neighbors_dict_test.json
"
)
with
open
(
test_neighbors_dict_path
)
as
json_file
:
test_neighbors_dict
=
json
.
load
(
json_file
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment