hysts HF staff commited on
Commit
d25c07c
1 Parent(s): 7fd17d1
Files changed (1) hide show
  1. model.py +3 -1
model.py CHANGED
@@ -23,7 +23,9 @@ import numpy as np
23
  import torch
24
  import torch.nn as nn
25
 
26
- sys.path.insert(0, 'CBNetV2/')
 
 
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