Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python3 compatibility #40

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
5 changes: 4 additions & 1 deletion src/config/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from kitti_squeezeSeg_config import kitti_squeezeSeg_config
try:
from kitti_squeezeSeg_config import kitti_squeezeSeg_config
except:
from config.kitti_squeezeSeg_config import kitti_squeezeSeg_config
6 changes: 5 additions & 1 deletion src/config/kitti_squeezeSeg_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

import numpy as np

from config import base_model_config
try:
from config import base_model_config
except:
from config.config import base_model_config


def kitti_squeezeSeg_config():
"""Specify the parameters to tune below."""
Expand Down
5 changes: 4 additions & 1 deletion src/imdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from kitti import kitti
try:
from kitti import kitti
except:
from imdb.kitti import kitti
5 changes: 4 additions & 1 deletion src/imdb/kitti.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
import numpy as np
import subprocess

from imdb import imdb
try:
from imdb import imdb
except:
from imdb.imdb import imdb

class kitti(imdb):
def __init__(self, image_set, data_path, mc):
Expand Down
5 changes: 4 additions & 1 deletion src/nets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from squeezeSeg import SqueezeSeg
try:
from squeezeSeg import SqueezeSeg
except:
from nets.squeezeSeg import SqueezeSeg