huridocs / pdf-document-layout-analysis

A Docker-powered service for PDF document layout analysis. This service provides a powerful and flexible PDF analysis service. The service allows for the segmentation and classification of different parts of PDF pages, identifying the elements such as texts, titles, pictures, tables and so on.
Apache License 2.0
36 stars 4 forks source link

Running on M1/M2 issue #12

Open marcusze opened 1 month ago

marcusze commented 1 month ago

Hi there,

I've tried to get the docker-compose setup for no_gpu to work on my Mac M1 with Docker Desktop 4.30.0.

Both regular build and using docker buildx build --platform linux/arm64 result in the following errors on boot:

image

[ERROR] Worker (pid:##) was sent SIGILL!

Is there something else I can try?

gabriel-piles commented 1 month ago

Hello!

To resolve the issue you're having, please try these steps:

  1. Check System Resources: Ensure you have enough available RAM and hard drive space to run the Docker container smoothly.

  2. Download Models First: Before starting the container, download the necessary models using the following commands in your terminal:

pip install -r requirements.txt
python src/download_models.py
make start_no_gpu

If you still encounter problems after following these steps, please provide more details about the specific error messages you receive. This will help me diagnose the issue more effectively and offer a targeted solution.

Let me know how it goes!