In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
The content of this article mainly focuses on what is the configuration of Caffe+Windows7+Visual Studio 2015+Python+CPU. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!
Preface
Caffe was configured before, when it was Visual Studio 2013, because there were only 2013 tutorials at that time. After reinstalling the computer, I never calmed down to configure caffe and failed several times. This time, I found the right tutorials and resources, and finally configured successfully. This article does not record the specific steps, but only gives the link for my reference. It is better for those who need to see the original Github. Only a few points that need to be noted are recorded here.
1. Caffe + Python
Things would be much easier if only Caffe's Python interface was used instead of C++ interface. On the Windows branch of Github of Caffe, there are several precompiled binaries.
The Windows branch of Caffe's Github: https://github.com/BVLC/caffe/tree/windows
You can choose to download according to your python version and GPU situation. I have Anaconda2 (Python2.7) and Anaconda3 (python3.6) and VS2015 on my computer, but there is no GPU available, so I downloaded the third release version. After downloading, copy the entire caffe\ python\ caffe folder directly to the\ Anaconda2\ Lib\ site-packages folder.
I failed N times before because I didn't copy the whole folder, but only one _ caffe.pyd or all the files under the folder! And there will be errors like the following.
It will be fine if you copy the whole folder.
One thing I'm not sure about here is: maybe it's because I've configured it several times before, and although I failed, I already have all kinds of environment variables, so it went so well this time. If anyone is successful in accordance with the above configuration and can prove that it has nothing to do with other configurations, please give us some feedback to let you understand.
2. Caffe + Visual Stuido 2015
I think maybe I am too stupid, the precompiled file mentioned above also has a C++ version, but I have not been able to configure it successfully. And in addition to the precompiled files, there are compilation tutorials below. I still didn't make it.
After many failures, I have summed up the experience, that is:
If you want to succeed, find the right tutorial.
So far, I haven't compiled successfully with the official tutorial, so I have to find another way. Sure enough, I found one that can be compiled successfully, supporting Visual Studio 2015, and it's very simple. This is a pleasant surprise.
Because the tutorial is simple and clear, I will not repeat it any more. You can read it directly if you need to compile it. The URL is as follows:
Configure Caffe in one hour for Windows users:
Https://github.com/happynear/caffe-windows
The most touching thing about this tutorial is that it directly gives the download address of third party libraries, which can be downloaded from Baidu Cloud. Unzip it to. / windows/thirdparty/ after download. Instead of unzipping the whole folder containing all the folders, you should put the extracted folders under the. / windows/thirdparty/ folder.
Pycaffe compilation failed during compilation, but since there is already a simpler way to configure pycaffe, I don't care much about it here. We'll find out the reason for the failure later. You are also welcome to give us your advice.
Thank you for your reading. I believe you have a certain understanding of "what is the configuration of Caffe+Windows7+Visual Studio 2015+Python+CPU". Go and practice it. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.