Skip to content

docker - FileNotFoundError: [Errno 2] No such file or directory: '/app/preinstalled-modules/FaceProcessing/assets/facerec-high.model' #276

@luzik

Description

@luzik

Fresh docker installation, no docker volumes - just image, and I've got such error

Additional context
docker compose up codeproject-ai
[+] Running 1/1
✔ Container codeproject-ai-server-cuda Created 0.0s
Attaching to codeproject-ai-server-cuda
codeproject-ai-server-cuda | Creating downloaded modules package path '/app/downloads/modules/packages'
codeproject-ai-server-cuda | Creating downloaded models path '/app/downloads/models'
codeproject-ai-server-cuda | Infor ** System: Docker (916343628e0a)
codeproject-ai-server-cuda | Infor ** Operating System: Linux (Ubuntu 22.04 Jammy Jellyfish)
codeproject-ai-server-cuda | Infor ** CPUs: AMD Ryzen 5 PRO 5650G with Radeon Graphics (AMD)
codeproject-ai-server-cuda | Infor ** 1 CPU x 6 cores. 12 logical processors (x64)
codeproject-ai-server-cuda | Infor ** System RAM: 62 GiB
codeproject-ai-server-cuda | Infor ** Platform: Linux
codeproject-ai-server-cuda | Infor ** BuildConfig: Release
codeproject-ai-server-cuda | Infor ** Execution Env: Docker
codeproject-ai-server-cuda | Infor ** Runtime Env: Production
codeproject-ai-server-cuda | Infor ** Runtimes installed:
codeproject-ai-server-cuda | Infor ** .NET runtime: 9.0.0
codeproject-ai-server-cuda | Infor ** .NET SDK: Not found
codeproject-ai-server-cuda | Infor ** Default Python: 3.10.12
codeproject-ai-server-cuda | Infor ** Go: Not found
codeproject-ai-server-cuda | Infor ** NodeJS: Not found
codeproject-ai-server-cuda | Infor ** Rust: Not found
codeproject-ai-server-cuda | Infor ** App DataDir: /etc/codeproject/ai
codeproject-ai-server-cuda | Infor Video adapter info:
codeproject-ai-server-cuda | Infor *** STARTING CODEPROJECT.AI SERVER
codeproject-ai-server-cuda | Infor RUNTIMES_PATH = /app/runtimes
codeproject-ai-server-cuda | Infor PREINSTALLED_MODULES_PATH = /app/preinstalled-modules
codeproject-ai-server-cuda | Infor DEMO_MODULES_PATH = /app/src/demos/modules
codeproject-ai-server-cuda | Infor EXTERNAL_MODULES_PATH = /CodeProject.AI-Modules
codeproject-ai-server-cuda | Infor MODULES_PATH = /app/modules
codeproject-ai-server-cuda | Infor PYTHON_PATH = /bin/ubuntu/%PYTHON_NAME%/venv/bin/python3
codeproject-ai-server-cuda | Infor Data Dir = /etc/codeproject/ai
codeproject-ai-server-cuda | Infor ** Server version: 2.9.5
codeproject-ai-server-cuda | Server is listening on port 32168
codeproject-ai-server-cuda | Server is also listening on legacy port 5000
codeproject-ai-server-cuda | Trace ModuleRunner Start
codeproject-ai-server-cuda | Warni Overriding address(es) 'http://+:32168, http://+:5000'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
codeproject-ai-server-cuda | Trace Starting Background AI Modules
codeproject-ai-server-cuda | Trace Running module using: python3.8
codeproject-ai-server-cuda | Debug
codeproject-ai-server-cuda | Debug Attempting to start FaceProcessing with python3.8 "/app/preinstalled-modules/FaceProcessing/intelligencelayer/face.py"
codeproject-ai-server-cuda | Trace Starting python3.8 "/app.../FaceProcessing/intelligencelayer/face.py"
codeproject-ai-server-cuda | Infor
codeproject-ai-server-cuda | Infor ** Module 'Face Processing' 1.12.1 (ID: FaceProcessing)
codeproject-ai-server-cuda | Infor ** Valid: True
codeproject-ai-server-cuda | Infor ** Module Path: <root>/preinstalled-modules/FaceProcessing
codeproject-ai-server-cuda | Infor ** Module Location: PreInstalled
codeproject-ai-server-cuda | Infor ** AutoStart: True
codeproject-ai-server-cuda | Infor ** Queue: faceprocessing_queue
codeproject-ai-server-cuda | Infor ** Runtime: python3.8
codeproject-ai-server-cuda | Infor ** Runtime Location: System
codeproject-ai-server-cuda | Infor ** FilePath: intelligencelayer/face.py
codeproject-ai-server-cuda | Infor ** Start pause: 3 sec
codeproject-ai-server-cuda | Infor ** Parallelism: 0
codeproject-ai-server-cuda | Infor ** LogVerbosity:
codeproject-ai-server-cuda | Infor ** Platforms: all,!jetson
codeproject-ai-server-cuda | Infor ** GPU Libraries: installed if available
codeproject-ai-server-cuda | Infor ** GPU: use if supported
codeproject-ai-server-cuda | Infor ** Accelerator:
codeproject-ai-server-cuda | Infor ** Half Precision: enable
codeproject-ai-server-cuda | Infor ** Environment Variables
codeproject-ai-server-cuda | Infor ** APPDIR = <root>/preinstalled-modules/FaceProcessing/intelligencelayer
codeproject-ai-server-cuda | Infor ** DATA_DIR = /etc/codeproject/ai
codeproject-ai-server-cuda | Infor ** MODE = MEDIUM
codeproject-ai-server-cuda | Infor ** MODELS_DIR = <root>/preinstalled-modules/FaceProcessing/assets
codeproject-ai-server-cuda | Infor ** PROFILE = desktop_gpu
codeproject-ai-server-cuda | Infor ** USE_CUDA = True
codeproject-ai-server-cuda | Infor ** YOLOv5_AUTOINSTALL = false
codeproject-ai-server-cuda | Infor ** YOLOv5_VERBOSE = false
codeproject-ai-server-cuda | Infor
codeproject-ai-server-cuda | Infor Started Face Processing module
codeproject-ai-server-cuda | Debug Current Version is 2.9.5
codeproject-ai-server-cuda | Infor Server: This is the latest version
codeproject-ai-server-cuda | Trace Running module using: python3.8
codeproject-ai-server-cuda | Debug
codeproject-ai-server-cuda | Debug Attempting to start ObjectDetectionYOLOv5-6.2 with python3.8 "/app/preinstalled-modules/ObjectDetectionYOLOv5-6.2/detect_adapter.py"
codeproject-ai-server-cuda | Trace Starting python3.8 "/app...jectDetectionYOLOv5-6.2/detect_adapter.py"
codeproject-ai-server-cuda | Infor
codeproject-ai-server-cuda | Infor ** Module 'Object Detection (YOLOv5 6.2)' 1.10.0 (ID: ObjectDetectionYOLOv5-6.2)
codeproject-ai-server-cuda | Infor ** Valid: True
codeproject-ai-server-cuda | Infor ** Module Path: <root>/preinstalled-modules/ObjectDetectionYOLOv5-6.2
codeproject-ai-server-cuda | Infor ** Module Location: PreInstalled
codeproject-ai-server-cuda | Infor ** AutoStart: True
codeproject-ai-server-cuda | Infor ** Queue: objectdetection_queue
codeproject-ai-server-cuda | Infor ** Runtime: python3.8
codeproject-ai-server-cuda | Infor ** Runtime Location: System
codeproject-ai-server-cuda | Infor ** FilePath: detect_adapter.py
codeproject-ai-server-cuda | Infor ** Start pause: 1 sec
codeproject-ai-server-cuda | Infor ** Parallelism: 0
codeproject-ai-server-cuda | Infor ** LogVerbosity:
codeproject-ai-server-cuda | Infor ** Platforms: all,!raspberrypi,!jetson
codeproject-ai-server-cuda | Infor ** GPU Libraries: installed if available
codeproject-ai-server-cuda | Infor ** GPU: use if supported
codeproject-ai-server-cuda | Infor ** Accelerator:
codeproject-ai-server-cuda | Infor ** Half Precision: enable
codeproject-ai-server-cuda | Infor ** Environment Variables
codeproject-ai-server-cuda | Infor ** APPDIR = <root>/preinstalled-modules/ObjectDetectionYOLOv5-6.2
codeproject-ai-server-cuda | Infor ** CUSTOM_MODELS_DIR = <root>/preinstalled-modules/ObjectDetectionYOLOv5-6.2/custom-models
codeproject-ai-server-cuda | Infor ** MODELS_DIR = <root>/preinstalled-modules/ObjectDetectionYOLOv5-6.2/assets
codeproject-ai-server-cuda | Infor ** MODEL_SIZE = Medium
codeproject-ai-server-cuda | Infor ** USE_CUDA = True
codeproject-ai-server-cuda | Infor ** YOLOv5_AUTOINSTALL = false
codeproject-ai-server-cuda | Infor ** YOLOv5_VERBOSE = false
codeproject-ai-server-cuda | Infor
codeproject-ai-server-cuda | Infor Started Object Detection (YOLOv5 6.2) module
codeproject-ai-server-cuda | Trace face.py: Vision AI services setup: Retrieving environment variables...
codeproject-ai-server-cuda | Infor face.py: GPU in use: NVIDIA RTX A4000
codeproject-ai-server-cuda | Debug face.py: APPDIR: /app/preinstalled-modules/FaceProcessing/intelligencelayer
codeproject-ai-server-cuda | Debug face.py: PROFILE: desktop_gpu
codeproject-ai-server-cuda | Debug face.py: USE_CUDA: True
codeproject-ai-server-cuda | Debug face.py: DATA_DIR: /etc/codeproject/ai
codeproject-ai-server-cuda | Debug face.py: MODELS_DIR: /app/preinstalled-modules/FaceProcessing/assets
codeproject-ai-server-cuda | Debug face.py: MODE: MEDIUM
codeproject-ai-server-cuda | Trace face.py: Running init for Face Processing
codeproject-ai-server-cuda | Debug detect_adapter.py: APPDIR: /app/preinstalled-modules/ObjectDetectionYOLOv5-6.2
codeproject-ai-server-cuda | Debug detect_adapter.py: MODEL_SIZE: medium
codeproject-ai-server-cuda | Debug detect_adapter.py: MODELS_DIR: /app/preinstalled-modules/ObjectDetectionYOLOv5-6.2/assets
codeproject-ai-server-cuda | Trace detect_adapter.py: Running init for Object Detection (YOLOv5 6.2)

codeproject-ai-server-cuda | Trace Request 'recognize' dequeued from 'faceprocessing_queue' (#reqid dcdbbbd5-b39e-42d1-85a2-14d4b2bd1e63)
codeproject-ai-server-cuda | Trace Request 'recognize' dequeued from 'faceprocessing_queue' (#reqid 55235f77-596f-4038-a0b2-45fd3abac1a1)
codeproject-ai-server-cuda | Trace Client request 'recognize' in queue 'faceprocessing_queue' (#reqid 55235f77-596f-4038-a0b2-45fd3abac1a1)
codeproject-ai-server-cuda | Trace Client request 'recognize' in queue 'faceprocessing_queue' (#reqid dcdbbbd5-b39e-42d1-85a2-14d4b2bd1e63)
codeproject-ai-server-cuda | Debug Face Processing: Retrieved faceprocessing_queue command 'recognize'
codeproject-ai-server-cuda | Debug Face Processing: Retrieved faceprocessing_queue command 'recognize'
codeproject-ai-server-cuda | Error Face Processing: [FileNotFoundError] : Traceback (most recent call last):
codeproject-ai-server-cuda | File "/app/preinstalled-modules/FaceProcessing/intelligencelayer/face.py", line 207, in _init_models
codeproject-ai-server-cuda | self.faceclassifier = FaceRecognitionModel(model_path,
codeproject-ai-server-cuda | File "/app/preinstalled-modules/FaceProcessing/intelligencelayer/./recognition/process.py", line 28, in init
codeproject-ai-server-cuda | load_model(self.model, model_path)
codeproject-ai-server-cuda | File "/app/preinstalled-modules/FaceProcessing/intelligencelayer/./recognition/process.py", line 11, in load_model
codeproject-ai-server-cuda | checkpoint = torch.load(path, map_location=lambda storage, loc: storage, weights_only=True)
codeproject-ai-server-cuda | File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 771, in load
codeproject-ai-server-cuda | with _open_file_like(f, 'rb') as opened_file:
codeproject-ai-server-cuda | File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 270, in _open_file_like
codeproject-ai-server-cuda | return _open_file(name_or_buffer, mode)
codeproject-ai-server-cuda | File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 251, in init
codeproject-ai-server-cuda | super(_open_file, self).init(open(name, mode))
codeproject-ai-server-cuda | FileNotFoundError: [Errno 2] No such file or directory: '/app/preinstalled-modules/FaceProcessing/assets/facerec-high.model'
codeproject-ai-server-cuda | Error Face Processing: Unable to load the face detector
codeproject-ai-server-cuda | Infor Response rec'd from Face Processing command 'recognize' (#reqid 55235f77-596f-4038-a0b2-45fd3abac1a1) ['Unable to load the face detector']
codeproject-ai-server-cuda | Error Face Processing: [FileNotFoundError] : Traceback (most recent call last):
codeproject-ai-server-cuda | File "/app/preinstalled-modules/FaceProcessing/intelligencelayer/face.py", line 207, in _init_models
codeproject-ai-server-cuda | self.faceclassifier = FaceRecognitionModel(model_path,
codeproject-ai-server-cuda | File "/app/preinstalled-modules/FaceProcessing/intelligencelayer/./recognition/process.py", line 28, in init
codeproject-ai-server-cuda | load_model(self.model, model_path)
codeproject-ai-server-cuda | File "/app/preinstalled-modules/FaceProcessing/intelligencelayer/./recognition/process.py", line 11, in load_model
codeproject-ai-server-cuda | checkpoint = torch.load(path, map_location=lambda storage, loc: storage, weights_only=True)
codeproject-ai-server-cuda | File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 771, in load
codeproject-ai-server-cuda | with _open_file_like(f, 'rb') as opened_file:
codeproject-ai-server-cuda | File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 270, in _open_file_like
codeproject-ai-server-cuda | return _open_file(name_or_buffer, mode)
codeproject-ai-server-cuda | File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 251, in init
codeproject-ai-server-cuda | super(_open_file, self).init(open(name, mode))
codeproject-ai-server-cuda | FileNotFoundError: [Errno 2] No such file or directory: '/app/preinstalled-modules/FaceProcessing/assets/facerec-high.model'
codeproject-ai-server-cuda | Error Face Processing: Unable to load the face detector
codeproject-ai-server-cuda | Infor Response rec'd from Face Processing command 'recognize' (#reqid dcdbbbd5-b39e-42d1-85a2-14d4b2bd1e63) ['Unable to load the face detector']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions