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
pytorch3d
Commits
9dcafc71
Commit
9dcafc71
authored
May 27, 2025
by
fengzch-das
Browse files
Merge branch 'fzc-V0.7.8-dev' into 'V0.7.8-das'
fix:修改opengl相关测试用例 See merge request
!1
parents
8f995972
492cb75a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
pytorch3d/csrc/pulsar/include/camera.device.h
pytorch3d/csrc/pulsar/include/camera.device.h
+7
-0
pytorch3d/csrc/pulsar/include/camera.h
pytorch3d/csrc/pulsar/include/camera.h
+3
-0
pytorch3d/renderer/__init__.py
pytorch3d/renderer/__init__.py
+2
-2
pytorch3d/renderer/points/__init__.py
pytorch3d/renderer/points/__init__.py
+2
-2
No files found.
pytorch3d/csrc/pulsar/include/camera.device.h
View file @
9dcafc71
...
@@ -20,6 +20,13 @@ IHD CamGradInfo::CamGradInfo() {
...
@@ -20,6 +20,13 @@ IHD CamGradInfo::CamGradInfo() {
pixel_dir_x
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
pixel_dir_x
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
pixel_dir_y
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
pixel_dir_y
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
}
}
IHD
CamGradInfo
::
CamGradInfo
(
float
val
)
{
cam_pos
=
make_float3
(
val
,
val
,
val
);
pixel_0_0_center
=
make_float3
(
val
,
val
,
val
);
pixel_dir_x
=
make_float3
(
val
,
val
,
val
);
pixel_dir_y
=
make_float3
(
val
,
val
,
val
);
}
}
// namespace pulsar
}
// namespace pulsar
#endif
#endif
pytorch3d/csrc/pulsar/include/camera.h
View file @
9dcafc71
...
@@ -64,6 +64,7 @@ inline bool operator==(const CamInfo& a, const CamInfo& b) {
...
@@ -64,6 +64,7 @@ inline bool operator==(const CamInfo& a, const CamInfo& b) {
struct
CamGradInfo
{
struct
CamGradInfo
{
HOST
DEVICE
CamGradInfo
();
HOST
DEVICE
CamGradInfo
();
HOST
DEVICE
CamGradInfo
(
float
val
);
float3
cam_pos
;
float3
cam_pos
;
float3
pixel_0_0_center
;
float3
pixel_0_0_center
;
float3
pixel_dir_x
;
float3
pixel_dir_x
;
...
@@ -72,6 +73,8 @@ struct CamGradInfo {
...
@@ -72,6 +73,8 @@ struct CamGradInfo {
// TODO: remove once https://github.com/NVlabs/cub/issues/172 is resolved.
// TODO: remove once https://github.com/NVlabs/cub/issues/172 is resolved.
struct
IntWrapper
{
struct
IntWrapper
{
HOST
DEVICE
IntWrapper
(){}
HOST
DEVICE
explicit
IntWrapper
(
int
ival
)
:
val
{
0
}{}
int
val
;
int
val
;
};
};
...
...
pytorch3d/renderer/__init__.py
View file @
9dcafc71
...
@@ -80,8 +80,8 @@ from .points import (
...
@@ -80,8 +80,8 @@ from .points import (
)
)
# Pulsar is not enabled on amd.
# Pulsar is not enabled on amd.
if
not
torch
.
version
.
hip
:
#
if not torch.version.hip:
from
.points
import
PulsarPointsRenderer
from
.points
import
PulsarPointsRenderer
from
.splatter_blend
import
SplatterBlender
from
.splatter_blend
import
SplatterBlender
from
.utils
import
(
from
.utils
import
(
...
...
pytorch3d/renderer/points/__init__.py
View file @
9dcafc71
...
@@ -11,8 +11,8 @@ import torch
...
@@ -11,8 +11,8 @@ import torch
from
.compositor
import
AlphaCompositor
,
NormWeightedCompositor
from
.compositor
import
AlphaCompositor
,
NormWeightedCompositor
# Pulsar not enabled on amd.
# Pulsar not enabled on amd.
if
not
torch
.
version
.
hip
:
#
if not torch.version.hip:
from
.pulsar.unified
import
PulsarPointsRenderer
from
.pulsar.unified
import
PulsarPointsRenderer
from
.rasterize_points
import
rasterize_points
from
.rasterize_points
import
rasterize_points
from
.rasterizer
import
PointsRasterizationSettings
,
PointsRasterizer
from
.rasterizer
import
PointsRasterizationSettings
,
PointsRasterizer
...
...
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