Skip to content

ainrichman/PythonCourseCode-NWPU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Course Code

This repo contains the code for Python Course that I take for NWPU students.

This ReadMe describes how to use the code.

Instructions

In the beginning, I assume you are running your code on Windows 10 or 11 Platform.

  1. You are required to setup Python environment with version 3.8 or higher. I recommend miniconda package from https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Windows-x86_64.exe

  2. After you have installed Python. Your terminal is assumed to have python and pip in Path environment variable.

  3. Clone this repo by

git clone https://github.com/ainrichman/PythonCourseCode-NWPU

  1. Enter the cloned repo in your local disk. Then you will need to install necessary python packages by:

pip install -r requirements.txt

  1. Install Google Chrome explorer. View the version of your Chrome for example :106.0.5249.119.

  2. Download Chrome driver corresponding to your Chrome version from https://chromedriver.chromium.org/downloads .

  3. If you have issues with step 5 and 6. I prepared the Chrome offline installer and Chrome Driver in this repo in the folder ‘/chrome’.

  4. Copy the Chrome driver to the folder /crawler and /test of this repo.

  5. (Optional) I strongly recommend you use Jetbrains' Python Development IDE Pycharm from https://www.jetbrains.com/pycharm/. You can run Pycharm and import this repo. Then you will be able to run the examples of this repo directly by Pycharm.

  6. Download Stable diffusion model from https://pan.baidu.com/s/1wSQIH246RL0J-MonXbElTQ code:3auv. Copy the whole folder to /diffstable/. (Running Diffuse stable AI painting model requires you have at least 4G GPU Memory). You have to donwload NVIDIA Driver from https://www.nvidia.com/download/index.aspx according to your GPU card. If you have other issues with the instructions above. Please contact with me.

  7. For the first time run Faceswap, you need to download inswapper_128.onnx file and copy it to faceswap/. url: https://huggingface.co/ezioruan/inswapper_128.onnx/blob/main/inswapper_128.onnx

About

Code Related to Python course in NWPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages