Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'projects.GLEE' #21

Open
hezta opened this issue Apr 2, 2024 · 2 comments
Open

No module named 'projects.GLEE' #21

hezta opened this issue Apr 2, 2024 · 2 comments

Comments

@hezta
Copy link

hezta commented Apr 2, 2024

你好:我在windows下运行Python app.py时,遇到GLEE\app.py", line 18, in
from projects.GLEE.glee.models.glee_model import GLEE_Model
ModuleNotFoundError: No module named 'projects.GLEE'
的错误,明明projects就在当前文件夹下,怎么就加载不了的呢?盼回复。
主要错误如下:Traceback (most recent call last):
File "E:\tool\GLEE\app.py", line 18, in
from projects.GLEE.glee.models.glee_model import GLEE_Model
ModuleNotFoundError: No module named 'projects.GLEE'
原码app.py部分如下:mport gradio as gr
import numpy as np
import cv2
import torch

from detectron2.config import get_cfg
import sys
#sys.path.insert(0, 'E:/tool/GLEE-main')
#sys.path.append('E:\tool\GLEE\projects\')
from projects.GLEE.glee.models.glee_model import GLEE_Model
from projects.GLEE.glee.config import add_glee_config

@hezta
Copy link
Author

hezta commented Apr 2, 2024

我是在windows平台上运行的。

@wx0chan
Copy link

wx0chan commented Apr 16, 2024

你好:我在windows下运行Python app.py时,遇到GLEE\app.py", line 18, in from projects.GLEE.glee.models.glee_model import GLEE_Model ModuleNotFoundError: No module named 'projects.GLEE' 的错误,明明projects就在当前文件夹下,怎么就加载不了的呢?盼回复。 主要错误如下:Traceback (most recent call last): File "E:\tool\GLEE\app.py", line 18, in from projects.GLEE.glee.models.glee_model import GLEE_Model ModuleNotFoundError: No module named 'projects.GLEE' 原码app.py部分如下:mport gradio as gr import numpy as np import cv2 import torch

from detectron2.config import get_cfg import sys #sys.path.insert(0, 'E:/tool/GLEE-main') #sys.path.append('E:\tool\GLEE\projects') from projects.GLEE.glee.models.glee_model import GLEE_Model from projects.GLEE.glee.config import add_glee_config

参照https://github.com/FoundationVision/GLEE/blob/main/assets/INSTALL.md
pip3 install -e .
pip3 install git+https://github.com/wjf5203/cocoapi.git#"egg=pycocotools&subdirectory=PythonAPI" --user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants