shuyansy / Detect-and-read-meters

This is the first released system towards complex meters` detection and recognition, which is implemented by computer vision techniques.
MIT License
110 stars 15 forks source link

Questions about configuring the environment #11

Open DUT1379 opened 10 months ago

DUT1379 commented 10 months ago

Dear author: I am a beginner and have many problems when configuring the environment. Can you provide detailed requirements? Thank you so much.

shuyansy commented 10 months ago

Thanks for your attention to the project. About the environment, you can use "pip install xx" to install specific package. In fact some important configurations are listed in the requirement.txt. You can ask me about the specific issue you met. 

Best regards  Yan

------------------ 原始邮件 ------------------ 发件人: "shuyansy/Detect-and-read-meters" @.>; 发送时间: 2023年10月14日(星期六) 下午5:27 @.>; @.***>; 主题: [shuyansy/Detect-and-read-meters] Questions about configuring the environment (Issue #11)

Dear author: I am a beginner and have many problems when configuring the environment. Can you provide detailed requirements? Thank you so much.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

DUT1379 commented 10 months ago

Does The requirement.txt refer to the one in the yolov5-master folder? Because when I configured my environment according to the Requirements in README.md, I installed pytorch and other libraries but could not run them. There was also an error like this: cannot import name 'amp' from 'torch.cuda'.

shuyansy commented 10 months ago

Python3 (Python3.7 is recommended) PyTorch >= 1.0 torchvision from master numpy skimage OpenCV==3.0.x CUDA >= 9.0 (10.0 is recommended)

This is the basic environment. About your issue, i think there is sth wrong with your cuda and torch version. You can refer to the problem https://github.com/ThilinaRajapakse/simpletransformers/issues/624

DUT1379 commented 10 months ago

I cannot install opecv version 3.0. Can I install another version?

shuyansy commented 10 months ago

higher version open also works, but you should modify the return parameter in "cv2.findContours(a, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)". i encourage you to use opencv 3.0 , maybe you can degrade your python/pytorch version.

DUT1379 commented 10 months ago

Can you share the installation package of opencv3.0? I can’t find it online.

DUT1379 commented 10 months ago

It's ready to run! Thank you so much!

SongXiang0808 commented 9 months ago

It's ready to run! Thank you so much!

I have the same problem with you. Can you send me a requirements.txt file by email? My mail is 1051566182@qq.com. Thank you very much!