Algorithm Working Phase 2 but Failing in Final Phase

Algorithm Working Phase 2 but Failing in Final Phase  

  By: marwan.mabrouk on March 4, 2022, 12:40 p.m.

Did anyone face this issue of their Algorithm working on Phase 2 but Failing in Final Phase? if so what did you do ?

or can i get the stderr or the output of the error to see where the problem is ?

Re: Algorithm Working Phase 2 but Failing in Final Phase  

  By: coendevente on March 4, 2022, 1:08 p.m.

2022-03-04T12:34:44+00:00 YOLOv5 🚀 2022-3-4 torch 1.10.2+cu102 CPU 2022-03-04T12:34:44+00:00 2022-03-04T12:34:44+00:00 Fusing layers... 2022-03-04T12:34:44+00:00 Model Summary: 213 layers, 7012822 parameters, 0 gradients 2022-03-04T12:34:44+00:00 Adding AutoShape... 2022-03-04T12:47:33+00:00 0%| | 0/300 [00:00<?, ?it/s] 0%| | 1/300 [00:04<24:51, 4.99s/it] 1%| | 2/300 [00:09<22:16, 4.48s/it] 1%| | 3/300 [00:13<21:27, 4.33s/it] 1%|▏ | 4/300 [00:17<20:13, 4.10s/it] 2%|▏ | 5/300 [00:19<17:44, 3.61s/it] 2%|▏ | 6/300 [00:23<18:09, 3.71s/it] 2%|▏ | 7/300 [00:27<18:18, 3.75s/it] 3%|▎ | 8/300 [00:31<18:26, 3.79s/it] 3%|▎ | 9/300 [00:35<18:26, 3.80s/it] 3%|▎ | 10/300 [00:38<18:19, 3.79s/it] 4%|▎ | 11/300 [00:42<18:09, 3.77s/it] 4%|▍ | 12/300 [00:46<18:13, 3.80s/it] 4%|▍ | 13/300 [00:50<18:08, 3.79s/it] 5%|▍ | 14/300 [00:54<18:11, 3.82s/it] 5%|▌ | 15/300 [00:57<18:01, 3.80s/it] 5%|▌ | 16/300 [01:01<18:06, 3.83s/it] 6%|▌ | 17/300 [01:05<18:03, 3.83s/it] 6%|▌ | 18/300 [01:09<18:04, 3.84s/it] 6%|▋ | 19/300 [01:13<17:59, 3.84s/it] 7%|▋ | 20/300 [01:17<17:56, 3.85s/it] 7%|▋ | 21/300 [01:21<17:53, 3.85s/it] 7%|▋ | 22/300 [01:24<17:47, 3.84s/it] 8%|▊ | 23/300 [01:28<17:41, 3.83s/it] 8%|▊ | 24/300 [01:32<17:48, 3.87s/it] 8%|▊ | 25/300 [01:36<17:43, 3.87s/it] 9%|▊ | 26/300 [01:40<17:36, 3.85s/it] 9%|▉ | 27/300 [01:44<17:29, 3.85s/it] 9%|▉ | 28/300 [01:48<17:31, 3.87s/it] 10%|▉ | 29/300 [01:52<17:37, 3.90s/it] 10%|█ | 30/300 [01:55<17:24, 3.87s/it] 10%|█ | 31/300 [01:59<17:23, 3.88s/it] 11%|█ | 32/300 [02:03<17:27, 3.91s/it] 11%|█ | 33/300 [02:07<17:23, 3.91s/it] 11%|█▏ | 34/300 [02:11<17:06, 3.86s/it] 12%|█▏ | 35/300 [02:15<17:02, 3.86s/it] 12%|█▏ | 36/300 [02:18<16:44, 3.81s/it] 12%|█▏ | 37/300 [02:22<16:55, 3.86s/it] 13%|█▎ | 38/300 [02:26<17:02, 3.90s/it] 13%|█▎ | 39/300 [02:30<16:37, 3.82s/it] 13%|█▎ | 40/300 [02:34<16:52, 3.89s/it] 14%|█▎ | 41/300 [02:38<16:55, 3.92s/it] 14%|█▍ | 42/300 [02:42<16:46, 3.90s/it] 14%|█▍ | 43/300 [02:46<16:24, 3.83s/it] 15%|█▍ | 44/300 [02:49<16:04, 3.77s/it] 15%|█▌ | 45/300 [02:53<15:54, 3.74s/it] 15%|█▌ | 46/300 [02:57<15:51, 3.75s/it] 16%|█▌ | 47/300 [03:00<15:46, 3.74s/it] 16%|█▌ | 48/300 [03:04<15:42, 3.74s/it] 16%|█▋ | 49/300 [03:08<15:37, 3.74s/it] 17%|█▋ | 50/300 [03:12<15:29, 3.72s/it] 17%|█▋ | 51/300 [03:15<15:22, 3.70s/it] 17%|█▋ | 52/300 [03:19<15:14, 3.69s/it] 18%|█▊ | 53/300 [03:23<15:06, 3.67s/it] 18%|█▊ | 54/300 [03:26<15:03, 3.67s/it] 18%|█▊ | 55/300 [03:30<15:01, 3.68s/it] 19%|█▊ | 56/300 [03:34<15:05, 3.71s/it] 19%|█▉ | 57/300 [03:37<14:59, 3.70s/it] 19%|█▉ | 58/300 [03:41<14:52, 3.69s/it] 20%|█▉ | 59/300 [03:45<14:51, 3.70s/it] 20%|██ | 60/300 [03:48<14:39, 3.67s/it] 20%|██ | 61/300 [03:51<13:24, 3.36s/it] 21%|██ | 62/300 [03:54<12:55, 3.26s/it] 21%|██ | 63/300 [03:57<12:32, 3.18s/it] 21%|██▏ | 64/300 [04:00<12:12, 3.10s/it] 22%|██▏ | 65/300 [04:03<12:29, 3.19s/it] 22%|██▏ | 66/300 [04:07<12:45, 3.27s/it] 22%|██▏ | 67/300 [04:10<12:50, 3.31s/it] 23%|██▎ | 68/300 [04:13<12:43, 3.29s/it] 23%|██▎ | 69/300 [04:17<12:41, 3.30s/it] 23%|██▎ | 70/300 [04:20<12:39, 3.30s/it] 24%|██▎ | 71/300 [04:23<12:38, 3.31s/it] 24%|██▍ | 72/300 [04:27<12:34, 3.31s/it] 24%|██▍ | 73/300 [04:30<12:33, 3.32s/it] 25%|██▍ | 74/300 [04:33<12:30, 3.32s/it] 25%|██▌ | 75/300 [04:37<12:18, 3.28s/it] 25%|██▌ | 76/300 [04:40<12:26, 3.33s/it] 26%|██▌ | 77/300 [04:43<12:21, 3.32s/it] 26%|██▌ | 78/300 [04:46<11:59, 3.24s/it] 26%|██▋ | 79/300 [04:50<12:05, 3.28s/it] 27%|██▋ | 80/300 [04:53<12:01, 3.28s/it] 27%|██▋ | 81/300 [04:56<11:51, 3.25s/it] 27%|██▋ | 82/300 [04:59<11:46, 3.24s/it] 28%|██▊ | 83/300 [05:03<11:48, 3.27s/it] 28%|██▊ | 84/300 [05:06<11:47, 3.27s/it] 28%|██▊ | 85/300 [05:09<11:48, 3.29s/it] 29%|██▊ | 86/300 [05:13<11:45, 3.30s/it] 29%|██▉ | 87/300 [05:16<11:40, 3.29s/it] 29%|██▉ | 88/300 [05:19<11:37, 3.29s/it] 30%|██▉ | 89/300 [05:22<11:31, 3.28s/it] 30%|███ | 90/300 [05:26<11:20, 3.24s/it] 30%|███ | 91/300 [05:29<11:13, 3.22s/it] 31%|███ | 92/300 [05:32<11:06, 3.21s/it] 31%|███ | 93/300 [05:35<11:09, 3.23s/it] 31%|███▏ | 94/300 [05:39<11:07, 3.24s/it] 32%|███▏ | 95/300 [05:42<11:02, 3.23s/it] 32%|███▏ | 96/300 [05:45<10:59, 3.23s/it] 32%|███▏ | 97/300 [05:48<11:02, 3.27s/it] 33%|███▎ | 98/300 [05:52<10:59, 3.27s/it] 33%|███▎ | 99/300 [05:55<11:00, 3.28s/it] 33%|███▎ | 100/300 [05:58<10:55, 3.28s/it] 34%|███▎ | 101/300 [06:01<10:49, 3.27s/it] 34%|███▍ | 102/300 [06:05<10:51, 3.29s/it] 34%|███▍ | 103/300 [06:08<10:49, 3.30s/it] 35%|███▍ | 104/300 [06:11<10:48, 3.31s/it] 35%|███▌ | 105/300 [06:15<10:44, 3.31s/it] 35%|███▌ | 106/300 [06:18<10:41, 3.31s/it] 36%|███▌ | 107/300 [06:21<10:36, 3.30s/it] 36%|███▌ | 108/300 [06:25<10:35, 3.31s/it] 36%|███▋ | 109/300 [06:28<10:32, 3.31s/it] 37%|███▋ | 110/300 [06:31<10:26, 3.30s/it] 37%|███▋ | 111/300 [06:35<10:23, 3.30s/it] 37%|███▋ | 112/300 [06:38<10:22, 3.31s/it] 38%|███▊ | 113/300 [06:41<10:15, 3.29s/it] 38%|███▊ | 114/300 [06:44<10:10, 3.28s/it] 38%|███▊ | 115/300 [06:48<10:06, 3.28s/it] 39%|███▊ | 116/300 [06:51<09:59, 3.26s/it] 39%|███▉ | 117/300 [06:54<09:59, 3.27s/it] 39%|███▉ | 118/300 [06:57<09:52, 3.26s/it] 40%|███▉ | 119/300 [07:01<09:49, 3.26s/it] 40%|████ | 120/300 [07:04<09:50, 3.28s/it] 40%|████ | 121/300 [07:07<09:50, 3.30s/it] 41%|████ | 122/300 [07:11<09:44, 3.29s/it] 41%|████ | 123/300 [07:14<09:42, 3.29s/it] 41%|████▏ | 124/300 [07:17<09:38, 3.29s/it] 42%|████▏ | 125/300 [07:21<09:39, 3.31s/it] 42%|████▏ | 126/300 [07:24<09:32, 3.29s/it] 42%|████▏ | 127/300 [07:27<09:30, 3.30s/it] 43%|████▎ | 128/300 [07:30<09:26, 3.29s/it] 43%|████▎ | 129/300 [07:34<09:22, 3.29s/it] 43%|████▎ | 130/300 [07:37<09:24, 3.32s/it] 44%|████▎ | 131/300 [07:40<09:23, 3.33s/it] 44%|████▍ | 132/300 [07:44<09:15, 3.31s/it] 44%|████▍ | 133/300 [07:47<09:09, 3.29s/it] 45%|████▍ | 134/300 [07:50<09:04, 3.28s/it] 45%|████▌ | 135/300 [07:53<08:59, 3.27s/it] 45%|████▌ | 136/300 [07:57<09:00, 3.30s/it] 46%|████▌ | 137/300 [08:00<08:55, 3.28s/it] 46%|████▌ | 138/300 [08:03<08:54, 3.30s/it] 46%|████▋ | 139/300 [08:07<09:01, 3.36s/it] 47%|████▋ | 140/300 [08:10<08:53, 3.34s/it] 47%|████▋ | 141/300 [08:13<08:47, 3.32s/it] 47%|████▋ | 142/300 [08:17<08:40, 3.30s/it] 48%|████▊ | 143/300 [08:20<08:37, 3.30s/it] 48%|████▊ | 144/300 [08:23<08:30, 3.27s/it] 48%|████▊ | 145/300 [08:26<08:26, 3.27s/it] 49%|████▊ | 146/300 [08:30<08:20, 3.25s/it] 49%|████▉ | 147/300 [08:33<08:15, 3.24s/it] 49%|████▉ | 148/300 [08:36<08:08, 3.21s/it] 50%|████▉ | 149/300 [08:39<08:07, 3.23s/it] 50%|█████ | 150/300 [08:42<07:59, 3.19s/it] 50%|█████ | 151/300 [08:46<07:55, 3.19s/it] 51%|█████ | 152/300 [08:49<07:51, 3.19s/it] 51%|█████ | 153/300 [08:52<07:48, 3.18s/it] 51%|█████▏ | 154/300 [08:55<07:42, 3.17s/it] 52%|█████▏ | 155/300 [08:58<07:36, 3.15s/it] 52%|█████▏ | 156/300 [09:01<07:30, 3.13s/it] 52%|█████▏ | 157/300 [09:04<07:28, 3.13s/it] 53%|█████▎ | 158/300 [09:08<07:27, 3.15s/it] 53%|█████▎ | 159/300 [09:11<07:21, 3.13s/it] 53%|█████▎ | 160/300 [09:14<07:20, 3.15s/it] 54%|█████▎ | 161/300 [09:17<07:18, 3.15s/it] 54%|█████▍ | 162/300 [09:20<07:14, 3.15s/it] 54%|█████▍ | 163/300 [09:23<07:10, 3.15s/it] 55%|█████▍ | 164/300 [09:26<07:06, 3.14s/it] 55%|█████▌ | 165/300 [09:30<07:02, 3.13s/it] 55%|█████▌ | 166/300 [09:33<06:59, 3.13s/it] 56%|█████▌ | 167/300 [09:36<06:53, 3.11s/it] 56%|█████▌ | 168/300 [09:39<06:47, 3.09s/it] 56%|█████▋ | 169/300 [09:42<06:51, 3.14s/it] 57%|█████▋ | 170/300 [09:45<06:45, 3.12s/it] 57%|█████▋ | 171/300 [09:48<06:42, 3.12s/it] 57%|█████▋ | 172/300 [09:51<06:30, 3.05s/it] 58%|█████▊ | 173/300 [09:54<06:23, 3.02s/it] 58%|█████▊ | 174/300 [09:57<06:18, 3.00s/it] 58%|█████▊ | 175/300 [10:00<06:13, 2.98s/it] 59%|█████▊ | 176/300 [10:03<06:13, 3.01s/it] 59%|█████▉ | 177/300 [10:06<06:09, 3.01s/it] 59%|█████▉ | 178/300 [10:09<06:16, 3.09s/it] 60%|█████▉ | 179/300 [10:12<06:13, 3.09s/it] 60%|██████ | 180/300 [10:16<06:12, 3.11s/it] 60%|██████ | 181/300 [10:19<06:06, 3.08s/it] 61%|██████ | 182/300 [10:22<06:00, 3.06s/it] 61%|██████ | 183/300 [10:25<05:59, 3.07s/it] 61%|██████▏ | 184/300 [10:28<05:54, 3.06s/it] 62%|██████▏ | 185/300 [10:31<05:49, 3.04s/it] 62%|██████▏ | 186/300 [10:34<05:49, 3.07s/it] 62%|██████▏ | 187/300 [10:37<05:44, 3.05s/it] 63%|██████▎ | 188/300 [10:40<05:42, 3.06s/it] 63%|██████▎ | 189/300 [10:43<05:37, 3.04s/it] 63%|██████▎ | 190/300 [10:46<05:34, 3.04s/it] 64%|██████▎ | 191/300 [10:49<05:28, 3.02s/it] 64%|██████▍ | 192/300 [10:52<05:24, 3.01s/it] 64%|██████▍ | 193/300 [10:55<05:20, 3.00s/it] 65%|██████▍ | 194/300 [10:58<05:16, 2.99s/it] 65%|██████▌ | 195/300 [11:01<05:14, 2.99s/it] 65%|██████▌ | 196/300 [11:04<05:10, 2.98s/it] 66%|██████▌ | 197/300 [11:07<05:05, 2.97s/it] 66%|██████▌ | 198/300 [11:10<05:04, 2.98s/it] 66%|██████▋ | 199/300 [11:13<05:00, 2.98s/it] 67%|██████▋ | 200/300 [11:16<04:58, 2.98s/it] 67%|██████▋ | 201/300 [11:19<04:55, 2.98s/it] 67%|██████▋ | 202/300 [11:22<04:52, 2.99s/it] 68%|██████▊ | 203/300 [11:25<04:49, 2.98s/it] 68%|██████▊ | 204/300 [11:28<04:45, 2.97s/it] 68%|██████▊ | 205/300 [11:31<04:41, 2.97s/it] 69%|██████▊ | 206/300 [11:33<04:38, 2.96s/it] 69%|██████▉ | 207/300 [11:37<04:37, 2.99s/it] 69%|██████▉ | 208/300 [11:40<04:38, 3.02s/it] 70%|██████▉ | 209/300 [11:43<04:35, 3.03s/it] 70%|███████ | 210/300 [11:46<04:34, 3.05s/it] 70%|███████ | 211/300 [11:49<04:31, 3.06s/it] 71%|███████ | 212/300 [11:52<04:28, 3.06s/it] 71%|███████ | 213/300 [11:55<04:24, 3.04s/it] 71%|███████▏ | 214/300 [11:58<04:21, 3.04s/it] 72%|███████▏ | 215/300 [12:01<04:18, 3.04s/it] 72%|███████▏ | 216/300 [12:04<04:14, 3.03s/it] 72%|███████▏ | 217/300 [12:07<04:10, 3.02s/it] 73%|███████▎ | 218/300 [12:10<04:10, 3.05s/it] 73%|███████▎ | 219/300 [12:13<04:05, 3.04s/it] 73%|███████▎ | 220/300 [12:16<04:01, 3.02s/it] 74%|███████▎ | 221/300 [12:19<04:02, 3.07s/it] 74%|███████▍ | 222/300 [12:22<03:58, 3.05s/it] 74%|███████▍ | 223/300 [12:25<03:54, 3.05s/it] 75%|███████▍ | 224/300 [12:28<03:50, 3.04s/it] 75%|███████▌ | 225/300 [12:31<03:46, 3.03s/it] 75%|███████▌ | 226/300 [12:34<03:45, 3.05s/it] 76%|███████▌ | 227/300 [12:38<03:42, 3.05s/it] 76%|███████▌ | 228/300 [12:41<03:42, 3.09s/it] 76%|███████▋ | 229/300 [12:44<03:38, 3.08s/it] 77%|███████▋ | 230/300 [12:47<03:33, 3.05s/it] 77%|███████▋ | 230/300 [12:47<03:53, 3.34s/it] 2022-03-04T12:47:33+00:00 Traceback (most recent call last): 2022-03-04T12:47:33+00:00 File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main 2022-03-04T12:47:33+00:00 "__main__", mod_spec) 2022-03-04T12:47:33+00:00 File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code 2022-03-04T12:47:33+00:00 exec(code, run_globals) 2022-03-04T12:47:33+00:00 File "/opt/algorithm/process.py", line 200, in <module> 2022-03-04T12:47:33+00:00 airogs_algorithm().process() 2022-03-04T12:47:33+00:00 File "/home/algorithm/.local/lib/python3.7/site-packages/evalutils/evalutils.py", line 183, in process 2022-03-04T12:47:33+00:00 self.process_cases() 2022-03-04T12:47:33+00:00 File "/home/algorithm/.local/lib/python3.7/site-packages/evalutils/evalutils.py", line 191, in process_cases 2022-03-04T12:47:33+00:00 self._case_results.append(self.process_case(idx=idx, case=case)) 2022-03-04T12:47:33+00:00 File "/opt/algorithm/process.py", line 108, in process_case 2022-03-04T12:47:33+00:00 results.append(self.predict(input_image_array=input_image_array)) 2022-03-04T12:47:33+00:00 File "/opt/algorithm/process.py", line 147, in predict 2022-03-04T12:47:33+00:00 input_image_array = remove_bounds(input_image_array) 2022-03-04T12:47:33+00:00 File "/opt/algorithm/process.py", line 145, in remove_bounds 2022-03-04T12:47:33+00:00 return new_img 2022-03-04T12:47:33+00:00 UnboundLocalError: local variable 'new_img' referenced before assignment