( action )
| 118 | |
| 119 | |
| 120 | def define_actions( action ): |
| 121 | actions = ["Directions","Discussion","Eating","Greeting", |
| 122 | "Phoning","Photo","Posing","Purchases", |
| 123 | "Sitting","SittingDown","Smoking","Waiting", |
| 124 | "WalkDog","Walking","WalkTogether"] |
| 125 | |
| 126 | if action == "All" or action == "all" or action == '*': |
| 127 | return actions |
| 128 | |
| 129 | if not action in actions: |
| 130 | raise( ValueError, "Unrecognized action: %s" % action ) |
| 131 | |
| 132 | return [action] |
| 133 | |
| 134 | |
| 135 | def define_actions_3dhp( action, train ): |