Spaces:
Build error
Build error
Commit ·
f19c29f
1
Parent(s): ec39d50
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ effnetb2.load_state_dict(
|
|
| 30 |
|
| 31 |
def normalize_2d(matrix):
|
| 32 |
# Only this is changed to use 2-norm put 2 instead of 1
|
| 33 |
-
norm = np.linalg.norm(matrix
|
| 34 |
# normalized matrix
|
| 35 |
matrix = matrix/norm
|
| 36 |
return matrix
|
|
|
|
| 30 |
|
| 31 |
def normalize_2d(matrix):
|
| 32 |
# Only this is changed to use 2-norm put 2 instead of 1
|
| 33 |
+
norm = np.linalg.norm(matrix)
|
| 34 |
# normalized matrix
|
| 35 |
matrix = matrix/norm
|
| 36 |
return matrix
|