looput / PSENet-Tensorflow

TensorFlow implementation of PSENet text detector (Shape Robust Text Detection with Progressive Scale Expansion Networkt)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'util'

shreyastalole opened this issue · comments

import tensorflow as tf
import numpy as np
import util
import matplotlib.pyplot as plt 
import math
import argparse
import sys
sys.path.append('/demo/Mask_ap/models-master/research/')
import sys
sys.path.append('../')
from configuration import TRAIN_CONFIG
config=TRAIN_CONFIG

def ic15_cvt_to_tfrecords(output_file, data_path, gt_path):
    # write records to a tfrecords file
    writer = tf.python_io.TFRecordWriter(output_file)

    image_names = util.io.ls(data_path, '.jpg')  # [0:10];

image

Where is The Util file?!

You can try to run the script in the folder PSENet-Tensorflow-master, like python dataset/write.... The util is just in PSENet-Tensorflow-master