|
Hello, I'm trying to add Super Resolution to my CodeProject.AI_ServerGPU Docker container running on UNRAID. I went into the container and clicked Install Modules and clicked Install beside Super Resolution. I get the below log within the Server logs tab in the container. I also tried letting the container run as Privileged with no luck.
Is there a different way I need to follow to install additional Modules within this container when using docker than using the Install Modules button?
My environment details:
OS: UNRAID 6.12.6
Docker container: CodeProject.AI_ServerGPU version 2.2.4-Beta
GPU: NVIDIA GeForce GTX 1050 Ti on driver latest: v545.29.06
CUDA Version 12.3
17:34:12:Preparing to install module 'SuperResolution'
17:34:12:Downloading module 'SuperResolution'
17:34:13:Installing module 'SuperResolution'
17:34:13:SuperResolution: Hi Docker! We will disable shared python installs for downloaded modules
17:34:13:SuperResolution: No schemas installed
17:34:13:SuperResolution: (No schemas means: we can't detect if you're in light or dark mode)
17:34:13:SuperResolution: sh: 1: lsmod: not found
17:34:13:SuperResolution: Installing CodeProject.AI Analysis Module
17:34:13:SuperResolution: ======================================================================
17:34:13:SuperResolution: CodeProject.AI Installer
17:34:13:SuperResolution: ======================================================================
17:34:13:SuperResolution: 66.02 GiB available
17:34:13:SuperResolution: Installing curl...
17:34:13:SuperResolution: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
17:34:14:SuperResolution: E: Failed to fetch http:
17:34:14:SuperResolution: E: Failed to fetch http:
17:34:14:SuperResolution: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
17:34:14:Module SuperResolution installed successfully.
17:34:14:
17:34:14:Module 'Super Resolution' 1.6 (ID: SuperResolution)
17:34:14:Installer exited with code 10
17:34:14:Module Path: /app/modules/SuperResolution
17:34:14:AutoStart: True
17:34:14:Queue: superresolution_queue
17:34:14:Platforms: windows,linux,linux-arm64,macos,macos-arm64
17:34:14:GPU: Support disabled
17:34:14:Parallelism: 1
17:34:14:Accelerator:
17:34:14:Half Precis.: enable
17:34:14:Runtime: python38
17:34:14:Runtime Loc: Local
17:34:14:FilePath: superres_adapter.py
17:34:14:Pre installed: False
17:34:14:Start pause: 0 sec
17:34:14:LogVerbosity:
17:34:14:Valid: True
17:34:14:Environment Variables
17:34:14:PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = python
17:34:14:
17:34:14:Error trying to start Super Resolution (superres_adapter.py)
17:34:14:Module SuperResolution started successfully.
17:34:14:An error occurred trying to start process '/app/modules/SuperResolution/bin/linux/python38/venv/bin/python3' with working directory '/app/modules/SuperResolution'. No such file or directory
17:34:14: at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module)
17:34:14:Please check the CodeProject.AI installation completed successfully
17:34:15:Call to Install on module SuperResolution has completed.
|
|
|
|
|
You may want to try the newer 2.5.1 image. It's only a release candidate at this point, but could solve that issue.
cheers
Chris Maunder
|
|
|
|
|
Hey Chris, thanks for the suggestion
I installed the cuda12_2-2.5.1 image (codeproject/ai-server:cuda12_2-2.5.1) and confirmed it's still processing faces fine and connected to my GPU.
When I try to install Super Resolution I get the error "Error in Install SuperResolution: Call failed.". Server log just says
13:06:51:Call failed
I tried installing other modules and I get this same "Call Failed" message for any of them - Cartoonizer, Text summary, etc. Changing Server Logs to Trace doesn't give me any more info, just "Call failed" in red text.
|
|
|
|
|
|
Thanks Steve!
I tried it in Edge (instead of Chrome) and with Dev Tools open - I'm not sure which fixed it, but looks like it worked. Got the below output, it was a success! I'm able to start Super Resolution.
Sadly it doesn't look like Double Take is configured to use Super Resolution though - Do you guys know what I need to do to have the image upgraded with Super Resolution before running the face processing on it? I guess that's a Double Take config on how to pass the command to CodeProjectAI
14:33:09:Preparing to install module 'SuperResolution'
14:33:09:Downloading module 'SuperResolution'
14:33:09:Installing module 'SuperResolution'
14:33:09:SuperResolution: Setting verbosity to quiet
14:33:09:SuperResolution: Hi Docker! We will disable shared python installs for downloaded modules
14:33:09:SuperResolution: No schemas installed
14:33:09:SuperResolution: (No schemas means: we can't detect if you're in light or dark mode)
14:33:09:SuperResolution: Installing CodeProject.AI Analysis Module
14:33:09:SuperResolution: ======================================================================
14:33:09:SuperResolution: CodeProject.AI Installer
14:33:09:SuperResolution: ======================================================================
14:33:09:SuperResolution: 57.07 GiB of 102.03 GiB available on Docker
14:33:09:SuperResolution: General CodeProject.AI setup
14:33:09:SuperResolution: Setting permissions on downloads folder...Done
14:33:09:SuperResolution: Setting permissions on runtimes folder...Done
14:33:09:SuperResolution: Setting permissions on persisted data folder...Done
14:33:09:SuperResolution: GPU support
14:33:40:Response timeout. Try increasing the timeout value
14:36:03:SuperResolution: Searching for nvidia-cuda-toolkit...installing... Done
14:36:03:SuperResolution: CUDA (NVIDIA) Present: Yes (CUDA 11.5, No cuDNN found)
14:36:05:SuperResolution: ROCm (AMD) Present: (attempt to install rocminfo... ) No
14:36:05:SuperResolution: MPS (Apple) Present: No
14:36:06:SuperResolution: Reading module settings.......Done
14:36:06:SuperResolution: Processing module SuperResolution 1.8.3
14:36:06:SuperResolution: Installing Python 3.8
14:36:06:SuperResolution: Python 3.8 is already installed
14:36:09:SuperResolution: Ensuring PIP in base python install... done
14:36:11:SuperResolution: Upgrading PIP in base python install... done
14:36:11:SuperResolution: Installing Virtual Environment tools for Linux...
14:36:13:SuperResolution: Searching for python3-pip python3-setuptools python3.8...All good.
14:36:22:SuperResolution: Creating Virtual Environment (Local)... Done
14:36:22:SuperResolution: Checking for Python 3.8...(Found Python 3.8.18) All good
14:36:40:SuperResolution: Upgrading PIP in virtual environment... done
14:36:45:SuperResolution: Installing updated setuptools in venv... Done
14:36:45:SuperResolution: No custom setup steps for this module
14:36:45:SuperResolution: Installing Python packages for Super Resolution
14:36:45:SuperResolution: Installing GPU-enabled libraries: No
14:36:46:SuperResolution: Searching for python3-pip...All good.
14:36:48:SuperResolution: Ensuring PIP compatibility... Done
14:36:48:SuperResolution: Python packages will be specified by requirements.linux.txt
14:37:38:SuperResolution: - Installing ONNX, the Open Neural Network Exchange library... (✔️ checked) Done
14:38:03:SuperResolution: - Installing ONNX runtime, the scoring engine for ONNX models... (✔️ checked) Done
14:38:11:SuperResolution: - Installing resizeimage, which provides functions for easily resizing images... (✔️ checked) Done
14:38:12:SuperResolution: - Installing Pillow, a Python Image Library...Already installed
14:42:56:SuperResolution: - Installing Torch, for Tensor computation and Deep neural networks... (✔️ checked) Done
14:42:57:SuperResolution: - Installing NumPy, a package for scientific computing...Already installed
14:42:57:SuperResolution: Installing Python packages for the CodeProject.AI Server SDK
14:42:58:SuperResolution: Searching for python3-pip...All good.
14:43:00:SuperResolution: Ensuring PIP compatibility... Done
14:43:00:SuperResolution: Python packages will be specified by requirements.txt
14:43:01:SuperResolution: - Installing Pillow, a Python Image Library...Already installed
14:43:02:SuperResolution: - Installing Charset normalizer...Already installed
14:43:10:SuperResolution: - Installing aiohttp, the Async IO HTTP library... (✔️ checked) Done
14:43:15:SuperResolution: - Installing aiofiles, the Async IO Files library... (✔️ checked) Done
14:43:20:SuperResolution: - Installing py-cpuinfo to allow us to query CPU info... (✔️ checked) Done
14:43:21:SuperResolution: - Installing Requests, the HTTP library...Already installed
14:43:33:SuperResolution: 2024-01-22 14:43:33.784350647 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv1.bias appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:33:SuperResolution: 2024-01-22 14:43:33.784369783 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv1.weight appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:33:SuperResolution: 2024-01-22 14:43:33.784374033 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv2.bias appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:33:SuperResolution: 2024-01-22 14:43:33.784377374 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv2.weight appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:33:SuperResolution: 2024-01-22 14:43:33.784380425 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv3.bias appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:33:SuperResolution: 2024-01-22 14:43:33.784383500 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv3.weight appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:33:SuperResolution: 2024-01-22 14:43:33.784386923 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv4.bias appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:33:SuperResolution: 2024-01-22 14:43:33.784389978 [W:onnxruntime:, graph.cc:1283 Graph] Initializer conv4.weight appears in graph inputs and will not be treated as constant value/weight. This may prevent some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
14:43:34:SuperResolution: Self test: Self-test passed
14:43:34:SuperResolution: Module setup time 00:07:29
14:43:34:SuperResolution: Setup complete
14:43:34:SuperResolution: Total setup time 00:10:25
14:43:34:Module SuperResolution installed successfully.
14:43:34:Installer exited with code 0
14:43:34:Module SuperResolution not configured to AutoStart.
|
|
|
|
|
My guess is there was a caching issue
cheers
Chris Maunder
|
|
|
|