Giter Club home page Giter Club logo

Comments (7)

Real-YeJ avatar Real-YeJ commented on July 28, 2024

@tadam98 path error

from textfusenet.

tadam98 avatar tadam98 commented on July 28, 2024

The problem is in the code. the --input processed in row 112 of icdar2015_detection.py (and the others)
test_images_path = args.input
sets test_images_path to a list. not a string. while glob.glob requires a string. and this is the reported error.
for i in glob.glob(test_images_path):
Changed so that i runs on test_images_path and then another for on the glob.glob of i.

Can you send me a sample command line that would take an image called 1.jpg from a ./images folder?

from textfusenet.

ying09 avatar ying09 commented on July 28, 2024

The problem is in the code. the --input processed in row 112 of icdar2015_detection.py (and the others)
test_images_path = args.input
sets test_images_path to a list. not a string. while glob.glob requires a string. and this is the reported error.
for i in glob.glob(test_images_path):
Changed so that i runs on test_images_path and then another for on the glob.glob of i.

Can you send me a sample command line that would take an image called 1.jpg from a ./images folder?

@tadam98 Hi, the argument of '--input' is the folder of test images. We have modified the default and help of '--input'.

from textfusenet.

tadam98 avatar tadam98 commented on July 28, 2024

It does not solve the error because test_images_path is of type list and glob.glob does not support it. (regardless of whatever one places after the --input parameter)

TypeError: expected str, bytes or os.PathLike object, not list

from textfusenet.

sonnguyenasu avatar sonnguyenasu commented on July 28, 2024

It does not solve the error because test_images_path is of type list and glob.glob does not support it. (regardless of whatever one places after the --input parameter)

TypeError: expected str, bytes or os.PathLike object, not list

Yeah, I encountered this problem too. I simply put test_images_path = args.input[0], then the problem was solved

from textfusenet.

tadam98 avatar tadam98 commented on July 28, 2024

that works too. I made another fix. All I was trying to say is that the code as it is does not work.

from textfusenet.

ying09 avatar ying09 commented on July 28, 2024

Hi all. The argument of '--input' should be set to "./input_images/*.jpg". We have modified the default of '--input'.

from textfusenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.