GithubHelp home page GithubHelp logo

Read image Error failed about examples HOT 9 OPEN

towhee-io avatar towhee-io commented on August 10, 2024
Read image Error failed

from examples.

Comments (9)

junjiejiangjjj avatar junjiejiangjjj commented on August 10, 2024 1

The pipeline running error will only throw exceptions but won't hang, so we need to check the cause of the hang

from examples.

junjiejiangjjj avatar junjiejiangjjj commented on August 10, 2024 1

https://towhee.io/data-source/csv-reader Here are some examples related to processing CSV and Batch

from examples.

junjiejiangjjj avatar junjiejiangjjj commented on August 10, 2024

You can use pstack or strace to see where the program is hanging

from examples.

charlottte avatar charlottte commented on August 10, 2024

i find the function drop_emtpy in the Early version,but i don't know how to use it in the latest version,how to use it with pipe

from examples.

junjiejiangjjj avatar junjiejiangjjj commented on August 10, 2024

If an error occurs during execution, it will raise an exception. If you want to ignore the exception, you just need to catch it

try:
     # run pipeline
except:
    pass

from examples.

charlottte avatar charlottte commented on August 10, 2024

Sorry, let me rephrase my question. I currently have a CSV file with URLs of images and their corresponding text descriptions. I would to extract features from both the images and text, then merge, and finally store them in a database. However, I am facing a few issues. Firstly, when reading the URLs, some of them may be failure. How can I implement handling to continue the program execution? Secondly, how can I perform batch processing? Are there any relevant examples available?

from examples.

charlottte avatar charlottte commented on August 10, 2024

thanks a lot!I've solved the hanging problem。BUT there is another questions,when i use batch, the Processing is not speeding up,can batch use with gpu ,is there any example

from examples.

junjiejiangjjj avatar junjiejiangjjj commented on August 10, 2024

You can use the debug interface to see where the performance bottleneck is, https://towhee.readthedocs.io/en/latest/debug/usage.html#usage

from examples.

junjiejiangjjj avatar junjiejiangjjj commented on August 10, 2024

The slowness could be caused by the image downloading and decoding.

from examples.

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.