Skip to content

Commit 7a06556

Browse files
committed
adding an example that visualizes the shape space
1 parent 1363ed5 commit 7a06556

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

demo/load_chumpy.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@
2020
# Ahmed A. A. Osman
2121

2222
from ch.star import STAR
23+
import time
24+
import numpy as np
25+
2326
model = STAR(gender='female',num_betas=10)
27+
for j in range(0,10):
28+
model.betas[:] = 0.0 #Each loop all PC components are set to 0.
29+
for i in np.linspace(-3,3,10): #Varying the jth component +/- 3 standard deviations
30+
model.betas[j] = i
31+
print(model.r) #vertices=model.r and faces=model.f
32+
time.sleep(0.1)

0 commit comments

Comments
 (0)