Title: ZeroDivisionError: float divmod() · Issue #8 · visualbuffer/copilot · GitHub
Open Graph Title: ZeroDivisionError: float divmod() · Issue #8 · visualbuffer/copilot
X Title: ZeroDivisionError: float divmod() · Issue #8 · visualbuffer/copilot
Description: Dear Author, When I run the last part of the code from frame import FRAME file_path = "./videos/nice_road.mp4"# <== Upload appropriate file video_out = "videos/output11.mov" frame = FRAME( ego_vehicle_offset = .0, # offset for self vehic...
Open Graph Description: Dear Author, When I run the last part of the code from frame import FRAME file_path = "./videos/nice_road.mp4"# <== Upload appropriate file video_out = "videos/output11.mov" frame = FRAME( ego_vehi...
X Description: Dear Author, When I run the last part of the code from frame import FRAME file_path = "./videos/nice_road.mp4"# <== Upload appropriate file video_out = "videos/output11.mov" ...
Opengraph URL: https://github.com/visualbuffer/copilot/issues/8
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ZeroDivisionError: float divmod()","articleBody":"Dear Author, \r\nWhen I run the last part of the code from frame import FRAME\r\n\r\nfile_path = \"./videos/nice_road.mp4\"# \u003c== Upload appropriate file \r\nvideo_out = \"videos/output11.mov\"\r\nframe = FRAME( \r\n ego_vehicle_offset = .0, # offset for self vehicle in frame\r\n yellow_lower = np.uint8([ 20, 50, 110]), # LOWER YELLOW HLS THRESHOLD\r\n yellow_upper = np.uint8([35, 255, 255]), # UPER YELLOW HLS THRESHOLD\r\n white_lower = np.uint8([ 0, 140, 0]), # LOWER WHITE THRESHOLD\r\n white_upper = np.uint8([180, 255, 100]), # UPPER WHITE THRESHOLD\r\n lum_factor = 110, # NORMALIZING LUM FACTOR\r\n max_gap_th = 0.45, # MAX GAP THRESHOLD\r\n YOLO_PERIOD = 2, # YOLO PERIOD\r\n lane_start=[0.2,0.5] , # LANE INITIATION\r\n verbose = 3) # VERBOSITY\r\nframe.process_video(file_path, 2,video_out = video_out,pers_frame_time =398, t0 =398 , t1 =698)#None) , I am getting the following error: \"ZeroDivisionError Traceback (most recent call last)\r\n[\u003cipython-input-9-c3f36ea8d444\u003e](https://localhost:8080/#) in \u003cmodule\u003e()\r\n 14 lane_start=[0.2,0.5] , # LANE INITIATION\r\n 15 verbose = 3) # VERBOSITY\r\n---\u003e 16 frame.process_video(file_path, 2,video_out = video_out,pers_frame_time =398, t0 =398 , t1 =698)#None)\r\n\r\n[/content/drive/MyDrive/copilot/frame.py](https://localhost:8080/#) in process_video(self, file_path, fps_factor, video_out, pers_frame_time, t0, t1)\r\n 232 frame_h_out = int(frame_h*(1-self.ego_vehicle_offset))\r\n 233 print(\"{:s} WIDTH {:d} HEIGHT {:d} FPS {:.2f} DUR {:.1f} s\".format(\\\r\n--\u003e 234 file_path,frame_w,frame_h,fps_actual,nb_frames//fps_actual\r\n 235 ))\r\n 236 \r\n\r\nZeroDivisionError: float divmod()\". Kindly help me out in the same.","author":{"url":"https://github.com/Ishan-10038","@type":"Person","name":"Ishan-10038"},"datePublished":"2022-03-15T10:39:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/8/copilot/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:64baf31d-233d-589e-6fe6-06d21bcc0482 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9488:E510E:84C84:AEC34:698D4122 |
| html-safe-nonce | 457cd7b16b3313e3730c473bf021c4e4c8e774520dadcab609596e9bd8159144 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDg4OkU1MTBFOjg0Qzg0OkFFQzM0OjY5OEQ0MTIyIiwidmlzaXRvcl9pZCI6IjExMTQxMTMyNzcxMDc3MTYzODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b3e855bbf991550d4ba6a9d49de465948d4bf16e48079db240249d124ec003ab |
| hovercard-subject-tag | issue:1169488810 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/visualbuffer/copilot/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ede5b2d337999818c65188149c0bafd16b7801e1030f1285065e1972b7da9425/visualbuffer/copilot/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ede5b2d337999818c65188149c0bafd16b7801e1030f1285065e1972b7da9425/visualbuffer/copilot/issues/8 |
| og:image:alt | Dear Author, When I run the last part of the code from frame import FRAME file_path = "./videos/nice_road.mp4"# <== Upload appropriate file video_out = "videos/output11.mov" frame = FRAME( ego_vehi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ishan-10038 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/visualbuffer/copilot git https://github.com/visualbuffer/copilot.git |
| octolytics-dimension-user_id | 47427911 |
| octolytics-dimension-user_login | visualbuffer |
| octolytics-dimension-repository_id | 186957487 |
| octolytics-dimension-repository_nwo | visualbuffer/copilot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 186957487 |
| octolytics-dimension-repository_network_root_nwo | visualbuffer/copilot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bc912d4349851e5f32c76bbb213754e40947d7a6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width