¿Cómo instalo el servidor codeproject.ai en un iMac M1?

programación

[ad_1]

Seguí las instrucciones de instalación pero recibo muchos errores.

15:22:06:System:           macOS
15:22:06:Operating System: macOS (Darwin 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103)
15:22:06:CPUs:             Apple M1 (Apple)
15:22:06:                  1 CPU x 8 cores. 8 logical processors (Arm64)
15:22:06:GPU (Primary):    Apple Silicon (Apple)
15:22:06:System RAM:       16 GiB
15:22:06:Platform:         macOS-Arm64
15:22:06:BuildConfig:      Release
15:22:06:Execution Env:    Native
15:22:06:Runtime Env:      Production
15:22:06:.NET framework:   .NET 7.0.10
15:22:06:Default Python:   3.9
15:22:06:App DataDir:      /Library/Application Support/CodeProject/AI
15:22:06:Video adapter info:
15:22:06:  Apple M1:
15:22:06:    Driver Version
15:22:06:    Video Processor    Apple M1
15:22:06:STARTING CODEPROJECT.AI SERVER
15:22:06:RUNTIMES_PATH             = /Library/CodeProject.AI Server/2.5.1/runtimes
15:22:06:PREINSTALLED_MODULES_PATH = /Library/CodeProject.AI Server/2.5.1/preinstalled-modules
15:22:06:MODULES_PATH              = /Library/CodeProject.AI Server/2.5.1/modules
15:22:06:PYTHON_PATH               = /bin/macos/%PYTHON_NAME%/venv/bin/python3
15:22:06:Data Dir                  = /Library/Application Support/CodeProject/AI
15:22:06:Server version:   2.5.1
15:22:09:
15:22:09:Module 'Object Detection (YOLOv5 .NET)' 1.9.2 (ID: ObjectDetectionYOLOv5Net)
15:22:09:Valid:         True
15:22:09:Module Path:   <root>/modules/ObjectDetectionYOLOv5Net
15:22:09:AutoStart:     True
15:22:09:Queue:         objectdetection_queue
15:22:09:Runtime:       dotnet
15:22:09:Runtime Loc:   Shared
15:22:09:FilePath:      bin/ObjectDetectionYOLOv5Net.dll
15:22:09:Pre installed: False
15:22:09:Start pause:   1 sec
15:22:09:LogVerbosity:
15:22:09:Platforms:     all
15:22:09:GPU Libraries: installed if available
15:22:09:GPU Enabled:   enabled
15:22:09:Parallelism:   0
15:22:09:Accelerator:
15:22:09:Half Precis.:  enable
15:22:09:Environment Variables
15:22:09:CUSTOM_MODELS_DIR = <root>/modules/ObjectDetectionYOLOv5Net/custom-models
15:22:09:DYLD_LIBRARY_PATH = /opt/homebrew/lib
15:22:09:MODELS_DIR        = <root>/modules/ObjectDetectionYOLOv5Net/assets
15:22:09:MODEL_SIZE        = medium
15:22:09:
15:22:09:Started Object Detection (YOLOv5 .NET) module
15:22:09:ObjectDetectionYOLOv5Net.dll: Could not execute because the specified command or file was not found.
15:22:09:ObjectDetectionYOLOv5Net.dll: Possible reasons for this include:
15:22:09:ObjectDetectionYOLOv5Net.dll:   * You misspelled a built-in dotnet command.
15:22:09:ObjectDetectionYOLOv5Net.dll:   * You intended to execute a .NET program, but dotnet-/Library/CodeProject.AI Server/2.5.1/modules/ObjectDetectionYOLOv5Net/bin/ObjectDetectionYOLOv5Net.dll does not exist.
15:22:09:ObjectDetectionYOLOv5Net.dll:   * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
15:22:09:Module ObjectDetectionYOLOv5Net has shutdown
15:22:09:ObjectDetectionYOLOv5Net.dll: has exited
15:22:10:
15:22:10:Module 'Sound Classifier (TensorFlow)' 1.1.0 (ID: SoundClassifierTF)
15:22:10:Valid:         True
15:22:10:Module Path:   <root>/modules/SoundClassifierTF
15:22:10:AutoStart:     True
15:22:10:Queue:         soundclassifier_queue
15:22:10:Runtime:       python3.9
15:22:10:Runtime Loc:   Local
15:22:10:FilePath:      sound_classification_adapter.py
15:22:10:Pre installed: False
15:22:10:Start pause:   1 sec
15:22:10:LogVerbosity:
15:22:10:Platforms:     all
15:22:10:GPU Libraries: installed if available
15:22:10:GPU Enabled:   enabled
15:22:10:Parallelism:   1
15:22:10:Accelerator:
15:22:10:Half Precis.:  enable
15:22:10:Environment Variables
15:22:10:MODELS_DIR = <root>/modules/SoundClassifierTF/assets
15:22:10:
15:22:10:Error trying to start Sound Classifier (TensorFlow) (sound_classification_adapter.py)
15:22:10:Error is: An error occurred trying to start process '/Library/CodeProject.AI Server/2.5.1/modules/SoundClassifierTF/bin/macos/python39/venv/bin/python3' with working directory '/Library/CodeProject.AI Server/2.5.1/modules/SoundClassifierTF'. No such file or directory
15:22:10:   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, String installSummary)
15:22:10:Please check the CodeProject.AI installation completed successfully
15:22:10:
15:22:10:Module 'Face Processing' 1.10.0 (ID: FaceProcessing)
15:22:10:Valid:         True
15:22:10:Module Path:   <root>/modules/FaceProcessing
15:22:10:AutoStart:     True
15:22:10:Queue:         faceprocessing_queue
15:22:10:Runtime:       python3.8
15:22:10:Runtime Loc:   Shared
15:22:10:FilePath:      intelligencelayer/face.py
15:22:10:Pre installed: False
15:22:10:Start pause:   3 sec
15:22:10:LogVerbosity:
15:22:10:Platforms:     all,!raspberrypi,!jetson
15:22:10:GPU Libraries: installed if available
15:22:10:GPU Enabled:   enabled
15:22:10:Parallelism:   0
15:22:10:Accelerator:
15:22:10:Half Precis.:  enable
15:22:10:Environment Variables
15:22:10:APPDIR                      = <root>/modules/FaceProcessing/intelligencelayer
15:22:10:CPAI_HALF_PRECISION         = enable
15:22:10:DATA_DIR                    = /Library/Application Support/CodeProject/AI
15:22:10:MODE                        = MEDIUM
15:22:10:MODELS_DIR                  = <root>/modules/FaceProcessing/assets
15:22:10:PROFILE                     = desktop_gpu
15:22:10:PYTORCH_ENABLE_MPS_FALLBACK = 1
15:22:10:USE_CUDA                    = True
15:22:10:YOLOv5_AUTOINSTALL          = false
15:22:10:YOLOv5_VERBOSE              = false
15:22:10:
15:22:10:
15:22:10:Module 'Training for YoloV5 6.2' 1.6.0 (ID: TrainingObjectDetectionYOLOv5)
15:22:10:Valid:         True
15:22:10:Module Path:   <root>/modules/TrainingObjectDetectionYOLOv5
15:22:10:AutoStart:     True
15:22:10:Error trying to start Face Processing (intelligencelayer/face.py)
15:22:10:Error is: An error occurred trying to start process '/Library/CodeProject.AI Server/2.5.1/runtimes/bin/macos/python38/venv/bin/python3' with working directory '/Library/CodeProject.AI Server/2.5.1/modules/FaceProcessing'. No such file or directory
15:22:10:   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, String installSummary)
15:22:10:Please check the CodeProject.AI installation completed successfully
15:22:10:Queue:         TrainingObjectDetectionYOLOv5_queue
15:22:10:Runtime:       python3.8
15:22:10:Runtime Loc:   Local
15:22:10:FilePath:      TrainingObjectDetectionYOLOv5.py
15:22:10:Pre installed: False
15:22:10:Start pause:   1 sec
15:22:10:LogVerbosity:
15:22:10:Platforms:     all,!raspberrypi,!orangepi,!jetson
15:22:10:GPU Libraries: installed if available
15:22:10:GPU Enabled:   disabled
15:22:10:Parallelism:   2
15:22:10:Accelerator:
15:22:10:Half Precis.:  enable
15:22:10:Environment Variables
15:22:10:FIFTYONE_DATABASE_DIRNAME = fiftyone
15:22:10:YOLOv5_AUTOINSTALL        = false
15:22:10:YOLOv5_VERBOSE            = false
15:22:10:YOLO_DATASETS_DIRNAME     = datasets
15:22:10:YOLO_DATASET_ZOO_DIRNAME  = zoo
15:22:10:YOLO_MODELS_DIRNAME       = assets
15:22:10:YOLO_TRAINING_DIRNAME     = train
15:22:10:YOLO_WEIGHTS_DIRNAME      = weights
15:22:10:
15:22:10:
15:22:10:Module 'License Plate Reader' 2.9.0 (ID: ALPR)
15:22:10:Valid:         True
15:22:10:Module Path:   <root>/modules/ALPR
15:22:10:AutoStart:     True
15:22:10:Queue:         alpr_queue
15:22:10:Runtime:       python3.8
15:22:10:Runtime Loc:   Local
15:22:10:FilePath:      ALPR_adapter.py
15:22:10:Pre installed: False
15:22:10:Start pause:   3 sec
15:22:10:LogVerbosity:
15:22:10:Error trying to start Training for YoloV5 6.2 (TrainingObjectDetectionYOLOv5.py)
15:22:10:Error is: An error occurred trying to start process '/Library/CodeProject.AI Server/2.5.1/modules/TrainingObjectDetectionYOLOv5/bin/macos/python38/venv/bin/python3' with working directory '/Library/CodeProject.AI Server/2.5.1/modules/TrainingObjectDetectionYOLOv5'. No such file or directory
15:22:10:   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, String installSummary)
15:22:10:Please check the CodeProject.AI installation completed successfully
15:22:10:Platforms:     all
15:22:10:GPU Libraries: not installed
15:22:10:GPU Enabled:   disabled
15:22:10:Parallelism:   0
15:22:10:Accelerator:
15:22:10:Half Precis.:  enable
15:22:10:Environment Variables
15:22:10:AUTO_PLATE_ROTATE            = True
15:22:10:MIN_COMPUTE_CAPABILITY       = 7
15:22:10:MIN_CUDNN_VERSION            = 7
15:22:10:OCR_OPTIMAL_CHARACTER_HEIGHT = 60
15:22:10:OCR_OPTIMAL_CHARACTER_WIDTH  = 36
15:22:10:OCR_OPTIMIZATION             = True
15:22:10:PLATE_CONFIDENCE             = 0.7
15:22:10:PLATE_RESCALE_FACTOR         = 2
15:22:10:PLATE_ROTATE_DEG             = 0
15:22:10:
15:22:10:Error trying to start License Plate Reader (ALPR_adapter.py)
15:22:10:Error is: An error occurred trying to start process '/Library/CodeProject.AI Server/2.5.1/modules/ALPR/bin/macos/python38/venv/bin/python3' with working directory '/Library/CodeProject.AI Server/2.5.1/modules/ALPR'. No such file or directory
15:22:10:   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, String installSummary)
15:22:10:Please check the CodeProject.AI installation completed successfully
15:22:11:Server: This is the latest version
15:25:12:Update FaceProcessing. Setting AutoStart=true
15:25:12:Restarting Face Processing to apply settings change
15:25:12:FaceProcessing has left the building
15:25:12:
15:25:12:Module 'Face Processing' 1.10.0 (ID: FaceProcessing)
15:25:12:Valid:         True
15:25:12:Module Path:   <root>/modules/FaceProcessing
15:25:12:AutoStart:     True
15:25:12:Queue:         faceprocessing_queue
15:25:12:Runtime:       python3.8
15:25:12:Runtime Loc:   Shared
15:25:12:FilePath:      intelligencelayer/face.py
15:25:12:Pre installed: False
15:25:12:Start pause:   3 sec
15:25:12:LogVerbosity:
15:25:12:Platforms:     all,!raspberrypi,!jetson
15:25:12:GPU Libraries: installed if available
15:25:12:GPU Enabled:   enabled
15:25:12:Parallelism:   0
15:25:12:Accelerator:
15:25:12:Half Precis.:  enable
15:25:12:Environment Variables
15:25:12:APPDIR                      = <root>/modules/FaceProcessing/intelligencelayer
15:25:12:CPAI_HALF_PRECISION         = enable
15:25:12:DATA_DIR                    = /Library/Application Support/CodeProject/AI
15:25:12:MODE                        = MEDIUM
15:25:12:MODELS_DIR                  = <root>/modules/FaceProcessing/assets
15:25:12:PROFILE                     = desktop_gpu
15:25:12:PYTORCH_ENABLE_MPS_FALLBACK = 1
15:25:12:USE_CUDA                    = True
15:25:12:YOLOv5_AUTOINSTALL          = false
15:25:12:YOLOv5_VERBOSE              = false
15:25:12:
15:25:12:Error trying to start Face Processing (intelligencelayer/face.py)
15:25:12:Error is: An error occurred trying to start process '/Library/CodeProject.AI Server/2.5.1/runtimes/bin/macos/python38/venv/bin/python3' with working directory '/Library/CodeProject.AI Server/2.5.1/modules/FaceProcessing'. No such file or directory
15:25:12:   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, String installSummary)
15:25:12:Please check the CodeProject.AI installation completed successfully

Lo que he probado:

Instalé .NET, instalé XCode, instalé Visual Studio Code. Se cambió el LF en el script setup.sh a LF.

Intenté desinstalar todo y empezar de nuevo. Sin suerte.

Revisé la carpeta /Library/CodeProject.AI Server/2.5.1/runtimes y está vacía.

Solución 1

Por favor publique su pregunta en el Debates sobre CodeProject.AI[^] foro.

[ad_2]

コメント

Título y URL copiados