Click here to Skip to main content
15,897,704 members

Comments by makios (Top 1 by date)

makios 14-Nov-21 7:51am View    
thank you so much,i added @jit(nopython=True) above def detect function ,but i have follwing error:

numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Untyped global name 'sum': Cannot determine Numba type of <class 'builtin_function_or_method'="">

File "Detector1.py", line 184:
def detect(self, img,):


total_num_layers = 1 + sum(self.scales)
^


This error may have been caused by the following argument(s):
- argument 0: Cannot determine Numba type of <class 'detector1.detector'="">