wangyuxin87 / ContourNet

A PyTorch implementation of "ContourNet: Taking a Further Step toward Accurate Arbitrary-shaped Scene Text Detection" (CVPR2020)
Other
227 stars 46 forks source link

Specify a python version #2

Closed sergiev closed 4 years ago

sergiev commented 4 years ago

Because now there's a conflict due to installation of the latest python by default.

Specifications:

  - pytorch=1.0 -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
  - torchvision=0.2 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']

Your python: python=3.8
wangyuxin87 commented 4 years ago

We recommend you to use Anaconda BaiduYun Link(passward:1y3v) or Geogle Drive to manage your libraries. And the python=3.7 is used in our enviroment.

sergiev commented 4 years ago

@wangyuxin87 seems like there's only python 2.7 in that 658MB shell script Screenshot from 2020-05-18 15-24-37 Screenshot from 2020-05-18 15-26-36

wangyuxin87 commented 4 years ago

Yes, only python 2.7 exists in our proposed Anaconda, and you will get python with version>3.7 when you follow our installation steps .

  conda create --name ContourNet
  conda activate ContourNet
  conda install ipython
sergiev commented 4 years ago

Yep, but with python 3.8 everything fails to build due to conflict described in first message.

wangyuxin87 commented 4 years ago

When you type following instruction, it will automatically fix your mentioned problem.

  conda install pytorch=1.0 torchvision=0.2 cudatoolkit=9.0 -c pytorch

which is shown in following figure: image