Coder Social home page Coder Social logo

ee-cs-rookie's People

Contributors

bairenchen avatar

Watchers

 avatar

ee-cs-rookie's Issues

Solutions to update Cudnn

Problem descriptions:
Loaded runtime CuDNN library: 7.1.4 but source was compiled with: 7.6.5. CuDNN library major and minor version needs to match or have higher minor version in case of CuDNN 7.0 or later version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration.

ref:
[important!]https://askubuntu.com/questions/767269/how-can-i-install-cudnn-on-ubuntu-16-04
https://blog.csdn.net/wanzhen4330/article/details/81704474
https://blog.csdn.net/zong596568821xp/article/details/86098833
tensorflow/tensorflow#35376
https://developer.nvidia.com/rdp/cudnn-archive
https://jingyan.baidu.com/article/d8072ac40dd3b0ac95cefdf7.html
https://stackoverflow.com/questions/61039316/loaded-runtime-cudnn-library-7-1-2-but-source-was-compiled-with-7-6-0-ubuntu

Configure PyCharm environment based on Anaconda list

I strongly recommend that python environment in your PC is based on Anaconda3.

  1. Install Anaconda3 & Pycharm.
  2. Open Pycharm, create new project, click Existing interpreter, and choose the location of your anaconda python. (i.e. D:\Applications\Anaconda3\python.exe)
  3. Reboot Pycharm.

If you have created your own projects based on other python environments, the solution steps: File->Settings->Project: XXX->Project Interpreter->the location of anaconda python.

Tips:

  1. In Prompt, you can also use pip to install packages and the packages are still in conda list.
  2. The solution of changing background color: File->Settings->Editor->Color Scheme->General->Darcula.

Install opencv in conda list

I have installed and implemented Anaconda3 and PyCharm2019 in my PC. The environment configuration of PyCharm is based on the conda list in Anaconda3.
In order to learn image process, I WANTED TO INSTALL OPENCV IN CONDA LIST.
Using
conda install -chttps://conda.binstar.org/menpo opencv
conda install -c menpo opencv
conda install -c conda-forge opencv
conda install -c conda-forge/label/broken opencv
didn't work.

Here's the solution:

1. Download opencv .whl File

According to https://blog.csdn.net/iracer/article/details/90746292, I downloaded the .whl file (opencv_python-4.2.0.34-cp37-cp37m-win_amd64.whl) from https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python/.
(Here's an another address of downloading opencv but the speed was too slow, https://blog.csdn.net/iracer/article/details/90746292)

2. Unzip the .whl File

I put the .whl file into Anaconda3 third-party package directory, ...\Anaconda3\Lib\site-packages.
(My path: D:\Applications\Anaconda3\Lib\site-packages)

Ran cmd, and input cd /d D:\Applications\Anaconda3\Lib\site-packages
Note: /d is important!!!
(Reference of cd to the specified directory: https://blog.csdn.net/relijin/article/details/62416267 or https://blog.csdn.net/qq_32160853/article/details/81303127?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase)

Input pip install opencv_python-4.2.0.34-cp37-cp37m-win_amd64.whl

It worked!!!

3. Check

Checked the environment configuration:

  • Ran Anaconda Prompt, input conda list and checked whether opencv-python is in conda list;
  • Ran PyCharm, File-Settings-Project-Project Intepreter, and searched opencv-python package, normally the file should exist.

==================== update at 7/1/2020 ====================

In SIFT algorithm, cv2.xfeatures2d.SIFT_create() was excluded and couldn't run (I searched and knew that this algorithm was patented).

By https://stackoverflow.com/questions/52305578/sift-cv2-xfeatures2d-sift-create-not-working-even-though-have-contrib-instal, I knew that opencv version <=3.4.2.16 still contained SIFT algorithm.

At the same time, I noticed little difference --> contrib. I searched and got the answer at https://blog.csdn.net/qq_43258953/article/details/104760310

The solution

1. Uninstall the Existing Version of Opencv

Ran cmd, input cd /d D:\Applications\Anaconda3\Lib\site-packages, input pip uninstall opencv_python,
checked whether the package was moved from site-packages. (https://blog.csdn.net/roytao2/article/details/53434096)

2. Download the Low Version and Unzip it at the Specific Directory

Download it from ​​https://pypi.org/project/opencv-contrib-python/3.4.2.16/#files (opencv_python https://pypi.org/project/opencv-python/3.4.2.16/#files), put it in my path: D:\Applications\Anaconda3\Lib\site-packages. (I only downloaded contrib verison.)

Input pip install opencv_contrib_python-3.4.2.16-cp37-cp37m-win_amd64.whl, checked it in the end.

Finished!!!

Git clone and copy it to the remote server

(1) git clone
(2) VCS -> Git -> Clone
(3) File -> Setting -> Projects: xxx -> Project Interpreter
(4) Tools -> Deployment -> Configuration -> Mappings
(4) Ctrl+Shift+Alt+x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.