Spaces:
Running
Running
Update
Browse files
model.py
CHANGED
|
@@ -23,7 +23,9 @@ import numpy as np
|
|
| 23 |
import torch
|
| 24 |
import torch.nn as nn
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
from mmdet.apis import inference_detector, init_detector
|
| 29 |
|
|
|
|
| 23 |
import torch
|
| 24 |
import torch.nn as nn
|
| 25 |
|
| 26 |
+
app_dir = pathlib.Path(__file__).parent
|
| 27 |
+
submodule_dir = app_dir / 'CBNetV2/'
|
| 28 |
+
sys.path.insert(0, submodule_dir.as_posix())
|
| 29 |
|
| 30 |
from mmdet.apis import inference_detector, init_detector
|
| 31 |
|