Skip to content

Commit 3601263

Browse files
committed
upload v1
1 parent d93fa4a commit 3601263

File tree

361 files changed

+218995
-28696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+218995
-28696
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 A.Mathis Group & M.W.Mathis Lab @ EPFL
3+
Copyright (c) 2020 Mathis Group @ EPFL
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
##### START POINTS are already present in the folder start_points #######
4+
5+
## To generate them again, use the following bash code
6+
7+
echo "Generating start_points"
8+
9+
python3.6 -m pip install joblib
10+
python3.6 generate_startpoints5.py --monkey_name 'snap'
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
########### Bash script to generate synthetic muscle spindle inputs for each trajectory ############
4+
5+
echo "Generating trajectories"
6+
7+
## j is the folder number where the trajectory will be saved
8+
## i is the character number (From 1 to 20 single-stroke character).
9+
10+
## Each character will generate two folders with the number that is even for horizontal and odd for vertical.
11+
## E.g. character a (i=1) --> 0 horizontal folder and 1 vertical folder
12+
13+
## All monkey names [snap, butter, lando, han01_05, han11_22, chips]
14+
15+
for j in {9000..9000..1}
16+
do
17+
18+
SEED=$RANDOM
19+
for i in {1..20..1} #20
20+
21+
do
22+
echo "sample $j char $i "
23+
let "val=$i*2"
24+
let "val2=$val-1"
25+
python3.6 generate_data_hor_seed.py --label $i --plane 'horizontal' --monkey_name 'snap' --seed $SEED $val2 $j
26+
python3.6 generate_data_ver_seed.py --label $i --plane 'vertical' --monkey_name 'snap' --seed $SEED $val $j
27+
28+
done
29+
done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
######### Bash script to generate the pcr dataset of spindle inputs used to train TCNs. ##########
4+
5+
### Change the init and end folder based on the index used for generating the unprocessed data.
6+
7+
echo "Generating trajectories for snap"
8+
9+
#### SNAP
10+
python3.6 create_dataset_final_all.py --monkey_name 'snap' --lab_count_per_char 90 \
11+
--init_folder 100 --end_folder 181
12+
13+
## If necessary for other monkeys
14+
15+
# #### HAN 01_05
16+
# python3.6 create_dataset_final_all.py --monkey_name 'han01_05' --lab_count_per_char 90 \
17+
# --init_folder 100 --end_folder 181
18+
19+
# echo "Generating trajectories han11_22"
20+
21+
# #### HAN 11__22
22+
# python3.6 create_dataset_final_all.py --monkey_name 'han11_22' --lab_count_per_char 90 \
23+
# --init_folder 100 --end_folder 181
24+
25+
# echo "Generating trajectories chips"
26+
27+
# #### CHIPS
28+
# python3.6 create_dataset_final_all.py --monkey_name 'chips' --lab_count_per_char 90 \
29+
# --init_folder 100 --end_folder 181
30+
31+
# echo "Generating trajectories lando"
32+
33+
# #### LANDO
34+
# python3.6 create_dataset_final_all.py --monkey_name 'lando' --lab_count_per_char 90 \
35+
# --init_folder 100 --end_folder 181
36+
37+
# echo "Generating trajectories butter"
38+
39+
# #### BUTTER
40+
# python3.6 create_dataset_final_all.py --monkey_name 'butter' --lab_count_per_char 90 \
41+
# --init_folder 100 --end_folder 181
42+

0 commit comments

Comments
 (0)