-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodulesettings.json
119 lines (111 loc) · 7.17 KB
/
modulesettings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"Modules": {
"SuperResolution": {
"Name": "Super Resolution",
"Version": "2.2.1",
"PublishingInfo" : {
"Description": "Increases the resolution of an image using AI",
"IconURL": null,
"Category": "Image Processing",
"Stack": "Python, ONNX",
"License": "Apache 2.0",
"LicenseUrl": "http://www.apache.org/licenses/",
"Author": "Chris Maunder",
"Homepage": "https://github.com/codeproject/CodeProject.AI-Server/",
"BasedOn": "PyTorch.org example",
"BasedOnUrl": "https://pytorch.org/tutorials/advanced/super_resolution_with_onnxruntime.html?highlight=superresolution"
},
"LaunchSettings": {
"AutoStart": false,
"FilePath": "superres_adapter.py",
"Runtime": "python3.8",
"RuntimeLocation": "Local", // Can be Local, Shared or System
"PostStartPauseSecs": 0, // Generally 1 if using GPU, 0 for CPU
"Queue": "superresolution_queue", // default is lower(module_id) + '_queue'
"Parallelism": 1 // 0 = Default = number of CPUs / 2
},
"EnvironmentVariables": {
// See : https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
"PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": "python"
},
"GpuOptions" : {
"InstallGPU": false, // GPU support not provided
"EnableGPU": true, // Will be coerced to false if InstallGPU = false
"AcceleratorDeviceName": null, // = default
"HalfPrecision": "enable" // 'Force', 'Enable', 'Disable': whether to force on, allow, or disable half-precision ops
},
"InstallOptions" : {
"Platforms": [ "all" ], // The platforms this module can and cannot be installed on
"ModuleReleases": [ // Which server version is compatible with each version of this module.
{ "ModuleVersion": "1.0", "ServerVersionRange": [ "1.0", "2.6.8" ], "ReleaseDate": "2022-03-01" },
{ "ModuleVersion": "1.1", "ServerVersionRange": [ "2.6.9", "2.0.8" ], "ReleaseDate": "2022-11-01" },
{ "ModuleVersion": "1.2", "ServerVersionRange": [ "2.1", "2.1.12" ], "ReleaseDate": "2023-03-20", "ReleaseNotes": "Updated for CodeProject.AI Server 2.1" },
{ "ModuleVersion": "1.3", "ServerVersionRange": [ "2.1", "2.1.12" ], "ReleaseDate": "2023-04-11", "ReleaseNotes": "Missing assets restored" },
{ "ModuleVersion": "1.4", "ServerVersionRange": [ "2.1", "2.1.12" ], "ReleaseDate": "2023-04-11", "ReleaseNotes": "Corrected inferenceMs type" },
{ "ModuleVersion": "1.5", "ServerVersionRange": [ "2.1", "2.1.12" ], "ReleaseDate": "2023-05-17", "ReleaseNotes": "Updated module settings", "Importance": "Minor" },
{ "ModuleVersion": "1.6", "ServerVersionRange": [ "2.2", "2.2.4" ], "ReleaseDate": "2023-09-09", "ReleaseNotes": "Updated installer" },
{ "ModuleVersion": "1.7", "ServerVersionRange": [ "2.3.0", "2.3.0" ], "ReleaseDate": "2023-10-01", "ReleaseNotes": "Updated to match new installer SDK." },
{ "ModuleVersion": "1.7.1", "ServerVersionRange": [ "2.3.1", "2.4.0" ], "ReleaseDate": "2023-10-10", "ReleaseNotes": "Updated to match new installer SDK." },
{ "ModuleVersion": "1.7.2", "ServerVersionRange": [ "2.3.5", "2.4.0" ], "ReleaseDate": "2023-11-10", "ReleaseNotes": "Improved installer.", "Importance": "Minor" },
{ "ModuleVersion": "1.7.3", "ServerVersionRange": [ "2.4.1", "2.4.1" ], "ReleaseDate": "2023-12-06", "ReleaseNotes": "Updated modulesettings schema", "Importance": "Minor" },
{ "ModuleVersion": "1.7.4", "ServerVersionRange": [ "2.4.2", "2.4.7" ], "ReleaseDate": "2023-12-09", "ReleaseNotes": "Installer updates", "Importance": "Minor" },
{ "ModuleVersion": "1.8.0", "ServerVersionRange": [ "2.5.0-RC1", "2.5.0-RC5" ], "ReleaseDate": "2024-01-06", "ReleaseNotes": "Additions for dynamic explorer UI" },
{ "ModuleVersion": "1.8.1", "ServerVersionRange": [ "2.5.0-RC1", "2.5.0-RC5" ], "ReleaseDate": "2024-01-13", "ReleaseNotes": "Changes to SDK" },
{ "ModuleVersion": "1.8.2", "ServerVersionRange": [ "2.5.0-RC6", "2.6.0" ], "ReleaseDate": "2024-01-16", "ReleaseNotes": "Updated modulesettings schema" },
{ "ModuleVersion": "1.8.3", "ServerVersionRange": [ "2.5.0-RC6", "2.6.0" ], "ReleaseDate": "2024-01-18", "ReleaseNotes": "Updated explorer" },
{ "ModuleVersion": "1.9.0", "ServerVersionRange": [ "2.5.0-RC6", "2.6.0" ], "ReleaseDate": "2024-01-21", "ReleaseNotes": "Module performance statistics added" },
{ "ModuleVersion": "1.9.1", "ServerVersionRange": [ "2.5.2", "2.6.0" ], "ReleaseDate": "2024-02-08", "ReleaseNotes": "Support for CodeProject.AI Server 2.5.2" },
{ "ModuleVersion": "2.0.0", "ServerVersionRange": [ "2.5.2", "2.6.0" ], "ReleaseDate": "2024-04-03", "ReleaseNotes": "Added tiling for larger images" },
{ "ModuleVersion": "2.1.0", "ServerVersionRange": [ "2.6.5", "2.7.0" ], "ReleaseDate": "2024-04-03", "ReleaseNotes": "Updated for CodeProject.AI Server 2.6.5" },
{ "ModuleVersion": "2.1.1", "ServerVersionRange": [ "2.6.5", "2.7.0" ], "ReleaseDate": "2024-06-21", "ReleaseNotes": "Corrected Numpy 2.0 issue" },
{ "ModuleVersion": "2.1.2", "ServerVersionRange": [ "2.6.5", "2.7.0" ], "ReleaseDate": "2024-06-26", "ReleaseNotes": "Corrections to compatibility settings" },
{ "ModuleVersion": "2.2.0", "ServerVersionRange": [ "2.8.0", "" ], "ReleaseDate": "2024-08-02", "ReleaseNotes": "Updated for server 2.8" },
{ "ModuleVersion": "2.2.1", "ServerVersionRange": [ "2.8.0", "" ], "ReleaseDate": "2024-11-23", "ReleaseNotes": "Install fixes for macOS" }
]
},
"ModelRequirements" : [{
"Task": "Super Resolution",
"Architecture": "VGGish",
"Format": "ONNXRuntime"
}],
"RouteMaps": [
{
"Name": "Super Resolution",
"Route": "image/superresolution",
"Method": "POST",
"Command": "superresolution",
"Description": "Increases the resolution of an image using AI to ensure no bluriness is introduced.",
"Inputs": [
{
"Name": "image",
"Type": "File",
"Description": "The image to have its resolution increased."
}
],
"Outputs": [
{
"Name": "success",
"Type": "Boolean",
"Description": "True if successful."
},
{
"Name": "imageBase64",
"Type": "Base64ImageData",
"Description": "The base64 encoded image that has had its resolution increased."
},
{
"Name": "inferenceMs",
"Type": "Integer",
"Description": "The time (ms) to perform the AI inference."
},
{
"Name": "processMs",
"Type": "Integer",
"Description": "The time (ms) to process the image (includes inference and image manipulation operations)."
}
]
}
]
}
}
}