Spaces:
Sleeping
Sleeping
🧑💻 [Update] type hint of yolo
Browse files- yolo/model/yolo.py +1 -2
yolo/model/yolo.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
from typing import Any, Dict, List, Union
|
| 2 |
|
| 3 |
-
import torch
|
| 4 |
import torch.nn as nn
|
| 5 |
from loguru import logger
|
| 6 |
from omegaconf import OmegaConf
|
|
@@ -17,7 +16,7 @@ class YOLO(nn.Module):
|
|
| 17 |
parameters, and any other relevant configuration details.
|
| 18 |
"""
|
| 19 |
|
| 20 |
-
def __init__(self, model_cfg:
|
| 21 |
super(YOLO, self).__init__()
|
| 22 |
self.nc = model_cfg["nc"]
|
| 23 |
self.layer_map = get_layer_map() # Get the map Dict[str: Module]
|
|
|
|
| 1 |
from typing import Any, Dict, List, Union
|
| 2 |
|
|
|
|
| 3 |
import torch.nn as nn
|
| 4 |
from loguru import logger
|
| 5 |
from omegaconf import OmegaConf
|
|
|
|
| 16 |
parameters, and any other relevant configuration details.
|
| 17 |
"""
|
| 18 |
|
| 19 |
+
def __init__(self, model_cfg: Model):
|
| 20 |
super(YOLO, self).__init__()
|
| 21 |
self.nc = model_cfg["nc"]
|
| 22 |
self.layer_map = get_layer_map() # Get the map Dict[str: Module]
|