|
I am new to machine learning and stuff.
I wanted to do custom object detection in C# using webcam at runtime.
The thing is as per client request I did this through roboflow but client wanted fully offline due to no internet and data safety reasons since roboflow did not provide this feature, I looked into yolo. Although roboflow fulfilled object detection but offline feature meant I had to find some other way to do this. To try new method I downloaded small public dataset for balloons from roboflow in yolov5pytorch format. this dataset has blue and red balloons as classes.
Now I just needed to train this and implement it in C# Winform project.
I opened google collab yolov5 to train my dataset, I followed each step and after training I tested it on video in google collab and it was detecting red and blue balloons.
Now my question was how to implement this custom trained model in my C# code for object detection.
Since I have yolov5 custom trained model which tutorial to follow to implement this.
I tried to download yolov5 in onnx format and tried it with ml.net but did not understand,followed the tutorial where the guy was working with custom vision onnx model so followed each step which failed. I do not understand all depth of how it is working.
So now I am stuck with trained model in yolov5 in google colab. What steps should I follow or any tutorial link to integrate this in my c# project?
Also can I use this trained yolov5 model in python and intergrate python script in c#. Remember it has to detect at runtime and offline.
What I have tried:
Tried roboflow (no offline feature)
Trained custom dataset on google colab and downloaded onnx model of yolov5 and implement it in winform project with help of ml.net.
|
|
|
|
|
I don't have one of those new shiny arm64 Windows machines, but I do have an old M1 mac mini. Broadcom, the new owners of VMWare, make it insanely hard to find the VMWare Pro download, but given that VMWare now officially supports Windows on Arm, and provide a free version, it's worth the spelunking.
The server and dev setup are mostly smooth. There's a missing vs_redist that I had to manually install (will need to add that to the setup), but other than that all easy.
We have one fairly major issue with the .NET Object detection module failing to load due to what seems an old .NET bug that's marked as closed. I'll try and spend some time in the next few days hammering away at it.
And, obviously, if anyone has a spare shiny new arm64 Windows laptop they don't need...
cheers
Chris Maunder
|
|
|
|
|
I've installed CodeProject AI 2.6.4 on UBUNTU 22.04.4 LTS
The install went well
I cannot add the License Plate reader Module.
When i click on the install button, i get an error: Error in Install ALPR: 404
Any ideas?
|
|
|
|
|
I tried to install another module and this gave a 404 message, so it's not speicifc to the License Plate module. I tried the 'do not use download cache' option.
modified 21-May-24 1:43am.
|
|
|
|
|
Are you able to download the module manually?
(If you do manage to do that, you can unzip the ALPR zip into the /modules folder, then open a terminal into the ALPR folder and run bash ../../setup.sh to run the installer)
cheers
Chris Maunder
|
|
|
|
|
That worked perfectly!
|
|
|
|
|
I've been running the codeproject ai server with Blue Iris for many months without issue, but have recently reinstalled it after upgrading to a CUDA supported GPU. It's now completely broken and shuts down shortly after booting.
Here's the log error
2024-05-18 15:13:28: detect_adapter.py: Traceback (most recent call last):
2024-05-18 15:13:28: detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 12, in <module>
2024-05-18 15:13:28: detect_adapter.py: from request_data import RequestData
2024-05-18 15:13:28: detect_adapter.py: File "../../SDK/Python\request_data.py", line 8, in <module>
2024-05-18 15:13:28: detect_adapter.py: from PIL import Image
2024-05-18 15:13:28: detect_adapter.py: ModuleNotFoundError: No module named 'PIL'
I'm trying to use Object Detection (YOLOv5 6.2) since I have CUDA v11.8 on a GeForce GTX 1050 ti
How do I fix this error?
I should mention that the YOLOv5.NET isn't working either, and that both of these models aren't giving me the option of running them on the GPU.
|
|
|
|
|
Try uninstalling the modules then reinstall using Do not use download cache
|
|
|
|
|
Thanks for the reply Mike. I tried that and the model still shuts down and server restarts.
This error happens shortly before it goes offline
14:41:43:Object Detection (YOLOv5 6.2): [RuntimeError] : Traceback (most recent call last):
File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect.py", line 141, in do_detection
det = detector(img, size=640)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 705, in forward
y = self.model(x, augment=augment) # forward
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\yolov5\models\common.py", line 515, in forward
y = self.model(im, augment=augment, visualize=visualize) if augment or visualize else self.model(im)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 209, in forward
return self._forward_once(x, profile, visualize) # single-scale inference, train
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 121, in _forward_once
x = m(x) # run
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Lib\site-packages\yolov5\models\yolo.py", line 74, in forward
xy = (xy * 2 + self.grid[i]) * self.stride[i] # xy
RuntimeError: The size of tensor a (12) must match the size of tensor b (20) at non-singleton dimension 3
system info:
14:40:07:System: Windows
14:40:07:Operating System: Windows (Microsoft Windows 10.0.19045)
14:40:07:CPUs: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (Intel)
14:40:07: 1 CPU x 4 cores. 8 logical processors (x64)
14:40:07:GPU (Primary): NVIDIA GeForce GTX 1050 Ti (4 GiB) (NVIDIA)
14:40:07: Driver: 555.85, CUDA: 12.5 (up to: 12.5), Compute: 6.1, cuDNN: 9.1
14:40:07:System RAM: 16 GiB
14:40:07:Platform: Windows
14:40:07:BuildConfig: Release
14:40:07:Execution Env: Native
14:40:07:Runtime Env: Production
14:40:07:Runtimes installed:
14:40:07: .NET runtime: 7.0.10
14:40:07: .NET SDK: Not found
14:40:07: Default Python: Not found
14:40:07: Go: Not found
14:40:07: NodeJS: Not found
14:40:07: Rust: Not found
14:40:07:App DataDir: C:\ProgramData\CodeProject\AI
14:40:07:Video adapter info:
14:40:07: NVIDIA GeForce GTX 1050 Ti:
14:40:07: Driver Version 32.0.15.5585
14:40:07: Video Processor NVIDIA GeForce GTX 1050 Ti
14:40:07: Intel(R) HD Graphics 3000:
14:40:07: Driver Version 9.17.10.4459
14:40:07: Video Processor Intel(R) HD Graphics Family
Using YOLOv5 6.2 on GPU with CUDA
|
|
|
|
|
Try disabling Half Precison
|
|
|
|
|
2.6.4 Linux installer on Ubuntu 22.04 is not creating services. Only way I can get it to run is manually with start.sh.
Anyone able to shed light on manual service creation process so I don't need to keep a shell open and it starts at boot?
Thanks
|
|
|
|
|
Figured it out.
/etc/systemd/system/codeproject.ai-server.service had DOTNET_ROOT=/usr/lib64/dotnet, path on my Ubuntu 22.0.4 x64 system was actually /usr/lib/dotnet
Service is operating correctly now.
|
|
|
|
|
I had the same issue. After updating the service file, i needed to enable the service
sudo systemctl enable codeproject.ai-server.service
When i look at the service status i get the following:
~$ systemctl status codeproject.ai-server.service
May 21 13:19:04 nuc codeproject.ai-server[776]: Debug Current Version is 2.6.4
May 21 13:19:04 nuc codeproject.ai-server[776]: Infor *** Server: This is a new, unreleased version
May 21 13:19:07 nuc codeproject.ai-server[776]: Trace face.py: Vision AI services setup: Retrieving environment variables...
May 21 13:19:07 nuc codeproject.ai-server[776]: Debug face.py: APPDIR: /usr/bin/codeproject.ai-server-2.6.4/modules/FacePro>
May 21 13:19:07 nuc codeproject.ai-server[776]: Debug face.py: PROFILE: desktop_cpu
May 21 13:19:07 nuc codeproject.ai-server[776]: Debug face.py: USE_CUDA: False
May 21 13:19:07 nuc codeproject.ai-server[776]: Debug face.py: DATA_DIR: /etc/codeproject/ai
May 21 13:19:07 nuc codeproject.ai-server[776]: Debug face.py: MODELS_DIR: /usr/bin/codeproject.ai-server-2.6.4/modules/FacePro>
May 21 13:19:07 nuc codeproject.ai-server[776]: Debug face.py: MODE: MEDIUM
May 21 13:19:07 nuc codeproject.ai-server[776]: Trace face.py: Running init for Face Processing
Not sure why it states unreleased version?
|
|
|
|
|
Is there a command line to install the code project executable installer for windows silently?
Th goal would be to deploy the install without user prompts.
|
|
|
|
|
Thanks very much for your inquiry. The answer is, there is not a command line to install the CodeProject.AI Server executable installer for Windows silently that has been reliably tested yet. Something to consider for the future.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
My use case is that I want to see more details about the detection requests - parameters submitted, origin, etc. I got into CPAI because of Blue Iris but it's working far from how I expect it to work and I would like to understand more where the various requests are coming from, especially related to static object detection which is at best confusing.
|
|
|
|
|
Try the docs
Is there anything specific we can help with?
cheers
Chris Maunder
|
|
|
|
|
I get this when trying to install the Sound Classifier.
it does appear to work, but also have this in log:
08:47:54:SoundClassifierTF: C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\bin\windows\python39\venv\lib\site-packages\scipy\__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.26.4
08:47:54:SoundClassifierTF: warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
08:47:55:SoundClassifierTF: 2024-05-15 08:47:54.989982: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
08:47:57:SoundClassifierTF: WARNING:tensorflow:From C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\bin\windows\python39\venv\lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.
08:47:58:SoundClassifierTF: WARNING:tensorflow:From C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\sound_classification.py:15: The name tf.disable_v2_behavior is deprecated. Please use tf.compat.v1.disable_v2_behavior instead.
08:47:58:SoundClassifierTF: WARNING:tensorflow:From C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\bin\windows\python39\venv\lib\site-packages\tensorflow\python\compat\v2_compat.py:108: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
08:47:58:SoundClassifierTF: Instructions for updating:
08:47:58:SoundClassifierTF: non-resource variables are not supported in the long term
08:47:58:SoundClassifierTF: WARNING:tensorflow:From C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\sound_classification.py:16: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.
08:48:01:SoundClassifierTF: 2024-05-15 08:48:01.022855: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
08:48:01:SoundClassifierTF: To enable the following instructions: SSE SSE2 SSE3 SSE4.1 SSE4.2 AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
08:48:01:SoundClassifierTF: C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\bin\windows\python39\venv\lib\site-packages\tensorflow\python\keras\engine\base_layer_v1.py:1697: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer.__call__` method instead.
08:48:01:SoundClassifierTF: warnings.warn('`layer.apply` is deprecated and '
08:48:01:SoundClassifierTF: C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\bin\windows\python39\venv\lib\site-packages\tensorflow\python\keras\legacy_tf_layers\core.py:318: UserWarning: `tf.layers.flatten` is deprecated and will be removed in a future version. Please use `tf.keras.layers.Flatten` instead.
08:48:01:SoundClassifierTF: warnings.warn('`tf.layers.flatten` is deprecated and '
08:48:01:SoundClassifierTF: 2024-05-15 08:48:01.364607: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:388] MLIR V1 optimization pass is not enabled
08:48:02:SoundClassifierTF: C:\Program Files\CodeProject\AI\modules\SoundClassifierTF\bin\windows\python39\venv\lib\site-packages\tensorflow\python\keras\engine\base_layer_v1.py:1697: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer.__call__` method instead.
08:48:02:SoundClassifierTF: warnings.warn('`layer.apply` is deprecated and '
|
|
|
|
|
The sound classifier is a Tensorflow 1 project ported (semi-ported!) to Tensorflow 2. Those warnings are just warnings and can be safely ignored. It needs a proper rewriting.
cheers
Chris Maunder
|
|
|
|
|
Hello all, everytime i try to install any of the modules i get a Error in install:404
thought maybe it was a issue with my firewall that im using UFW. im running ubuntu server 24.04
not sure if there is more ports i need to open other then the port that code project uses 32168
Server version: 2.6.4
System: Linux
Operating System: Linux (Ubuntu 24.04)
CPUs: 12th Gen Intel(R) Core(TM) i7-12700K (Intel)
1 CPU x 12 cores. 20 logical processors (x64)
GPU (Primary): NVIDIA GeForce RTX 2060 (6 GiB) (NVIDIA)
Driver: 535.161.08, CUDA: 12.2 (up to: 12.2), Compute: 7.5, cuDNN:
System RAM: 31 GiB
Platform: Linux
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.18
.NET SDK: 7.0.118
Default Python: 3.12.3
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
TU104 [GeForce RTX 2060] (rev a1):
Driver Version
Video Processor
System GPU info:
GPU 3D Usage 10%
GPU RAM Usage 1.5 GiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
Try starting the server directly
sudo bash /usr/bin/codeproject.ai-server-2.6.4/start.sh
cheers
Chris Maunder
|
|
|
|
|
tryed starting codeproject from terminal and still get the same 404 errors
|
|
|
|
|
Ok, so i got
Training for YoloV5 6.2 to install via Agent DVR, but on the codeproject side i got a bunch of python errors
14:06:07:Started Training for YoloV5 6.2 module
14:06:10:training_objectdetection_YOLOv5_adapter.py: Initializing YoloV5DatasetCreator. Retries left: 3
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 200, in establish_db_conn
14:06:10:training_objectdetection_YOLOv5_adapter.py: _db_service = fos.DatabaseService()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 80, in __init__
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.start()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 209, in start
14:06:10:training_objectdetection_YOLOv5_adapter.py: super().start()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 118, in start
14:06:10:training_objectdetection_YOLOv5_adapter.py: + self.command,
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 238, in command
14:06:10:training_objectdetection_YOLOv5_adapter.py: DatabaseService.find_mongod(),
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 286, in find_mongod
14:06:10:training_objectdetection_YOLOv5_adapter.py: raise ServiceExecutableNotFound("Could not find `mongod`")
14:06:10:training_objectdetection_YOLOv5_adapter.py: fiftyone.core.service.ServiceExecutableNotFound: Could not find `mongod`
14:06:10:training_objectdetection_YOLOv5_adapter.py: During handling of the above exception, another exception occurred:
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 51, in init_fiftyone
14:06:10:training_objectdetection_YOLOv5_adapter.py: import fiftyone.zoo as foz
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/__init__.py", line 25, in
14:06:10:training_objectdetection_YOLOv5_adapter.py: from fiftyone.__public__ import *
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/__public__.py", line 16, in
14:06:10:training_objectdetection_YOLOv5_adapter.py: _foo.establish_db_conn(config)
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 206, in establish_db_conn
14:06:10:training_objectdetection_YOLOv5_adapter.py: raise FiftyOneConfigError(
14:06:10:training_objectdetection_YOLOv5_adapter.py: fiftyone.core.config.FiftyOneConfigError: MongoDB could not be installed on your system. Please define a `database_uri` in your `fiftyone.core.config.FiftyOneConfig` to connect to yourown MongoDB instance or cluster
14:06:10:training_objectdetection_YOLOv5_adapter.py: During handling of the above exception, another exception occurred:
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/training_objectdetection_YOLOv5_adapter.py", line 92, in initialise
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.dataset_creator = YoloV5DatasetCreator(self,
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 30, in __init__
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.init_fiftyone()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 54, in init_fiftyone
14:06:10:training_objectdetection_YOLOv5_adapter.py: shutil.rmtree(fiftyone_path)
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/lib/python3.8/shutil.py", line 709, in rmtree
14:06:10:training_objectdetection_YOLOv5_adapter.py: onerror(os.lstat, path, sys.exc_info())
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/lib/python3.8/shutil.py", line 707, in rmtree
14:06:10:training_objectdetection_YOLOv5_adapter.py: orig_st = os.lstat(path)
14:06:10:training_objectdetection_YOLOv5_adapter.py: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone'
14:06:10:training_objectdetection_YOLOv5_adapter.py: Initializing YoloV5DatasetCreator. Retries left: 2
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 200, in establish_db_conn
14:06:10:training_objectdetection_YOLOv5_adapter.py: _db_service = fos.DatabaseService()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 80, in __init__
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.start()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 209, in start
14:06:10:training_objectdetection_YOLOv5_adapter.py: super().start()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 118, in start
14:06:10:training_objectdetection_YOLOv5_adapter.py: + self.command,
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 238, in command
14:06:10:training_objectdetection_YOLOv5_adapter.py: DatabaseService.find_mongod(),
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 286, in find_mongod
14:06:10:training_objectdetection_YOLOv5_adapter.py: raise ServiceExecutableNotFound("Could not find `mongod`")
14:06:10:training_objectdetection_YOLOv5_adapter.py: fiftyone.core.service.ServiceExecutableNotFound: Could not find `mongod`
14:06:10:training_objectdetection_YOLOv5_adapter.py: During handling of the above exception, another exception occurred:
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 51, in init_fiftyone
14:06:10:training_objectdetection_YOLOv5_adapter.py: import fiftyone.zoo as foz
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/__init__.py", line 25, in
14:06:10:training_objectdetection_YOLOv5_adapter.py: from fiftyone.__public__ import *
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/__public__.py", line 16, in
14:06:10:training_objectdetection_YOLOv5_adapter.py: _foo.establish_db_conn(config)
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 206, in establish_db_conn
14:06:10:training_objectdetection_YOLOv5_adapter.py: raise FiftyOneConfigError(
14:06:10:training_objectdetection_YOLOv5_adapter.py: fiftyone.core.config.FiftyOneConfigError: MongoDB could not be installed on your system. Please define a `database_uri` in your `fiftyone.core.config.FiftyOneConfig` to connect to yourown MongoDB instance or cluster
14:06:10:training_objectdetection_YOLOv5_adapter.py: During handling of the above exception, another exception occurred:
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/training_objectdetection_YOLOv5_adapter.py", line 92, in initialise
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.dataset_creator = YoloV5DatasetCreator(self,
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 30, in __init__
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.init_fiftyone()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 54, in init_fiftyone
14:06:10:training_objectdetection_YOLOv5_adapter.py: shutil.rmtree(fiftyone_path)
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/lib/python3.8/shutil.py", line 709, in rmtree
14:06:10:training_objectdetection_YOLOv5_adapter.py: onerror(os.lstat, path, sys.exc_info())
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/lib/python3.8/shutil.py", line 707, in rmtree
14:06:10:training_objectdetection_YOLOv5_adapter.py: orig_st = os.lstat(path)
14:06:10:training_objectdetection_YOLOv5_adapter.py: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone'
14:06:10:training_objectdetection_YOLOv5_adapter.py: Initializing YoloV5DatasetCreator. Retries left: 1
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 200, in establish_db_conn
14:06:10:training_objectdetection_YOLOv5_adapter.py: _db_service = fos.DatabaseService()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 80, in __init__
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.start()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 209, in start
14:06:10:training_objectdetection_YOLOv5_adapter.py: super().start()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 118, in start
14:06:10:training_objectdetection_YOLOv5_adapter.py: + self.command,
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 238, in command
14:06:10:training_objectdetection_YOLOv5_adapter.py: DatabaseService.find_mongod(),
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/service.py", line 286, in find_mongod
14:06:10:training_objectdetection_YOLOv5_adapter.py: raise ServiceExecutableNotFound("Could not find `mongod`")
14:06:10:training_objectdetection_YOLOv5_adapter.py: fiftyone.core.service.ServiceExecutableNotFound: Could not find `mongod`
14:06:10:training_objectdetection_YOLOv5_adapter.py: During handling of the above exception, another exception occurred:
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 51, in init_fiftyone
14:06:10:training_objectdetection_YOLOv5_adapter.py: import fiftyone.zoo as foz
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/__init__.py", line 25, in
14:06:10:training_objectdetection_YOLOv5_adapter.py: from fiftyone.__public__ import *
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/__public__.py", line 16, in
14:06:10:training_objectdetection_YOLOv5_adapter.py: _foo.establish_db_conn(config)
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/bin/linux/python38/venv/lib/python3.8/site-packages/fiftyone/core/odm/database.py", line 206, in establish_db_conn
14:06:10:training_objectdetection_YOLOv5_adapter.py: raise FiftyOneConfigError(
14:06:10:training_objectdetection_YOLOv5_adapter.py: fiftyone.core.config.FiftyOneConfigError: MongoDB could not be installed on your system. Please define a `database_uri` in your `fiftyone.core.config.FiftyOneConfig` to connect to yourown MongoDB instance or cluster
14:06:10:training_objectdetection_YOLOv5_adapter.py: During handling of the above exception, another exception occurred:
14:06:10:training_objectdetection_YOLOv5_adapter.py: Traceback (most recent call last):
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/training_objectdetection_YOLOv5_adapter.py", line 92, in initialise
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.dataset_creator = YoloV5DatasetCreator(self,
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 30, in __init__
14:06:10:training_objectdetection_YOLOv5_adapter.py: self.init_fiftyone()
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone_dataset_creator.py", line 54, in init_fiftyone
14:06:10:training_objectdetection_YOLOv5_adapter.py: shutil.rmtree(fiftyone_path)
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/lib/python3.8/shutil.py", line 709, in rmtree
14:06:10:training_objectdetection_YOLOv5_adapter.py: onerror(os.lstat, path, sys.exc_info())
14:06:10:training_objectdetection_YOLOv5_adapter.py: File "/usr/lib/python3.8/shutil.py", line 707, in rmtree
14:06:10:training_objectdetection_YOLOv5_adapter.py: orig_st = os.lstat(path)
14:06:10:training_objectdetection_YOLOv5_adapter.py: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone'
14:06:10:training_objectdetection_YOLOv5_adapter.py: An exception occurred initialising the module: [Errno 2] No such file or directory: '/usr/bin/codeproject.ai-server-2.6.4/modules/TrainingObjectDetectionYOLOv5/fiftyone'
codeproject is installed on the same mechine that agent dvr is
|
|
|
|
|
Quote: Operating System: Linux (Ubuntu 24.04)
First: how is 24.04? I've not updated my system yet (waiting till August for RTM) but I'd be interested in your take.
Second, the error is that MongoDB can't be installed. I'm guessing this is related to 24.04 given the 24.04 release notes specifically state there will be app incompatibilities until full release in August.
cheers
Chris Maunder
|
|
|
|
|
Hello,
I have been having this issue where I do not get motion alert at night, even though AI detects a car in my driveway at over 90%, but then it says "nothing found" and I do not get an alert.
My son comes home at night around 2am, so I am able to test this very regularly.
This only happens at night. My driveway is very well lit and very clear. Some nights it works fine and other nights it's a complete miss.
Why would AI not send an alert if it sees a car at 93%, but other other times it will send it?
My CPU hovers around 8-10% with 8 cameras and I use sub streams. I also have 16 Gigs of ram.. so I doubt it's a system limitation.
Any ideas?
|
|
|
|
|