Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit dsize order #6172

Merged
merged 1 commit into from Apr 23, 2023
Merged

Conversation

tom2002965
Copy link
Contributor

I found it would raise error if the width and height of model are different.

The dsize is opposite.

2023-04-20 08:50:25.333558278  Traceback (most recent call last):                                                                                                                     [19/1834]2023-04-20 08:50:25.333599259    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2023-04-20 08:50:25.333600541      self.run()
2023-04-20 08:50:25.333610069    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2023-04-20 08:50:25.333611196      self._target(*self._args, **self._kwargs)
2023-04-20 08:50:25.333623317    File "/opt/frigate/frigate/video.py", line 479, in track_camera
2023-04-20 08:50:25.333624200      process_frames(
2023-04-20 08:50:25.333634196    File "/opt/frigate/frigate/video.py", line 723, in process_frames
2023-04-20 08:50:25.333635026      detect(
2023-04-20 08:50:25.333645250    File "/opt/frigate/frigate/video.py", line 545, in detect
2023-04-20 08:50:25.333646195      region_detections = object_detector.detect(tensor_input)
2023-04-20 08:50:25.333656037    File "/opt/frigate/frigate/object_detection.py", line 208, in detect
2023-04-20 08:50:25.333657028      self.np_shm[:] = tensor_input[:]
2023-04-20 08:50:25.333676033  ValueError: could not broadcast input array from shape (1,288,512,3) into shape (1,512,288,3)

Reszie

dsize could be (width, height).
@netlify
Copy link

netlify bot commented Apr 20, 2023

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit 6b40a4e
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/6441018d3e49460008604296
😎 Deploy Preview https://deploy-preview-6172--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@blakeblackshear blakeblackshear merged commit 366c312 into blakeblackshear:dev Apr 23, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants