maximuspowers commited on
Commit
ada8495
·
verified ·
1 Parent(s): b39f801

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import numpy as np
2
 
3
- # Patch np.sctypes for imgaug to work
4
  if not hasattr(np, 'sctypes'):
5
  np.sctypes = {
6
- "float": [np.float16, np.float32, np.float64]
 
7
  }
8
 
9
  # Now, import imgaug after patching
 
1
  import numpy as np
2
 
 
3
  if not hasattr(np, 'sctypes'):
4
  np.sctypes = {
5
+ "float": [np.float16, np.float32, np.float64],
6
+ "int": [np.int8, np.int16, np.int32, np.int64]
7
  }
8
 
9
  # Now, import imgaug after patching