launch.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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": "Free grasping paradigm",
  26. "type": "python",
  27. "request": "launch",
  28. "program": "free_grasp.py",
  29. "console": "integratedTerminal",
  30. "cwd": "${workspaceFolder}/backend",
  31. "justMyCode": true,
  32. "args": ["--subj", "XW01",
  33. "--com", "COM3",
  34. "-scth", "0.9",
  35. "-stp", "0.9",
  36. "--model-path", "./static/models/XW01/riemann_rest+flex_12-05-2023-19-10-25.pkl"]
  37. },
  38. {
  39. "name": "Band selection",
  40. "type": "python",
  41. "request": "launch",
  42. "program": "band_selection.py",
  43. "console": "integratedTerminal",
  44. "cwd": "${workspaceFolder}/backend",
  45. "justMyCode": true,
  46. "args": ["--subj", "XW01",
  47. "--band-min", "5",
  48. "--band-max", "150"]
  49. },
  50. {
  51. "name": "Train model",
  52. "type": "python",
  53. "request": "launch",
  54. "program": "training.py",
  55. "console": "integratedTerminal",
  56. "cwd": "${workspaceFolder}/backend",
  57. "justMyCode": true,
  58. "args": ["--subj", "XW01",
  59. "--model-type", "riemann"]
  60. },
  61. {
  62. "name": "Validation",
  63. "type": "python",
  64. "request": "launch",
  65. "program": "validation.py",
  66. "console": "integratedTerminal",
  67. "cwd": "${workspaceFolder}/backend",
  68. "justMyCode": true,
  69. "args": ["--subj", "XW01",
  70. "--model-filename", "riemann_rest+flex_12-06-2023-17-38-27.pkl"]
  71. },
  72. {
  73. "name": "Online simulation",
  74. "type": "python",
  75. "request": "launch",
  76. "program": "online_sim.py",
  77. "console": "integratedTerminal",
  78. "cwd": "${workspaceFolder}/backend",
  79. "justMyCode": true,
  80. "args": ["--subj", "XW01",
  81. "-scth", "0.9",
  82. "-stp", "0.9",
  83. "--model-filename", "riemann_rest+flex_12-06-2023-17-38-27.pkl"]
  84. },
  85. {
  86. "name": "Train hmm",
  87. "type": "python",
  88. "request": "launch",
  89. "program": "train_hmm.py",
  90. "console": "integratedTerminal",
  91. "cwd": "${workspaceFolder}/backend",
  92. "justMyCode": true,
  93. "args": ["--subj", "XW01",
  94. "--model-filename", "riemann_rest+flex_12-06-2023-17-38-27.pkl"]
  95. },
  96. {
  97. "name": "Python: 当前文件",
  98. "type": "python",
  99. "request": "launch",
  100. "program": "${file}",
  101. "console": "integratedTerminal",
  102. "cwd": "${workspaceFolder}/backend",
  103. "justMyCode": true
  104. },
  105. {
  106. "name": "Python: Debug Tests",
  107. "type": "python",
  108. "request": "launch",
  109. "program": "${file}",
  110. "purpose": [
  111. "debug-test"
  112. ],
  113. "console": "integratedTerminal",
  114. "cwd": "${workspaceFolder}/backend",
  115. "env": {
  116. "PYTHONPATH": "${workspaceFolder}/backend"
  117. },
  118. "justMyCode": false,
  119. }
  120. ]
  121. }