|
12 | 12 | "type": "coreclr", |
13 | 13 | "request": "launch", |
14 | 14 | "preLaunchTask": "build-server", |
15 | | - "postDebugTask": "stop-all", |
16 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server", |
| 15 | + // "postDebugTask": "stop-all", |
| 16 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server", |
17 | 17 | "linux": { |
18 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
| 18 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
19 | 19 | }, |
20 | 20 | "args": [], |
21 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/", |
| 21 | + "cwd": "${workspaceFolder}/src/server/", |
22 | 22 | "stopAtEntry": false, |
23 | 23 | "requireExactSource": false, |
24 | 24 | "serverReadyAction": { |
|
37 | 37 | "group": "3 Server" |
38 | 38 | }, |
39 | 39 |
|
40 | | - "name": "Build Server only", |
| 40 | + "name": "Build Server Debug", |
41 | 41 |
|
42 | 42 | "type": "python", |
43 | | - "code":"#", // dummy command |
| 43 | + "code": "#", // dummy command |
44 | 44 | "console": "internalConsole", |
45 | 45 | "request": "launch", |
46 | 46 | "preLaunchTask": "build-server", |
47 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/", |
| 47 | + "cwd": "${workspaceFolder}/src/server/", |
48 | 48 | "env": { |
49 | 49 | "ASPNETCORE_ENVIRONMENT": "Development" |
50 | 50 | } |
51 | 51 | }, |
| 52 | + { |
| 53 | + "presentation": { |
| 54 | + "group": "3 Server" |
| 55 | + }, |
| 56 | + |
| 57 | + "name": "Build Server Release", |
| 58 | + |
| 59 | + "type": "python", |
| 60 | + "code": "#", // dummy command |
| 61 | + "console": "internalConsole", |
| 62 | + "request": "launch", |
| 63 | + "preLaunchTask": "build-server-release", |
| 64 | + "cwd": "${workspaceFolder}/src/server/", |
| 65 | + "env": { |
| 66 | + "ASPNETCORE_ENVIRONMENT": "Production" |
| 67 | + } |
| 68 | + }, |
52 | 69 |
|
53 | 70 | // Build x64 -------------------------------------------------------------- |
54 | 71 |
|
|
60 | 77 | "type": "coreclr", |
61 | 78 | "request": "launch", |
62 | 79 | "preLaunchTask": "build-all", |
63 | | - "postDebugTask": "stop-all", |
64 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server", |
| 80 | + // "postDebugTask": "stop-all", |
| 81 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server", |
65 | 82 | "linux": { |
66 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
| 83 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
67 | 84 | }, |
68 | 85 | "args": [], |
69 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/", |
| 86 | + "cwd": "${workspaceFolder}/src/server/", |
70 | 87 | "stopAtEntry": false, |
71 | 88 | "requireExactSource": false, |
72 | 89 | "serverReadyAction": { |
|
104 | 121 | // "args": [ "--version" ], // dummy command |
105 | 122 |
|
106 | 123 | "preLaunchTask": "build-all", |
107 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/", |
| 124 | + "cwd": "${workspaceFolder}/src/server/", |
108 | 125 | "env": { |
109 | 126 | "ASPNETCORE_ENVIRONMENT": "Development" |
110 | 127 | } |
|
121 | 138 | "type": "coreclr", |
122 | 139 | "request": "launch", |
123 | 140 | "preLaunchTask": "build-all-arm64", |
124 | | - "postDebugTask": "stop-all", |
125 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server", |
| 141 | + // "postDebugTask": "stop-all", |
| 142 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server", |
126 | 143 | "linux": { |
127 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
| 144 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
128 | 145 | }, |
129 | 146 | "args": [], |
130 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/", |
| 147 | + "cwd": "${workspaceFolder}/src/server/", |
131 | 148 | "stopAtEntry": false, |
132 | 149 | "requireExactSource": false, |
133 | 150 | "serverReadyAction": { |
|
164 | 181 | // "args": [ "--version" ], // dummy command |
165 | 182 |
|
166 | 183 | "preLaunchTask": "build-all-arm64", |
167 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/", |
| 184 | + "cwd": "${workspaceFolder}/src/server/", |
168 | 185 | "env": { |
169 | 186 | "ASPNETCORE_ENVIRONMENT": "Development" |
170 | 187 | } |
|
181 | 198 | "name": "Launch Server", |
182 | 199 | "type": "coreclr", |
183 | 200 | "request": "launch", |
184 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server", |
| 201 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server", |
185 | 202 | "linux": { |
186 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
| 203 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
187 | 204 | }, |
188 | 205 | "args": [], |
189 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/", |
| 206 | + "cwd": "${workspaceFolder}/src/server/", |
190 | 207 | "stopAtEntry": false, |
191 | 208 | "requireExactSource": false, |
192 | 209 | "serverReadyAction": { |
|
235 | 252 | "type": "coreclr", |
236 | 253 | "request": "launch", |
237 | 254 | "preLaunchTask": "build-server", |
238 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server.exe", |
| 255 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server.exe", |
239 | 256 | "linux": { |
240 | | - "program": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
| 257 | + "program": "${workspaceFolder}/src/server/bin/Debug/net7.0/CodeProject.AI.Server.dll", |
241 | 258 | }, |
242 | 259 | "args": [ |
243 | 260 | "--ModuleOptions:LaunchModules=false" |
244 | 261 | ], |
245 | | - "cwd": "${workspaceFolder}/src/API/Server/FrontEnd/bin/Debug/net7.0/", |
| 262 | + "cwd": "${workspaceFolder}/src/server/bin/Debug/net7.0/", |
246 | 263 | "stopAtEntry": false, |
247 | 264 | "serverReadyAction": { |
248 | 265 | "action": "openExternally", |
|
332 | 349 | "env": { |
333 | 350 | "DEBUG_IN_VSCODE": "True", |
334 | 351 | "RUNNING_IN_VSCODE": "True", |
335 | | - "CPAI_PORT": "32168" |
| 352 | + "CPAI_PORT": "32168", |
| 353 | + "U2NET_HOME": "${workspaceFolder}/src/modules/BackgroundRemover/models" |
336 | 354 | }, |
337 | 355 | "windows": { |
338 | 356 | "python": "${workspaceFolder}/src/modules/BackgroundRemover/bin/windows/python39/venv/Scripts/python.exe", |
|
494 | 512 | } |
495 | 513 | }, |
496 | 514 |
|
497 | | - { |
498 | | - "presentation": { |
499 | | - "group": "5 Launch Individual", |
500 | | - "hidden": false |
501 | | - }, |
502 | | - "name": "Object Detect TFLite", |
503 | | - "type": "python", |
504 | | - "request": "launch", |
505 | | - "python": "${workspaceFolder}/src/modules/ObjectDetectionTFLite/bin/windows/python39/venv/Scripts/python.exe", |
506 | | - "program": "objectdetection_tflite_adapter.py", |
507 | | - "cwd": "${workspaceFolder}/src/modules/ObjectDetectionTFLite", |
508 | | - "console": "integratedTerminal", |
509 | | - "justMyCode": false, |
510 | | - "env": { |
511 | | - "DEBUG_IN_VSCODE": "True", |
512 | | - "RUNNING_IN_VSCODE": "True", |
513 | | - "CPAI_PORT": "32168", |
514 | | - "CPAI_MODULE_QUEUENAME": "objectdetection_queue", |
515 | | - "MODEL_SIZE": "tiny" |
516 | | - }, |
517 | | - "windows": { |
518 | | - "python": "${workspaceFolder}/src/modules/ObjectDetectionTFLite/bin/windows/python39/venv/Scripts/python.exe", |
519 | | - }, |
520 | | - "linux": { |
521 | | - "python": "${workspaceFolder}/src/modules/ObjectDetectionTFLite/bin/linux/python39/venv/bin/python", |
522 | | - }, |
523 | | - "osx": { |
524 | | - "python": "${workspaceFolder}/src/modules/ObjectDetectionTFLite/bin/macos/python39/venv/bin/python", |
525 | | - } |
526 | | - }, |
527 | | - |
528 | 515 | { |
529 | 516 | "presentation": { |
530 | 517 | "group": "5 Launch Individual", |
|
615 | 602 | */ |
616 | 603 | }, |
617 | 604 |
|
| 605 | + { |
| 606 | + "presentation": { |
| 607 | + "group": "5 Launch Individual", |
| 608 | + "hidden": false |
| 609 | + }, |
| 610 | + "name": "Portrait Filter", |
| 611 | + "type": "coreclr", |
| 612 | + "request": "launch", |
| 613 | + "preLaunchTask": "build-portraitfilter", |
| 614 | + "program": "${workspaceFolder}/src/modules/PortraitFilter/bin/Debug/net7.0/PortraitFilter", |
| 615 | + "args": [], |
| 616 | + "cwd": "${workspaceFolder}/src/modules/PortraitFilter", |
| 617 | + "stopAtEntry": false, |
| 618 | + "console": "internalConsole", |
| 619 | + "requireExactSource": false, |
| 620 | + "justMyCode": false, |
| 621 | + "env": { |
| 622 | + "ASPNETCORE_ENVIRONMENT": "Development", |
| 623 | + "RUNNING_IN_VSCODE": "true", |
| 624 | + "DOTNET_NOLOGO": "true" |
| 625 | + } |
| 626 | + }, |
| 627 | + |
618 | 628 | { |
619 | 629 | "presentation": { |
620 | 630 | "group": "5 Launch Individual", |
|
0 commit comments