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

Error: cannot import name 'setup_logger' from 'paddleseg.utils.logger' #3875

Open
1 task done
AnTranHoai38 opened this issue Dec 30, 2024 · 1 comment
Open
1 task done
Assignees
Labels
question Further information is requested

Comments

@AnTranHoai38
Copy link

AnTranHoai38 commented Dec 30, 2024

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

I can't train my model on custom dataset because Error: cannot import name 'setup_logger' from 'paddleseg.utils.logger' on google colab.
PaddlePaddle 2.6.2
paddleseg 2.8.0
python 3.10.12
I run this code:

python train.py
--config configs/quick_start/pp_liteseg_optic_disc_512x512_1k.yml
--do_eval
--use_vdl
--save_interval 500
--save_dir output

Traceback (most recent call last):
File "/content/PaddleSeg/tools/train.py", line 27, in
from paddleseg.utils.logger import setup_logger
ImportError: cannot import name 'setup_logger' from 'paddleseg.utils.logger' (/usr/local/lib/python3.10/dist-packages/paddleseg/utils/logger.py)

@AnTranHoai38 AnTranHoai38 added the question Further information is requested label Dec 30, 2024
@Sunting78
Copy link
Collaborator

您好 辛苦切换到2.10分枝,pip install -e .安装后运行

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

No branches or pull requests

2 participants