launch.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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_12-05-2023-19-10-25.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_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-05-2023-19-10-25.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.75",
  82. "--model-filename", "riemann_rest+flex_12-05-2023-19-10-25.pkl"]
  83. },
  84. {
  85. "name": "Python: 当前文件",
  86. "type": "python",
  87. "request": "launch",
  88. "program": "${file}",
  89. "console": "integratedTerminal",
  90. "cwd": "${workspaceFolder}/backend",
  91. "justMyCode": true
  92. },
  93. {
  94. "name": "Python: Debug Tests",
  95. "type": "python",
  96. "request": "launch",
  97. "program": "${file}",
  98. "purpose": [
  99. "debug-test"
  100. ],
  101. "console": "integratedTerminal",
  102. "cwd": "${workspaceFolder}/backend",
  103. "env": {
  104. "PYTHONPATH": "${workspaceFolder}/backend"
  105. },
  106. "justMyCode": false,
  107. }
  108. ]
  109. }