CLAHE Crashing Google Colab Runtime

Aperta
#1,130 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
jupyter, numpy, python

Direzione di ricerca

Riproduci lo snippet Python in Google Colab con opencv-python 4.12.0.88 e NumPy 2.0.2, quindi analizza il riavvio del kernel riportato in app.log. Confronta la chiamata a CLAHE con la conversione in scala di grigi commentata e determina se il crash è riproducibile; il lavoro è completato quando sono state stabilite la causa e una correzione appropriata del pacchetto o dell’utilizzo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Requirement already satisfied: opencv-python in /usr/local/lib/python3.11/dist-packages (4.12.0.88)
Requirement already satisfied: numpy<2.3.0,>=2 in /usr/local/lib/python3.11/dist-packages (from opencv-python) (2.0.2)
import cv2
from google.colab.patches import cv2_imshow

img = cv2.imread('/content/og_prototype128.png')
# img_grayscale = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
clahe = cv2.CLAHE()
clahe.apply(img)
None

app.log:

{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.294 NotebookApp] Searching ['/root/.jupyter', '/root/.local/etc/jupyter', '/usr/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files","time":"2025-07-28T00:59:24.295Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.294 NotebookApp] Looking for jupyter_config in /etc/jupyter","time":"2025-07-28T00:59:24.297Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.296 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter","time":"2025-07-28T00:59:24.297Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.304 NotebookApp] Looking for jupyter_config in /usr/etc/jupyter","time":"2025-07-28T00:59:24.304Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.304 NotebookApp] Looking for jupyter_config in /root/.local/etc/jupyter","time":"2025-07-28T00:59:24.305Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.304 NotebookApp] Looking for jupyter_config in /root/.jupyter","time":"2025-07-28T00:59:24.305Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.305 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter","time":"2025-07-28T00:59:24.306Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.311 NotebookApp] Loaded config file: /etc/jupyter/jupyter_notebook_config.py","time":"2025-07-28T00:59:24.311Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.311 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter","time":"2025-07-28T00:59:24.312Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.314 NotebookApp] Loaded config file: /usr/local/etc/jupyter/jupyter_notebook_config.json","time":"2025-07-28T00:59:24.314Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.314 NotebookApp] Looking for jupyter_notebook_config in /usr/etc/jupyter","time":"2025-07-28T00:59:24.314Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.314 NotebookApp] Looking for jupyter_notebook_config in /root/.local/etc/jupyter","time":"2025-07-28T00:59:24.314Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.314 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter","time":"2025-07-28T00:59:24.315Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 00:59:24.318 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.py","time":"2025-07-28T00:59:24.318Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/etc/jupyter/jupyter_notebook_config.json","time":"2025-07-28T00:59:24.643Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.d/ipyparallel.json","time":"2025-07-28T00:59:24.644Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.d/jupytext.json","time":"2025-07-28T00:59:24.644Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.d/panel-client-jupyter.json","time":"2025-07-28T00:59:24.644Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.json","time":"2025-07-28T00:59:24.644Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/etc/jupyter/jupyter_notebook_config.json","time":"2025-07-28T00:59:24.648Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/root/.local/etc/jupyter/jupyter_notebook_config.json","time":"2025-07-28T00:59:24.649Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/root/.jupyter/jupyter_notebook_config.json","time":"2025-07-28T00:59:24.650Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret","time":"2025-07-28T00:59:24.671Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Authentication of /metrics is OFF, since other authentication is disabled.","time":"2025-07-28T00:59:24.671Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"google.colab serverextension initialized.","time":"2025-07-28T00:59:24.761Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Loading IPython parallel extension","time":"2025-07-28T00:59:24.980Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"[Jupytext Server Extension] Deriving a TextFileContentsManager from LargeFileManager","time":"2025-07-28T00:59:25.619Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Serving notebooks from local directory: /","time":"2025-07-28T00:59:27.774Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Jupyter Notebook 6.5.7 is running at:","time":"2025-07-28T00:59:27.775Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"http://172.28.0.12:9000/","time":"2025-07-28T00:59:27.775Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).","time":"2025-07-28T00:59:27.775Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - Debugger warning: It seems that frozen modules are being used, which may","time":"2025-07-28T01:02:18.904Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off","time":"2025-07-28T01:02:18.904Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - to python to disable frozen modules.","time":"2025-07-28T01:02:18.905Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.","time":"2025-07-28T01:02:18.905Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Kernel started: 412656db-2b38-4367-bc9a-c8f7439da103, name: python3","time":"2025-07-28T01:02:20.161Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - Debugger warning: It seems that frozen modules are being used, which may","time":"2025-07-28T01:02:20.485Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off","time":"2025-07-28T01:02:20.486Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - to python to disable frozen modules.","time":"2025-07-28T01:02:20.486Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.","time":"2025-07-28T01:02:20.487Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"KernelRestarter: restarting kernel (1/5), keep random ports","time":"2025-07-28T01:02:41.160Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"WARNING:root:kernel 412656db-2b38-4367-bc9a-c8f7439da103 restarted","time":"2025-07-28T01:02:41.160Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - Debugger warning: It seems that frozen modules are being used, which may","time":"2025-07-28T01:02:41.663Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off","time":"2025-07-28T01:02:41.664Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - to python to disable frozen modules.","time":"2025-07-28T01:02:41.665Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.","time":"2025-07-28T01:02:41.665Z","v":0}
Lingua principale
Python
Stelle
5.4k
Fork
1k
Merge medio
22h 17m
PR unite (30g)
3

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opencv/opencv-python

Tutte le issue di opencv/opencv-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.