1. Why do you want to connect to the server remotely?
It is impractical to use the CPU of a notebook to run a deep learning model, especially in the direction of computer vision, so most of us do it - write the code locally, and then upload it to the server to run .
However, every time the code is modified, the code must be uploaded to the server again, which is very cumbersome. If the code can be directly synchronized to the server , wouldn't it save a lot of effort! This is what PyCharm does to remotely connect to the server.
2. Configuration process
1. Download the professional version of PyCharm
Note : PyCharm has two versions, professional (professional version) and community (community version), only the professional version supports the function of connecting to the server remotely. Download address
Note : PyCharm Professional Edition is not free. In addition to directly purchasing the right to use, you can register on the Jetrains platform through your school email address to obtain free use rights. The email must end with the .edu suffix.
How to apply for edu mailbox?
Some schools will assign a mailbox starting with the student number and ending with edu, and you can activate it yourself. Like our school, as long as you log in to the school's "information portal", the e-mail will be automatically generated, and you don't need to apply for registration. You can consult the school yourself for details, so I won't go into details here. Friends who are really not sure, you can leave a message in the comment area, and I will reply separately. The steps to obtain the right to use PyCharm for free are as follows:
(1) Register a JetBrains account through the edu mailbox: registration address
(2) Fill in the relevant information, use the edu mailbox for the mailbox: fill in the information address
(3) This step is the same as using the Sina mailbox, if the information is filled in successfully, it will send a verification email to your edu mailbox, and then obtain the license process, it will be in It is displayed in the email, you can operate according to the content of the email.
(4) When you open the professional version of PyCharm, you will be asked to verify your identity by logging in or filling in the license.
2. Set the remote server in PyCharm
(1)Tools—>Deployment—>Configuration
(2) Click + in the upper left corner, select SFTP connection, and choose a name at will
(3) Set SSH parameters:
(4) Set the mapping address:
Tools —> Deployment ----> Options
3. Set the interpreter in PyCharm:
Set the python version that the terminal runs: File -> Settings -> Tools -> SSH Terminal
If you have followed the above steps to configure your pycharm one by one, then congratulations, you already know how to use pycharm to connect to the server remotely, then continue After you get down, you can run deep learning through pycharm;
if you have any problems during the configuration process, don't be impatient, please check whether you have missed some steps, because the steps in the tutorial are extremely detailed And it is necessary and cannot be omitted. If any link is missing, the configuration will fail.