diff --git a/.gitignore b/.gitignore index f9ab5c6..0098713 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ results .claude node_modules src/paddle_ocr/wheels +src/*.log diff --git a/src/output_raytune.ipynb b/src/output_raytune.ipynb index af5a163..5980e2e 100644 --- a/src/output_raytune.ipynb +++ b/src/output_raytune.ipynb @@ -1,14 +1,26 @@ { "cells": [ + { + "cell_type": "markdown", + "id": "6b547287", + "metadata": { + "tags": [ + "papermill-error-cell-tag" + ] + }, + "source": [ + "An Exception was encountered at 'In [9]'." + ] + }, { "cell_type": "markdown", "id": "header", "metadata": { "papermill": { - "duration": 0.002078, - "end_time": "2026-01-18T07:09:37.528058", + "duration": 0.002021, + "end_time": "2026-01-18T07:14:59.560538", "exception": false, - "start_time": "2026-01-18T07:09:37.525980", + "start_time": "2026-01-18T07:14:59.558517", "status": "completed" }, "tags": [] @@ -29,10 +41,10 @@ "id": "prereq", "metadata": { "papermill": { - "duration": 0.000885, - "end_time": "2026-01-18T07:09:37.531707", + "duration": 0.000882, + "end_time": "2026-01-18T07:14:59.562561", "exception": false, - "start_time": "2026-01-18T07:09:37.530822", + "start_time": "2026-01-18T07:14:59.561679", "status": "completed" }, "tags": [] @@ -60,10 +72,10 @@ "id": "3ob9fsoilc4", "metadata": { "papermill": { - "duration": 0.000857, - "end_time": "2026-01-18T07:09:37.533450", + "duration": 0.000859, + "end_time": "2026-01-18T07:14:59.564299", "exception": false, - "start_time": "2026-01-18T07:09:37.532593", + "start_time": "2026-01-18T07:14:59.563440", "status": "completed" }, "tags": [] @@ -78,16 +90,16 @@ "id": "wyr2nsoj7", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:37.536224Z", - "iopub.status.busy": "2026-01-18T07:09:37.536085Z", - "iopub.status.idle": "2026-01-18T07:09:38.812692Z", - "shell.execute_reply": "2026-01-18T07:09:38.811660Z" + "iopub.execute_input": "2026-01-18T07:14:59.567028Z", + "iopub.status.busy": "2026-01-18T07:14:59.566901Z", + "iopub.status.idle": "2026-01-18T07:15:00.844044Z", + "shell.execute_reply": "2026-01-18T07:15:00.842338Z" }, "papermill": { - "duration": 1.278901, - "end_time": "2026-01-18T07:09:38.813189", + "duration": 1.279907, + "end_time": "2026-01-18T07:15:00.845079", "exception": false, - "start_time": "2026-01-18T07:09:37.534288", + "start_time": "2026-01-18T07:14:59.565172", "status": "completed" }, "tags": [] @@ -120,18 +132,18 @@ "Requirement already satisfied: annotated-types>=0.6.0 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pydantic!=2.0.*,!=2.1.*,!=2.10.*,!=2.11.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3->ray[tune]) (0.7.0)\r\n", "Requirement already satisfied: pydantic-core==2.41.5 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pydantic!=2.0.*,!=2.1.*,!=2.10.*,!=2.11.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3->ray[tune]) (2.41.5)\r\n", "Requirement already satisfied: typing-extensions>=4.14.1 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pydantic!=2.0.*,!=2.1.*,!=2.10.*,!=2.11.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3->ray[tune]) (4.15.0)\r\n", - "Requirement already satisfied: typing-inspection>=0.4.2 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pydantic!=2.0.*,!=2.1.*,!=2.10.*,!=2.11.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3->ray[tune]) (0.4.2)\r\n", - "Requirement already satisfied: numpy in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from tensorboardX>=1.9->ray[tune]) (2.4.1)\r\n", - "Requirement already satisfied: attrs>=22.2.0 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (25.4.0)\r\n", - "Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (2025.9.1)\r\n", - "Requirement already satisfied: referencing>=0.28.4 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (0.37.0)\r\n", - "Requirement already satisfied: rpds-py>=0.25.0 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (0.30.0)\r\n" + "Requirement already satisfied: typing-inspection>=0.4.2 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pydantic!=2.0.*,!=2.1.*,!=2.10.*,!=2.11.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3->ray[tune]) (0.4.2)\r\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ + "Requirement already satisfied: numpy in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from tensorboardX>=1.9->ray[tune]) (2.4.1)\r\n", + "Requirement already satisfied: attrs>=22.2.0 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (25.4.0)\r\n", + "Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (2025.9.1)\r\n", + "Requirement already satisfied: referencing>=0.28.4 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (0.37.0)\r\n", + "Requirement already satisfied: rpds-py>=0.25.0 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from jsonschema->ray[tune]) (0.30.0)\r\n", "Requirement already satisfied: python-dateutil>=2.8.2 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pandas->ray[tune]) (2.9.0.post0)\r\n", "Requirement already satisfied: pytz>=2020.1 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pandas->ray[tune]) (2025.2)\r\n", "Requirement already satisfied: tzdata>=2022.7 in /home/sergio/MastersThesis/.venv/lib/python3.12/site-packages (from pandas->ray[tune]) (2025.3)\r\n", @@ -211,10 +223,10 @@ "id": "imports-header", "metadata": { "papermill": { - "duration": 0.009527, - "end_time": "2026-01-18T07:09:38.824238", + "duration": 0.009841, + "end_time": "2026-01-18T07:15:00.856488", "exception": false, - "start_time": "2026-01-18T07:09:38.814711", + "start_time": "2026-01-18T07:15:00.846647", "status": "completed" }, "tags": [] @@ -229,16 +241,16 @@ "id": "imports", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:38.827592Z", - "iopub.status.busy": "2026-01-18T07:09:38.827455Z", - "iopub.status.idle": "2026-01-18T07:09:39.774594Z", - "shell.execute_reply": "2026-01-18T07:09:39.774114Z" + "iopub.execute_input": "2026-01-18T07:15:00.860270Z", + "iopub.status.busy": "2026-01-18T07:15:00.860041Z", + "iopub.status.idle": "2026-01-18T07:15:01.828333Z", + "shell.execute_reply": "2026-01-18T07:15:01.827627Z" }, "papermill": { - "duration": 0.949919, - "end_time": "2026-01-18T07:09:39.775317", + "duration": 0.971437, + "end_time": "2026-01-18T07:15:01.829018", "exception": false, - "start_time": "2026-01-18T07:09:38.825398", + "start_time": "2026-01-18T07:15:00.857581", "status": "completed" }, "tags": [] @@ -261,10 +273,10 @@ "id": "config-header", "metadata": { "papermill": { - "duration": 0.009564, - "end_time": "2026-01-18T07:09:39.786378", + "duration": 0.009553, + "end_time": "2026-01-18T07:15:01.840129", "exception": false, - "start_time": "2026-01-18T07:09:39.776814", + "start_time": "2026-01-18T07:15:01.830576", "status": "completed" }, "tags": [] @@ -279,16 +291,16 @@ "id": "config", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:39.789662Z", - "iopub.status.busy": "2026-01-18T07:09:39.789533Z", - "iopub.status.idle": "2026-01-18T07:09:39.791831Z", - "shell.execute_reply": "2026-01-18T07:09:39.791432Z" + "iopub.execute_input": "2026-01-18T07:15:01.843415Z", + "iopub.status.busy": "2026-01-18T07:15:01.843179Z", + "iopub.status.idle": "2026-01-18T07:15:01.846155Z", + "shell.execute_reply": "2026-01-18T07:15:01.845706Z" }, "papermill": { - "duration": 0.004949, - "end_time": "2026-01-18T07:09:39.792449", + "duration": 0.005247, + "end_time": "2026-01-18T07:15:01.846517", "exception": false, - "start_time": "2026-01-18T07:09:39.787500", + "start_time": "2026-01-18T07:15:01.841270", "status": "completed" }, "tags": [] @@ -314,16 +326,16 @@ "id": "health-check", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:39.795399Z", - "iopub.status.busy": "2026-01-18T07:09:39.795279Z", - "iopub.status.idle": "2026-01-18T07:09:39.803656Z", - "shell.execute_reply": "2026-01-18T07:09:39.803234Z" + "iopub.execute_input": "2026-01-18T07:15:01.849199Z", + "iopub.status.busy": "2026-01-18T07:15:01.849135Z", + "iopub.status.idle": "2026-01-18T07:15:01.856150Z", + "shell.execute_reply": "2026-01-18T07:15:01.855789Z" }, "papermill": { - "duration": 0.010311, - "end_time": "2026-01-18T07:09:39.803886", + "duration": 0.008777, + "end_time": "2026-01-18T07:15:01.856430", "exception": false, - "start_time": "2026-01-18T07:09:39.793575", + "start_time": "2026-01-18T07:15:01.847653", "status": "completed" }, "tags": [] @@ -368,10 +380,10 @@ "id": "search-space-header", "metadata": { "papermill": { - "duration": 0.001081, - "end_time": "2026-01-18T07:09:39.806136", + "duration": 0.001067, + "end_time": "2026-01-18T07:15:01.858650", "exception": false, - "start_time": "2026-01-18T07:09:39.805055", + "start_time": "2026-01-18T07:15:01.857583", "status": "completed" }, "tags": [] @@ -386,16 +398,16 @@ "id": "search-space", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:39.808859Z", - "iopub.status.busy": "2026-01-18T07:09:39.808794Z", - "iopub.status.idle": "2026-01-18T07:09:39.810819Z", - "shell.execute_reply": "2026-01-18T07:09:39.810510Z" + "iopub.execute_input": "2026-01-18T07:15:01.861275Z", + "iopub.status.busy": "2026-01-18T07:15:01.861205Z", + "iopub.status.idle": "2026-01-18T07:15:01.863429Z", + "shell.execute_reply": "2026-01-18T07:15:01.863034Z" }, "papermill": { - "duration": 0.003948, - "end_time": "2026-01-18T07:09:39.811160", + "duration": 0.004046, + "end_time": "2026-01-18T07:15:01.863788", "exception": false, - "start_time": "2026-01-18T07:09:39.807212", + "start_time": "2026-01-18T07:15:01.859742", "status": "completed" }, "tags": [] @@ -425,10 +437,10 @@ "id": "trainable-header", "metadata": { "papermill": { - "duration": 0.001066, - "end_time": "2026-01-18T07:09:39.813352", + "duration": 0.001064, + "end_time": "2026-01-18T07:15:01.865979", "exception": false, - "start_time": "2026-01-18T07:09:39.812286", + "start_time": "2026-01-18T07:15:01.864915", "status": "completed" }, "tags": [] @@ -443,16 +455,16 @@ "id": "trainable", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:39.815935Z", - "iopub.status.busy": "2026-01-18T07:09:39.815875Z", - "iopub.status.idle": "2026-01-18T07:09:39.819033Z", - "shell.execute_reply": "2026-01-18T07:09:39.818672Z" + "iopub.execute_input": "2026-01-18T07:15:01.868751Z", + "iopub.status.busy": "2026-01-18T07:15:01.868656Z", + "iopub.status.idle": "2026-01-18T07:15:01.871950Z", + "shell.execute_reply": "2026-01-18T07:15:01.871453Z" }, "papermill": { - "duration": 0.00507, - "end_time": "2026-01-18T07:09:39.819491", + "duration": 0.005245, + "end_time": "2026-01-18T07:15:01.872296", "exception": false, - "start_time": "2026-01-18T07:09:39.814421", + "start_time": "2026-01-18T07:15:01.867051", "status": "completed" }, "tags": [] @@ -498,7 +510,7 @@ " }\n", "\n", " try:\n", - " response = requests.post(f\"{api_url}/evaluate\", json=payload, timeout=600)\n", + " response = requests.post(f\"{api_url}/evaluate\", json=payload, timeout=None) # No timeout\n", " response.raise_for_status()\n", " metrics = response.json()\n", " metrics[\"worker\"] = api_url\n", @@ -520,10 +532,10 @@ "id": "tuner-header", "metadata": { "papermill": { - "duration": 0.001049, - "end_time": "2026-01-18T07:09:39.821656", + "duration": 0.001042, + "end_time": "2026-01-18T07:15:01.874467", "exception": false, - "start_time": "2026-01-18T07:09:39.820607", + "start_time": "2026-01-18T07:15:01.873425", "status": "completed" }, "tags": [] @@ -538,16 +550,16 @@ "id": "ray-init", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:39.824409Z", - "iopub.status.busy": "2026-01-18T07:09:39.824357Z", - "iopub.status.idle": "2026-01-18T07:09:42.432539Z", - "shell.execute_reply": "2026-01-18T07:09:42.431817Z" + "iopub.execute_input": "2026-01-18T07:15:01.877636Z", + "iopub.status.busy": "2026-01-18T07:15:01.877526Z", + "iopub.status.idle": "2026-01-18T07:15:04.527343Z", + "shell.execute_reply": "2026-01-18T07:15:04.526869Z" }, "papermill": { - "duration": 2.610279, - "end_time": "2026-01-18T07:09:42.433000", + "duration": 2.652439, + "end_time": "2026-01-18T07:15:04.527996", "exception": false, - "start_time": "2026-01-18T07:09:39.822721", + "start_time": "2026-01-18T07:15:01.875557", "status": "completed" }, "tags": [] @@ -557,7 +569,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "2026-01-18 08:09:41,083\tINFO worker.py:2007 -- Started a local Ray instance.\n" + "2026-01-18 08:15:03,149\tINFO worker.py:2007 -- Started a local Ray instance.\n" ] }, { @@ -587,15 +599,17 @@ "id": "tuner", "metadata": { "execution": { - "iopub.execute_input": "2026-01-18T07:09:42.446046Z", - "iopub.status.busy": "2026-01-18T07:09:42.445323Z" + "iopub.execute_input": "2026-01-18T07:15:04.542083Z", + "iopub.status.busy": "2026-01-18T07:15:04.541579Z", + "iopub.status.idle": "2026-01-18T07:16:51.740809Z", + "shell.execute_reply": "2026-01-18T07:16:51.740224Z" }, "papermill": { - "duration": null, - "end_time": null, + "duration": 107.210662, + "end_time": "2026-01-18T07:16:51.741577", "exception": false, - "start_time": "2026-01-18T07:09:42.434682", - "status": "running" + "start_time": "2026-01-18T07:15:04.530915", + "status": "completed" }, "tags": [] }, @@ -606,14 +620,14 @@ "text": [ "/home/sergio/MastersThesis/.venv/lib/python3.12/site-packages/ray/tune/impl/tuner_internal.py:144: RayDeprecationWarning: The `RunConfig` class should be imported from `ray.tune` when passing it to the Tuner. Please update your imports. See this issue for more context and migration options: https://github.com/ray-project/ray/issues/49454. Disable these warnings by setting the environment variable: RAY_TRAIN_ENABLE_V2_MIGRATION_WARNINGS=0\n", " _log_deprecation_warning(\n", - "2026-01-18 08:09:42,457\tINFO tune.py:616 -- [output] This uses the legacy output and progress reporter, as Jupyter notebooks are not supported by the new engine, yet. For more information, please see https://github.com/ray-project/ray/issues/36949\n" + "2026-01-18 08:15:04,548\tINFO tune.py:616 -- [output] This uses the legacy output and progress reporter, as Jupyter notebooks are not supported by the new engine, yet. For more information, please see https://github.com/ray-project/ray/issues/36949\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ - "[I 2026-01-18 08:09:42,461] A new study created in memory with name: optuna\n" + "[I 2026-01-18 08:15:04,550] A new study created in memory with name: optuna\n" ] }, { @@ -625,9 +639,9 @@ "
| Current time: | 2026-01-18 08:10:43 |
| Running for: | 00:01:00.59 |
| Memory: | 11.1/119.7 GiB |
| Current time: | 2026-01-18 08:16:51 |
| Running for: | 00:01:47.13 |
| Memory: | 9.3/119.7 GiB |