launch.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. "--com", "COM3",
  18. "-fm", "flex",
  19. "-vfr", "0.5",
  20. "-scth", "0.75",
  21. "--model-path", "./static/models/XW01/baseline_rest+flex_11-21-2023-09-59-49.pkl"]
  22. },
  23. {
  24. "name": "Free grasping paradigm",
  25. "type": "python",
  26. "request": "launch",
  27. "program": "free_grasp.py",
  28. "console": "integratedTerminal",
  29. "cwd": "${workspaceFolder}/backend",
  30. "justMyCode": true,
  31. "args": ["--subj", "XW01",
  32. "--com", "COM3",
  33. "-scth", "0.75",
  34. "--model-path", "./static/models/XW01/baseline_rest+flex_11-21-2023-09-59-49.pkl"]
  35. },
  36. {
  37. "name": "Train model",
  38. "type": "python",
  39. "request": "launch",
  40. "program": "training.py",
  41. "console": "integratedTerminal",
  42. "cwd": "${workspaceFolder}/backend",
  43. "justMyCode": true,
  44. "args": ["--subj", "XW01",
  45. "--model-type", "riemann"]
  46. },
  47. {
  48. "name": "Validate model",
  49. "type": "python",
  50. "request": "launch",
  51. "program": "validation.py",
  52. "console": "integratedTerminal",
  53. "cwd": "${workspaceFolder}/backend",
  54. "justMyCode": true,
  55. "args": ["--subj", "XW01",
  56. "-scth", "0.75",
  57. "--model-filename", "riemann_rest+flex_11-23-2023-10-56-58.pkl"]
  58. },
  59. {
  60. "name": "Python: 当前文件",
  61. "type": "python",
  62. "request": "launch",
  63. "program": "${file}",
  64. "console": "integratedTerminal",
  65. "cwd": "${workspaceFolder}/backend",
  66. "justMyCode": true
  67. },
  68. {
  69. "name": "Python: Debug Tests",
  70. "type": "python",
  71. "request": "launch",
  72. "program": "${file}",
  73. "purpose": [
  74. "debug-test"
  75. ],
  76. "console": "integratedTerminal",
  77. "cwd": "${workspaceFolder}/backend",
  78. "env": {
  79. "PYTHONPATH": "${workspaceFolder}/backend"
  80. },
  81. "justMyCode": false,
  82. }
  83. ]
  84. }