AI Personal Learning
and practical guidance

White one-click deployment github all kinds of AI open source projects

github on all kinds of fun AI project, may be curious to run to try, but for me this kind of white people is very unfriendly, even if you look at the installation instructions to operate in the end can not run successfully, especially windows users, the need for a variety of front installation of all kinds of environments, manually install dependencies, configure the parameters of the file, for the operation of people who do not know the code is very strenuous.

You can try to download Pinokio Deploying all kinds of AI projects, but I've had a lot of problems with Pinokio and it hasn't gone well. So with the next content...


White one-click deployment github all kinds of AI open source projects

 

Difficulties in deploying AI projects for white people

  1. Base dependency environment installation is messed up and can't be fixed
  2. Not sure how to execute a file with a .py extension
  3. The project itself does not have a webUI interface and will not operate from the command line
  4. Hardware constraints prevented the launch of the project
  5. Requires manual installation of the frontend files (or a separate download of the model to be placed in the project directory after deployment)
  6. After downloading the project code, you need to configure the parameter file before you can run the program.
  7. Installation of docker fails for windows users
  8. Network environment cannot download overseas resources

 

Reflections on how to address the above issues

  1. Learn to deploy dependent environments in anaconda; or write a more generalized one-click deployment script for environments, I'll go with the latter.
  2. Write a one-click deployment script that also solves the problem of running files with a .py extension, as per "1".
  3. Popular projects usually have webUI branches, try searching for "project name + webui".
  4. insoluble (i.e. unable to solve)
  5. Can only look at the official help document, you can enter the document to chatgpt, let him guide you to operate, really do not understand no solution!
  6. Can only look at the official help document, you can enter the document to chatgpt, let him guide you to operate, really do not understand no solution!
  7. Learn to install docker, windows tutorials can be found, the core is to install Ubuntu in the wsl command, search for related tutorials on their own
  8. No solution, think of something, or find a domestic mirror...

 

About One-Click Deployment Scripts

In fact, writing a one-click deployment script to solve the environment + run command problem can cover the vast majority of white people, so our goal is to let the white people as long as you enter a line of simple commands, you can complete a variety of projects python project deployment, and run the AI project, the expected goal is to solve the one-click 60% AI project can be installed smoothly with one click.

Here we start to operate, you first do not have to understand why to do so, follow the step-by-step operation down to say, I use windows system demonstration.

 

1. First make sure that your computer has winget installed.

Type cmd in "Run" and press enter to open the command line interface, type winget -v to check if winget is installed, and the version number means it has been installed.

Search for "how to install winget" without installing it.

White one-click deployment github on all kinds of AI open source projects-1

 

2. Download the script file I provided, unzip it and put it in any English directory.

Chief AI Sharing CircleThis content has been hidden by the author, please enter the verification code to view the content
Captcha:
Please pay attention to this site WeChat public number, reply "CAPTCHA, a type of challenge-response test (computing)", get the verification code. Search in WeChat for "Chief AI Sharing Circle"or"Looks-AI"or WeChat scanning the right side of the QR code can be concerned about this site WeChat public number.

3. Add the full English directory to the system environment variable

My directory is D:autogit, to add it to the system environment variables, first find the location of the system environment variables and click on "Environment Variables":

Method 1: Win+r, then type sysdm.cpl and press Enter.

Method 2: Type: system environment variables in the search box at the bottom and the

White one-click deployment github on all kinds of AI open source projects-1

 

4. Scroll down to find Path and double-click on it

White one-click deployment github on all kinds of AI open source projects-1

 

5. Click New, and paste the previously created directory, click to confirm it

White one-click deployment github on all kinds of AI open source projects-1

 

6. Check if the system environment variables are set successfully

Open the command line interface, type shell in the search box, find and open "windows powershell" (don't type cmd as it may not start the system environment variables)

White one-click deployment github on all kinds of AI open source projects-1

 

If the following figure appears, complementing the command, the environment variable is active

White one-click deployment github on all kinds of AI open source projects-1

 

Now that the move to the environment is complete, let's move on to deploying the AI project.

 

 

Deployment of AI projects

 

1. Find the git address of the project and click copy.

White one-click deployment github on all kinds of AI open source projects-1

 

2. Select the installation directory of the project, right-click in the directory and click "Open in Terminal".

White one-click deployment github on all kinds of AI open source projects-1

 

3. Deployment of new projects

Type ` auto_init_py_git.bat`, tap space, paste the git address you copied earlier, and press enter.

auto_init_py_git.bat: this command downloads the project file and executes the deployment, if you have already downloaded the project file, use the `auto_init_py.bat` command

White one-click deployment github on all kinds of AI open source projects-1

 

4. Execute project installation

You will encounter two situations, one is the command line is stuck, a moment on the exit, basically network problems, the default domestic network can not be installed directly, think of ways to do it yourself, for example, the following error interface (there is a messy code, meaning that the exit is installed):

White one-click deployment github on all kinds of AI open source projects-1

 

During normal installation, you will see the following screen:

White one-click deployment github on all kinds of AI open source projects-1

 

Then jump to the torch installation interface (the installation package is large, you need to wait a little longer):White one-click deployment github on all kinds of AI open source projects-1

 

Note: The installed torch version should be suitable for most projects, some projects need the latest version, you can edit the auto_init_py_git.bat file with notepad, delete the version number in the file and re-execute the installation:

White one-click deployment github on all kinds of AI open source projects-1

 

5. found missing python dependency how to deal with

Edit the auto_init_py_git.bat file with Notepad and at the bottom you will find the following:

White one-click deployment github on all kinds of AI open source projects-1

 

It means to find that dependency filename from the downloaded git project and install the python dependency according to the contents of the file, let's see if there is such a file in the downloaded git project:

White one-click deployment github on all kinds of AI open source projects-1

 

Good thing... Usually the project author provides this file, if not, or if the dependency file is renamed, you need to install the dependency yourself or edit this filename in auto_init_py_git.bat.

 

6. Enter the following command

pip install -e.

 

7. Run the startup command

The startup command I found from the help documentation, enter it in the project directory command line and press enter to start it.

White one-click deployment github on all kinds of AI open source projects-1

 

White one-click deployment github on all kinds of AI open source projects-1

 

What should I do if I get an error after entering the startup command?

 

Directly copy the entered command and the returned error message to chatgpt to troubleshoot, follow his instructions, usually caused by the lack of basic dependencies. For example

White one-click deployment github on all kinds of AI open source projects-1

 

There is also a special kind of error reporting:

Recall the "Difficulty 5" mentioned in the beginning, that is, the deployed project requires you to download the large model separately, and then put it in the project directory, some projects will automatically download the model for the first time, while some projects require you to download it according to the official help file.

Some projects automatically download domestic models when they start and will ask you toClosure of the scientific environmentPlease note.

AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " White one-click deployment github all kinds of AI open source projects

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish