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

【OCR Issue No.9】以可选形式支持Visualdl #11947

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

Liyulingyue
Copy link
Collaborator

#11906 task9
#11924

Copy link

paddle-bot bot commented Apr 16, 2024

Thanks for your contribution!

@Liyulingyue
Copy link
Collaborator Author

@GreatV @sunzhongkai588

except ImportError:
raise ImportError(
"Please install visualdl via `pip install visualdl` or "
"`pip install paddleocr[visualdl]`."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是不要比较好

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emmm?汪师傅是觉得不要visualdl比较好吗?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要 pip install paddleocr[visualdl]

setup.py Outdated
@@ -49,6 +49,9 @@ def readme():
entry_points={"console_scripts": ["paddleocr= paddleocr.paddleocr:main"]},
version=VERSION,
install_requires=load_requirements(['requirements.txt', 'ppstructure/recovery/requirements.txt']),
extra_requires={
'visualdl': ['visualdl'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

@jzhang533
Copy link
Collaborator

jzhang533 commented Apr 16, 2024

这个ci又因为clone不下来挂了,我们得想办法把ci迁到github action上。

@GreatV
Copy link
Collaborator

GreatV commented Apr 16, 2024

这个ci的脚本好像不在仓库里

@jzhang533
Copy link
Collaborator

jzhang533 commented Apr 19, 2024

这个ci的脚本好像不在仓库里

入口脚本在这里:
https://github.com/PaddlePaddle/PaddleTest/blob/develop/models/PaddleOCR/CI/PaddleOCR_CI_dygraph.sh

这个 CI,是在 GPU 环境里直接跑模型; 我觉得其实没有太大的必要,能有完整的单测,在 CPU 上跑,应该就足够了。但是,看起来, 好像并没什么单测。。。

这个仓库的设计,以后或许可以多借鉴一下 pytorch/vision

@jzhang533
Copy link
Collaborator

@GreatV @Liyulingyue 其实我觉得我们应该做的彻底一些:完全去掉 visualdl。

  • yaml 文件里去掉 use_visualdl
  • 删除 ./ppocr/utils/loggers/vdl_logger.py
  • 更新 ./tools/program.py
  • requirements.txt 中去掉 visualdl
  • 更新文档

benchmark 路径下,对 visualdl 的使用,我还不太清楚其必要性,但觉得也可以先移除。

@GreatV
Copy link
Collaborator

GreatV commented Apr 19, 2024

这个CI和脚本感觉对不上

@jzhang533
Copy link
Collaborator

这个CI和脚本感觉对不上

@JiaXiao243 能在这里解释一下现在的 CI 的情况吗?

@Liyulingyue Liyulingyue requested a review from GreatV April 24, 2024 22:18
@jzhang533
Copy link
Collaborator

benchmark/PaddleOCR_DBNet

这个目录我还不知道是干啥的,不过,我先合入吧。

Copy link
Collaborator

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jzhang533 jzhang533 merged commit a730065 into PaddlePaddle:main Apr 25, 2024
3 checks passed
@Liyulingyue Liyulingyue deleted the visualdl branch May 25, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants