BinitDOX / Manga-Colorizer

Bring mangas to life!
MIT License
14 stars 3 forks source link

KAGGLE not working #5

Closed Randalt4 closed 4 months ago

Randalt4 commented 4 months ago

when I run the kaggle notebook it says Screenshot 2024-02-17 000538

RuntimeError Traceback (most recent call last) Cell In[16], line 10 7 import ssl 8 import threading ---> 10 from colorizator import MangaColorizator 11 from inference import colorize_images as batch_colorize_images

File /kaggle/working/Manga-Colorizer/Backend/colorizator.py:1 ----> 1 import torch 2 from torchvision.transforms import ToTensor 3 import numpy as np

File /opt/conda/lib/python3.10/site-packages/torch/init.py:229 227 if USE_GLOBAL_DEPS: 228 _load_global_deps() --> 229 from torch._C import * # noqa: F403 231 # Appease the type checker; ordinarily this binding is inserted by the 232 # torch._C module initialization code in C 233 if TYPE_CHECKING:

RuntimeError: THPDtypeType.tp_dict == nullptr INTERNAL ASSERT FAILED at "/usr/local/src/pytorch/torch/csrc/Dtype.cpp":135, please report a bug to PyTorch.

any idea how to fix it please?

BinitDOX commented 4 months ago

Make a fresh clone of the notebook then match your notebook settings with this, specially the environment.

Screenshot 2024-02-17 at 12 16 34 PM