# \[deep-vision\] YOLONetwork function question

**URL:** <https://discourse.processing.org/t/deep-vision-yolonetwork-function-question/39013>\
**Category:** Libraries\
**Created:** [September 29, 2022, 8:48pm UTC](https://discourse.processing.org/t/deep-vision-yolonetwork-function-question/39013 "2022-09-29T20:48:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [September 29, 2022, 8:48pm UTC](https://discourse.processing.org/t/deep-vision-yolonetwork-function-question/39013/1 "2022-09-29T20:48:00Z")

</div>

1. library link : [GitHub - cansik/deep-vision-processing: Deep computer-vision algorithms for the Processing framework.](https://github.com/cansik/deep-vision-processing)

2. weight, cgf link : [fire-smoke-detect-yolov4/README\_EN.md at master · gengyanlei/fire-smoke-detect-yolov4 · GitHub](https://github.com/gengyanlei/fire-smoke-detect-yolov4/blob/master/readmes/README_EN.md)

Question.

Q1) public YOLONetwork(Path configPath, Path weightsPath, int width, int height)  
Do the width and height of the above function mean the width and size of the object?

Q2) yolov4-fire.cfg, yolov4-fire.weights  
The above two files are being processed with ‘processng’. However, it seems that it is not recognized as well as expected. Any reason?

```auto
  Path model = Paths.get(sketchPath("/data/yolov4-fire.cfg")).toAbsolutePath();
  Path weights = Paths.get(sketchPath("/data/yolov4-fire.weights")).toAbsolutePath();
  println(" model : " + model); println(" weights : " + weights);
  yolo = new YOLONetwork(model, weights, 256, 256);

```
