[Python] Cannot use craft_structure

Discussão em 'Python' iniciado por Stack, Outubro 24, 2024.

  1. Stack

    Stack Membro Participativo

    I've installed craft-text-detector but I cannot import craft_structure:

    !pip install craft-text-detector



    from craft_structure.detection import detect, get_detector


    Output:

    ModuleNotFoundError
    Traceback (most recent call last)
    ~\AppData\Local\Temp\ipykernel_33796\44427766.py in <module>
    1 import torch
    ----> 2 from craft_structure.detection import detect, get_detector
    3
    4 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
    5 craft = get_detector("models/craft_mlt_25k.pth", device)

    ModuleNotFoundError: No module named 'craft_structure'

    Continue reading...

Compartilhe esta Página