Closed chuanzhidong closed 6 years ago
python run_lfnet.py --in_dir=images --out_dir=outputs this one works very well
I tried the notebook codes in ipython. It works. Maybe it is because the jupyter notebook cannot import functions from other folder.
I solved this issue by changing cell 3: `LOCAL_PATH = '../' if LOCAL_PATH not in sys.path: sys.path.append(LOCAL_PATH) from common.tf_layer_utils import from datasets import from det_tools import from inference import MODEL_PATH = '../models/' if MODEL_PATH not in sys.path: sys.path.append(MODEL_PATH) COMMON_PATH = '../common/' if COMMON_PATH not in sys.path: sys.path.append(COMMON_PATH)
from io_utils import read_text from jupyter_utils import display_image_batch
to `LOCAL_PATH = '' if LOCAL_PATH not in sys.path: sys.path.append(LOCAL_PATH) from common.tf_layer_utils import from datasets import from det_tools import from inference import MODEL_PATH = 'models/' if MODEL_PATH not in sys.path: sys.path.append(MODEL_PATH) COMMON_PATH = 'common/' if COMMON_PATH not in sys.path: sys.path.append(COMMON_PATH)
from io_utils import read_text from jupyter_utils import display_image_batch
Change cell 5 accordingly. It will be fine.
NameError Traceback (most recent call last)