Skip to content

Commit aa3876b

Browse files
committed
fix some dependecies after moving files to folders
1 parent 0471e80 commit aa3876b

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ My platform is like this:
2626
## get start
2727
With a pretrained weight, you can run inference on an single image like this:
2828
```
29-
$ python tools/demo.py --model bisenetv2 --weight-path /path/to/your/weights.pth --img-path ./example.jpg
29+
$ python tools/demo.py --model bisenetv2 --weight-path /path/to/your/weights.pth --img-path ./example.png
3030
```
3131
This would run inference on the image and save the result image to `./res.jpg`.
3232

datasets/cityscapes/gtFine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/data1/zzy/datasets/cityscapes/gtFine/
1+
/data2/zzy/.datasets/cityscapes/gtFine/

datasets/cityscapes/leftImg8bit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/data1/zzy/datasets/cityscapes/leftImg8bit/
1+
/data2/zzy/.datasets/cityscapes/leftImg8bit/

lib/base_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import cv2
1212
import numpy as np
1313

14-
import transform_cv2 as T
15-
from sampler import RepeatedDistSampler
14+
import lib.transform_cv2 as T
15+
from lib.sampler import RepeatedDistSampler
1616

1717

1818

tools/__init__.py

Whitespace-only changes.

tools/demo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
import sys
3+
sys.path.insert(0, '.')
24
import argparse
35
import torch
46
import torch.nn as nn

tools/evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- encoding: utf-8 -*-
33

44
import sys
5-
sys.path.insert(0, './lib')
5+
sys.path.insert(0, '.')
66
import os
77
import os.path as osp
88
import logging

tools/train.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- encoding: utf-8 -*-
33

44
import sys
5-
sys.path.insert(0, './lib')
5+
sys.path.insert(0, '.')
66
import os
77
import os.path as osp
88
import random
@@ -20,7 +20,7 @@
2020
from lib.models import model_factory
2121
from configs import cfg_factory
2222
from lib.cityscapes_cv2 import get_data_loader
23-
from evaluate import eval_model
23+
from tools.evaluate import eval_model
2424
from lib.ohem_ce_loss import OhemCELoss
2525
from lib.lr_scheduler import WarmupPolyLrScheduler
2626
from lib.meters import TimeMeter, AvgMeter

tools/train_amp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- encoding: utf-8 -*-
33

44
import sys
5-
sys.path.insert(0, './lib')
5+
sys.path.insert(0, '.')
66
import os
77
import os.path as osp
88
import random

0 commit comments

Comments
 (0)