2
0

launch.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "General training paradigm",
  9. "type": "python",
  10. "request": "launch",
  11. "program": "general_grasp_training.py",
  12. "console": "integratedTerminal",
  13. "cwd": "${workspaceFolder}/backend",
  14. "justMyCode": true,
  15. "args": ["--subj", "XW01",
  16. "--n-trials", "15",
  17. "--hand-feedback",
  18. "--com", "COM3",
  19. "-fm", "flex",
  20. "-vfr", "0.",
  21. "--difficulty", "mid",
  22. "--model-path", "./static/models/XW01/riemann_rest+flex_12-05-2023-19-10-25.pkl"]
  23. },
  24. {
  25. "name": "Grasp training",
  26. "type": "python",
  27. "request": "launch",
  28. "program": "grasp_data_collection_no_release.py",
  29. "console": "integratedTerminal",
  30. "cwd": "${workspaceFolder}/backend",
  31. "justMyCode": true,
  32. "args": ["--n-trials", "15",
  33. "--com", "COM3",
  34. "-fm", "flex"]
  35. },
  36. {
  37. "name": "Free grasping paradigm",
  38. "type": "python",
  39. "request": "launch",
  40. "program": "free_grasp.py",
  41. "console": "integratedTerminal",
  42. "cwd": "${workspaceFolder}/backend",
  43. "justMyCode": true,
  44. "args": ["--subj", "XW01",
  45. "--com", "COM3",
  46. "-scth", "0.9",
  47. "-stp", "0.9",
  48. "--model-path", "./static/models/XW01/riemann_rest+flex_12-05-2023-19-10-25.pkl"]
  49. },
  50. {
  51. "name": "Band selection",
  52. "type": "python",
  53. "request": "launch",
  54. "program": "band_selection.py",
  55. "console": "integratedTerminal",
  56. "cwd": "${workspaceFolder}/backend",
  57. "justMyCode": true,
  58. "args": ["--subj", "XW01",
  59. "--band-min", "5",
  60. "--band-max", "150"]
  61. },
  62. {
  63. "name": "Train model",
  64. "type": "python",
  65. "request": "launch",
  66. "program": "training.py",
  67. "console": "integratedTerminal",
  68. "cwd": "${workspaceFolder}/backend",
  69. "justMyCode": true,
  70. "args": ["--subj", "XW01",
  71. "--model-type", "riemann"]
  72. },
  73. {
  74. "name": "Validation",
  75. "type": "python",
  76. "request": "launch",
  77. "program": "validation.py",
  78. "console": "integratedTerminal",
  79. "cwd": "${workspaceFolder}/backend",
  80. "justMyCode": true,
  81. "args": ["--subj", "XW01",
  82. "--model-filename", "riemann_rest+flex_12-06-2023-17-38-27.pkl"]
  83. },
  84. {
  85. "name": "Online simulation",
  86. "type": "python",
  87. "request": "launch",
  88. "program": "online_sim.py",
  89. "console": "integratedTerminal",
  90. "cwd": "${workspaceFolder}/backend",
  91. "justMyCode": true,
  92. "args": ["--subj", "XW01",
  93. "-scth", "0.9",
  94. "-stp", "0.9",
  95. "--model-filename", "riemann_rest+flex_12-06-2023-17-38-27.pkl"]
  96. },
  97. {
  98. "name": "Train hmm",
  99. "type": "python",
  100. "request": "launch",
  101. "program": "train_hmm.py",
  102. "console": "integratedTerminal",
  103. "cwd": "${workspaceFolder}/backend",
  104. "justMyCode": true,
  105. "args": ["--subj", "XW01",
  106. "--model-filename", "riemann_rest+flex_12-06-2023-17-38-27.pkl"]
  107. },
  108. {
  109. "name": "Python: 当前文件",
  110. "type": "python",
  111. "request": "launch",
  112. "program": "${file}",
  113. "console": "integratedTerminal",
  114. "cwd": "${workspaceFolder}/backend",
  115. "justMyCode": true
  116. },
  117. {
  118. "name": "Python: Debug Tests",
  119. "type": "python",
  120. "request": "launch",
  121. "program": "${file}",
  122. "purpose": [
  123. "debug-test"
  124. ],
  125. "console": "integratedTerminal",
  126. "cwd": "${workspaceFolder}/backend",
  127. "env": {
  128. "PYTHONPATH": "${workspaceFolder}/backend"
  129. },
  130. "justMyCode": false,
  131. }
  132. ]
  133. }