Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teach
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Nikos Athanasiou
teach
Commits
11d82b11
Commit
11d82b11
authored
2 years ago
by
Nikos Athanasiou
Browse files
Options
Downloads
Patches
Plain Diff
minor rendering changes
parent
67d95ae6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
temos/render/blender/render.py
+4
-4
4 additions, 4 deletions
temos/render/blender/render.py
with
4 additions
and
4 deletions
temos/render/blender/render.py
+
4
−
4
View file @
11d82b11
...
...
@@ -109,14 +109,14 @@ def render(npydata, frames_folder, *, mode, faces_path,
if
not
separate_actions
:
factor
=
3.0
# 3.0 for 2 action sin data
shift_vals
=
factor
*
np
.
linspace
(
-
total_num_of_rendered_frames
/
2
,
total_num_of_rendered_frames
/
2
,
total_num_of_rendered_frames
)
/
total_num_of_rendered_frames
#shift_vals = factor * np.linspace(0, total_num_of_rendered_frames, total_num_of_rendered_frames)/total_num_of_rendered_frames
#
shift_vals = factor * np.linspace(0, total_num_of_rendered_frames, total_num_of_rendered_frames)/total_num_of_rendered_frames
shift_vals
[(
total_num_of_rendered_frames
//
2
):]
*=
1.3
shift_vals
[:(
total_num_of_rendered_frames
//
2
)]
*=
0.8
#
shift_vals[(total_num_of_rendered_frames//2):] *= 1.3
#
shift_vals[:(total_num_of_rendered_frames//2)] *= 0.8
for
action_bodies
,
shift
in
zip
(
actions_bodies
,
[
shift_vals
[
num
*
idx
:
num
*
(
idx
+
1
)]
for
idx
in
range
(
num_of_actions
)]):
# put the fake translation
# and still 0 for gravity axis
action_bodies
+=
np
.
stack
((
-
shift
[:,
None
],
-
shift
[:,
None
],
0
*
shift
[:,
None
]),
axis
=
2
)
action_bodies
+=
np
.
stack
((
shift
[:,
None
],
shift
[:,
None
],
0
*
shift
[:,
None
]),
axis
=
2
)
actions_bodies_transf
.
append
(
action_bodies
)
else
:
for
action_bodies
in
zip
(
actions_bodies
):
...
...
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