mxin262 / ESTextSpotter

(ICCV 2023) ESTextSpotter: Towards Better Scene Text Spotting with Explicit Synergy in Transformer
71 stars 6 forks source link

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. detectron2 0.2 requires pycocotools>=2.0.1, but you have pycocotools 2.0 which is incompatible. #6

Open Micla-SHL opened 11 months ago

Micla-SHL commented 11 months ago
  我是本机cuda 11.8 ,所以我采取torch官方安装命令conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia

其余安装包是 yapf==0.40.1 指定了版本。现在有标题的error,目前是可以忽视它,因为我还不会用,这个错误是版本冲突,因为安装链接都指向了最新,所以这种错误该怎么规避比较好。我无法直接pip install pycocotools==2.0.1 ,这将导致Failed to build pycocotools ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects。在此之前我是如何解决的呢,我自己 pip install cython 解决的,虽然现在requirements.txt 有包含cython,但是不起作用。在我手动安装cython后 ,不再有前述问题,(训练、测试代码都没问题的。)然而当我更新某python包,它会提示标题错误,然后我pip install pycocotools==2.0.1 就开始前述错误。这标题问题有好解决办法吗?

mxin262 commented 10 months ago

试一下先卸载了你本身的pycocotools,再安装detectron2

Micla-SHL commented 10 months ago

针对这个问题,它最终会影响到什么吗? 您的建议我想尝试,又想训练,我更倾向于训练,因为暂时它好像不影响我使用。我目前因为显存显示问题,目前在关注ABCNet v2 。稍后会继续做ESTS


发件人: mxin262 @.> 发送时间: 2023年10月23日 14:59 收件人: mxin262/ESTextSpotter @.> 抄送: Micla-SHL @.>; Author @.> 主题: Re: [mxin262/ESTextSpotter] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. detectron2 0.2 requires pycocotools>=2.0.1, but y...

试一下先卸载了你本身的pycocotools,再安装detectron2

― Reply to this email directly, view it on GitHubhttps://github.com/mxin262/ESTextSpotter/issues/6#issuecomment-1774548076, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKTQYIRUSXIZ464MRAG2UHLYAYIVTAVCNFSM6AAAAAA55M62O2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGU2DQMBXGY. You are receiving this because you authored the thread.Message ID: @.***>

mxin262 commented 9 months ago

可以尝试把denoise关掉来节省显存

Micla-SHL commented 9 months ago

谢谢,我的显存太低了。我跑ABCNet 作者130K模拟中文数据,他跑3天可以loss到0.3,我是一次一张。跑一个礼拜都在1.3波动(rec_loss),total_loss是有微小下降。我想在你们今年去年更新的这ESTS应该更吃显存,我的设备应该支持不了我训练的模型eval分数接近你们的数据。等设备再扩一张再来


发件人: mxin262 @.> 发送时间: 2023年11月19日 14:19 收件人: mxin262/ESTextSpotter @.> 抄送: Micla-SHL @.>; Author @.> 主题: Re: [mxin262/ESTextSpotter] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. detectron2 0.2 requires pycocotools>=2.0.1, but y...

可以尝试把denoisehttps://github.com/mxin262/ESTextSpotter/blob/f404aa1c565079ec23723b9ffa6c15c47b840dc3/config/ESTS/ESTS_5scale_pretrain.py#L99关掉来节省显存

― Reply to this email directly, view it on GitHubhttps://github.com/mxin262/ESTextSpotter/issues/6#issuecomment-1817761114, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKTQYISSWCIDSZY3U644QPDYFGQIBAVCNFSM6AAAAAA55M62O2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXG43DCMJRGQ. You are receiving this because you authored the thread.Message ID: @.***>