Comments (9)
I know some people used WSL successfully in the past but we officially don't support Windows and I don't have access to any machine with which I could verify if kraken works or doesn't work with Windows/WSL.
You could increase the verbosity with -v
to get a bit more output and see where exactly in the process it hangs but the segmenter is a complex beast and blind remote-debugging is unlikely to lead to much.
from kraken.
Solved by upgrading to the newest release. I am running Ubuntu 22.03, so this was not a WIndows issue on my end.
from kraken.
Interesting. There's was a regression in 5.0 with segmentation but that caused crashes not hangs. Anyway, good to see it has been resolved.
from kraken.
I also get the same issue when importing kraken in a Python script. It just hangs. I tried from iPython, and importing kraken also hangs.
from kraken.
I also get the same issue when importing kraken in a Python script. It just hangs. I tried from iPython, and importing kraken also hangs.
Did you find a solution?
from kraken.
Thanks everyone, upgrading to the latest version has solved my issue as well, so it wasn't a problem of WSL.
from kraken.
Interesting. There's was a regression in 5.0 with segmentation but that caused crashes not hangs. Anyway, good to see it has been resolved.
Yes seems in WSL it didn't give any visible crash.
One more question, unrelated, when running only segmentation in kraken is the only output a JSON file? Or is there a possibility to get a PageXML file? Or convert the resulting JSON to PageXML? Thanks!
from kraken.
from kraken.
You can run any serializer on segmentation output only as well:
$ kraken -a -i ... segment -bl $ kraken -x -i ... segment -bl
produces ALTO/PageXML respectively.
Thanks for your reply! However, both these commands give me the following error:
Segmenting [04/25/24 11:06:55]
ERROR Failed processing /home/user/images/2024.03.07/1.jpg:
'BaselineLine' object kraken.py:429 has no attribute 'cuts'
from kraken.
Related Issues (20)
- Support for Python 3.12 HOT 3
- Optimized distribution of packet for inference only HOT 3
- It there a way to simply call kraken recognizer from code? HOT 1
- finetune error on altos containing > or < as txt HOT 7
- serialization problem when using segmodel that has same name for linetypes and regiontypes.
- bad polygons HOT 28
- Fine-tuned segmentation model fails to determine regions HOT 1
- Segment command with separate baseline and region models? HOT 5
- AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? HOT 1
- Failure to read varying text sizes in a Newspaper page HOT 7
- polygonisation for vertical writing systems HOT 8
- pretrain: UnboundLocalError HOT 1
- Segmentation: batch input not working HOT 1
- Kraken install post-July 20 2024 are all broken because of python-bidi
- No such option: --device , -d (how to switch between gpu and cpu computing?) HOT 2
- fix --no-segmentation bug
- access to kraken.re ! HOT 3
- Invalid bounding polygon computed exception during segmentation HOT 7
- Segmentation requires libcurand and libcufft HOT 1
- Exception when forcing binarization in segtrain command HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kraken.