Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -0
src/streamlit_app.py
CHANGED
|
@@ -15,6 +15,7 @@ import ultralytics.nn.modules.conv
|
|
| 15 |
import torch.nn.modules.container
|
| 16 |
import torch.nn.modules.conv
|
| 17 |
import torch.nn.modules.activation
|
|
|
|
| 18 |
from ultralytics import YOLO
|
| 19 |
|
| 20 |
# ===================== DEVICE =====================
|
|
@@ -84,6 +85,7 @@ def load_yolo_model_hf():
|
|
| 84 |
torch.nn.modules.container.Sequential,
|
| 85 |
torch.nn.modules.conv.Conv2d,
|
| 86 |
torch.nn.modules.activation.SiLU,
|
|
|
|
| 87 |
])
|
| 88 |
|
| 89 |
model = YOLO(path)
|
|
|
|
| 15 |
import torch.nn.modules.container
|
| 16 |
import torch.nn.modules.conv
|
| 17 |
import torch.nn.modules.activation
|
| 18 |
+
import torch.nn.modules.batchnorm
|
| 19 |
from ultralytics import YOLO
|
| 20 |
|
| 21 |
# ===================== DEVICE =====================
|
|
|
|
| 85 |
torch.nn.modules.container.Sequential,
|
| 86 |
torch.nn.modules.conv.Conv2d,
|
| 87 |
torch.nn.modules.activation.SiLU,
|
| 88 |
+
torch.nn.modules.batchnorm.BatchNorm2d,
|
| 89 |
])
|
| 90 |
|
| 91 |
model = YOLO(path)
|