Giter VIP home page Giter VIP logo

Comments (11)

anhanhtdh01 avatar anhanhtdh01 commented on August 20, 2024

bạn thay file config là đc mà

from vietocr.

chuyendq9x avatar chuyendq9x commented on August 20, 2024

Mình thay được rồi nhưng mà thấy tốc độ nó cũng như vgg_transformer nhỉ. Bạn thấy chạy có nhanh hơn k.

from vietocr.

chuyendq9x avatar chuyendq9x commented on August 20, 2024

Vấn đề nữa nếu có GPU thì để CUDA là 0 hay 1. nếu mình để 1 thì nó lỗi.
RuntimeError: CUDA error: invalid device ordinal

from vietocr.

anhanhtdh01 avatar anhanhtdh01 commented on August 20, 2024

có nhiều GPU thì mới đặt là 1 nhé, 0 với 1 là chỉ số GPU đó bạn

from vietocr.

chuyendq9x avatar chuyendq9x commented on August 20, 2024

có nhiều GPU thì mới đặt là 1 nhé, 0 với 1 là chỉ số GPU đó bạn

Máy mình có 1 . mình đang đặt thế này, mỗi lần chạy 10s mới ra kết quả.
image

from vietocr.

pbcquoc avatar pbcquoc commented on August 20, 2024

Hi bạn, không biết bạn tính thời gian dự đoán ntn?
Nhưng bạn chỉ cần load model một lần sau đó dùng model để dự đoán nhé.
10s có vẻ như là thời gian load model của bạn luôn rồi.

from vietocr.

chuyendq9x avatar chuyendq9x commented on August 20, 2024

image
vâng đúng rồi. lần nào e chạy cũng thế này. Vậy e viết như tnao để không load model nữa

from vietocr.

chuyendq9x avatar chuyendq9x commented on August 20, 2024

ý mình là làm sao để lsau OCR không bị load model nữa. hay lần nào khởi tạo cũng pải load lâu như thế

from vietocr.

pbcquoc avatar pbcquoc commented on August 20, 2024

Hi @chuyendq9x ,
vấn đề của e là kĩ thuật lập trình, em cần load model ở đâu đó trước,
sau đó khi có ảnh vào thì e sẽ lấy model ra để dự đoán.
Nếu em có 1 ảnh thì tất nhiên là e cần load model trước, tuy nhiên nếu e có nhiều hơn 2 ảnh thì không cần thiết phải load lại model lần nữa mà chỉ gọi lại hàm predict nhé.

from vietocr.

chuyendq9x avatar chuyendq9x commented on August 20, 2024

Ok a . em hiểu rồi. có cách nào load model nhanh hơn nữa không a

from vietocr.

pbcquoc avatar pbcquoc commented on August 20, 2024

Có vẻ như e cần tìm hiểu cách viết API, ví dụ như flask api python xem, mình sẽ start api và load model trong đó, để api đó chạy và khi nào có request cần dự đoán thì gọi api.

from vietocr.

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.