├── LICENSE ├── README.md └── Update_2024 ├── S07 - YOLO Pre-Trained Object Detection from Image └── 7.3 - Error - invalid index to scalar variable.txt ├── S12 - YOLOv4 Custom Training Phase 1 – Preparing Darknet └── 12.1 - Darknet Yolo v4 Weights and Config Download Links.txt ├── S14 - YOLOv4 Custom Training Phase 2 - Image Labelling └── 14.1 - Installing LabelImg- The Easy Way.pdf ├── S20 - YOLOv4 Custom Training Phase 5 - Finalizing Training ├── 20.1 - N.B. - The Output log from colab may seem not progressing. But don't worry.txt └── 20.2 - N.B. - Error - Saving Weights file to backup folder during training.pdf ├── S26 - Other Sample Real-World Case Studies └── 26.1 - Python code change for a 3 objects sample.txt └── Source Code and Files Attached ├── ALL SOURCE CODE AND FILES ATTACHED.txt └── custom_cov_model folder with colab notebook file shared link.txt /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Packt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | # Computer-Vision-YOLO-Custom-Object-Detection-with-Colab-GPU 5 | Computer Vision: YOLO Custom Object Detection with Colab GPU [Video], Published by Packt 6 | -------------------------------------------------------------------------------- /Update_2024/S07 - YOLO Pre-Trained Object Detection from Image/7.3 - Error - invalid index to scalar variable.txt: -------------------------------------------------------------------------------- 1 | If you are getting Error: invalid index to scalar variable 2 | 3 | Please try the following 4 | 5 | use the modified line: 6 | 7 | yolo_output_layer = [yolo_layers[yolo_layer - 1] for yolo_layer in yolo_model.getUnconnectedOutLayers()] 8 | 9 | instead of  the old line: 10 | 11 | yolo_output_layer = [yolo_layers[yolo_layer[0] - 1] for yolo_layer in yolo_model.getUnconnectedOutLayers()] 12 | 13 | In the latest version getUnconnectedOutLayers() returns an integer, which is not iterate-able 14 | 15 | Also in the line in YOLO NMS excersise 16 | 17 | for max_valueid in max_value_ids: 18 | max_class_id = max_valueid 19 | 20 | Instead of the old one 21 | 22 | for max_valueid in max_value_ids: 23 | max_class_id = max_valueid[0] -------------------------------------------------------------------------------- /Update_2024/S12 - YOLOv4 Custom Training Phase 1 – Preparing Darknet/12.1 - Darknet Yolo v4 Weights and Config Download Links.txt: -------------------------------------------------------------------------------- 1 | Training Weights File: 2 | 3 | https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.conv.137 4 | 5 | OR https://drive.google.com/open?id=1JKF-bdIklxOOVy-2Cr5qdvjgGpmGfcbp 6 | 7 | Testing Weights File: 8 | 9 | https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights 10 | 11 | OR https://drive.google.com/open?id=1cewMfusmPjYWbrnuJRuKhPMwRe_b9PaT 12 | 13 | -------------------------------------------------------------------------------- /Update_2024/S14 - YOLOv4 Custom Training Phase 2 - Image Labelling/14.1 - Installing LabelImg- The Easy Way.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Computer-Vision-YOLO-Custom-Object-Detection-with-Colab-GPU-/afa48838666ac7b7909055ad23a7b588e4391c5c/Update_2024/S14 - YOLOv4 Custom Training Phase 2 - Image Labelling/14.1 - Installing LabelImg- The Easy Way.pdf -------------------------------------------------------------------------------- /Update_2024/S20 - YOLOv4 Custom Training Phase 5 - Finalizing Training/20.1 - N.B. - The Output log from colab may seem not progressing. But don't worry.txt: -------------------------------------------------------------------------------- 1 | Most often, the text output from colab server will not stream to browser after some while. This will make a feel that the process is 'stuck' and not going on. 2 | 3 | But most times, its working in the colab server. And after the reported time (3 hours approximately) the google drive will have the model generated. 4 | 5 | You may try keeping the browser open without disconnecting internet. The display may not give you logs running in the screen, but it could be working in the background. -------------------------------------------------------------------------------- /Update_2024/S20 - YOLOv4 Custom Training Phase 5 - Finalizing Training/20.2 - N.B. - Error - Saving Weights file to backup folder during training.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Computer-Vision-YOLO-Custom-Object-Detection-with-Colab-GPU-/afa48838666ac7b7909055ad23a7b588e4391c5c/Update_2024/S20 - YOLOv4 Custom Training Phase 5 - Finalizing Training/20.2 - N.B. - Error - Saving Weights file to backup folder during training.pdf -------------------------------------------------------------------------------- /Update_2024/S26 - Other Sample Real-World Case Studies/26.1 - Python code change for a 3 objects sample.txt: -------------------------------------------------------------------------------- 1 | # three labels label 2 | class_labels = ["coronavirus", "fluvirus", "bacteria"] 3 | 4 | #Declare three colors 5 | class_colors = ["0,255,0", "255,0,0", "0,0,255"] 6 | ........ 7 | ........ 8 | class_colors = np.tile(class_colors,(3,1)) -------------------------------------------------------------------------------- /Update_2024/Source Code and Files Attached/ALL SOURCE CODE AND FILES ATTACHED.txt: -------------------------------------------------------------------------------- 1 | Please download source code and all the files we use in this course from the link 2 | 3 | https://drive.google.com/drive/folders/1DzbzBBPj7EFyQhnrtaLLpOIx0N9P5iVH?usp=sharing -------------------------------------------------------------------------------- /Update_2024/Source Code and Files Attached/custom_cov_model folder with colab notebook file shared link.txt: -------------------------------------------------------------------------------- 1 | The custom_cov_model folder that we used in this course along with the colab notebook 2 | 3 | https://drive.google.com/drive/folders/1D75YgVBHVWGE0a6Oni8kElxk4AOQ1lN-?usp=share_link 4 | 5 | The trained weights folder cov_weights 6 | 7 | https://drive.google.com/drive/folders/1ifCY7Zzm452Y57pnnH7GBxcJdNaSYzWy?usp=share_link --------------------------------------------------------------------------------