dengdan / seglink

An Implementation of the seglink alogrithm in paper Detecting Oriented Text in Natural Images by Linking Segments
GNU General Public License v3.0
495 stars 178 forks source link

TypeError: not all arguments converted during string formatting #25

Open wanghuok opened 7 years ago

wanghuok commented 7 years ago

Hi. I want to test the pretrained model on my image. when i run'./scripts/test.sh 0 model/model.ckpt-217867 /home/wh/work/jyh_dataset/testimage', i get this error: Traceback (most recent call last): File "/usr/lib/python2.7/logging/init.py", line 861, in emit msg = self.format(record) File "/usr/lib/python2.7/logging/init.py", line 734, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 465, in format record.message = record.getMessage() File "/usr/lib/python2.7/logging/init.py", line 329, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting

os: ubuntu 16.04 python:2.7 opencv:3.3.0 tensorflow-gpu 1.4.0

wanghuok commented 7 years ago

Whole error message: ./scripts/test.sh 0 model/model.ckpt-217867 /home/wh/work/jyh_dataset/test ++ set -e ++ export CUDA_VISIBLE_DEVICES=0 ++ CUDA_VISIBLE_DEVICES=0 ++ CHECKPOINT_PATH=model/model.ckpt-217867 ++ DATASET_DIR=/home/wh/work/jyh_dataset/test ++ python test_seglink.py --checkpoint_path=model/model.ckpt-217867 --gpu_memory_fraction=-1 --seg_conf_threshold=0.8 --link_conf_threshold=0.5 --dataset_dir=/home/wh/work/jyh_dataset/test Traceback (most recent call last): File "/usr/lib/python2.7/logging/init.py", line 861, in emit msg = self.format(record) File "/usr/lib/python2.7/logging/init.py", line 734, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 465, in format record.message = record.getMessage() File "/usr/lib/python2.7/logging/init.py", line 329, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Logged from file tf_logging.py, line 82

rebotnix commented 6 years ago

Have the same error wanghuok..do you find a solution?

Jeep-Z commented 6 years ago

@wanghuok @garybruckheimer I got the same problem. Do you guys figure it out?

soumyadip1997 commented 5 years ago

Just look at the solution in #22 . It states the error is minor and wont stop the algo from running