PSENet-Tensorflow icon indicating copy to clipboard operation
PSENet-Tensorflow copied to clipboard

ModuleNotFoundError: No module named 'util'

Open shreyastalole opened this issue 5 years ago • 1 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?!

shreyastalole avatar Dec 30 '19 08:12 shreyastalole

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

looput avatar Jan 01 '20 03:01 looput