2
0

launch.json 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. "-scth", "0.75",
  22. "--difficulty", "hard",
  23. "--model-path", "./static/models/XW01/riemann_rest+flex_11-27-2023-10-07-18.pkl"]
  24. },
  25. {
  26. "name": "Free grasping paradigm",
  27. "type": "python",
  28. "request": "launch",
  29. "program": "free_grasp.py",
  30. "console": "integratedTerminal",
  31. "cwd": "${workspaceFolder}/backend",
  32. "justMyCode": true,
  33. "args": ["--subj", "XW01",
  34. "--com", "COM3",
  35. "-scth", "0.75",
  36. "--model-path", "./static/models/XW01/riemann_rest+flex_11-27-2023-10-07-18.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": "Validate model",
  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. "-scth", "0.75",
  71. "--model-filename", "riemann_rest+flex_11-27-2023-11-14-08.pkl"]
  72. },
  73. {
  74. "name": "Python: 当前文件",
  75. "type": "python",
  76. "request": "launch",
  77. "program": "${file}",
  78. "console": "integratedTerminal",
  79. "cwd": "${workspaceFolder}/backend",
  80. "justMyCode": true
  81. },
  82. {
  83. "name": "Python: Debug Tests",
  84. "type": "python",
  85. "request": "launch",
  86. "program": "${file}",
  87. "purpose": [
  88. "debug-test"
  89. ],
  90. "console": "integratedTerminal",
  91. "cwd": "${workspaceFolder}/backend",
  92. "env": {
  93. "PYTHONPATH": "${workspaceFolder}/backend"
  94. },
  95. "justMyCode": false,
  96. }
  97. ]
  98. }