mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
add cpu dockerfile
This commit is contained in:
parent
46bda1d683
commit
1719e5e1bd
4 changed files with 72 additions and 0 deletions
58
DockerCPU.md
Normal file
58
DockerCPU.md
Normal file
|
@ -0,0 +1,58 @@
|
|||
### 1. Install Docker
|
||||
|
||||
[Docker Desktop for Mac] (https://hub.docker.com/editions/community/docker-ce-desktop-mac)
|
||||
|
||||
### 2. Build Docker Image For
|
||||
|
||||
```
|
||||
$ docker build -t deepfacelab-cpu -f Dockerfile.cpu .
|
||||
```
|
||||
|
||||
### 3. Mount deepfacelab volume and Run it
|
||||
|
||||
```
|
||||
$ docker run -p 8888:8888 --hostname deepfacelab-cpu --name deepfacelab-cpu -v **your source path**:/srv deepfacelab-cpu
|
||||
# for example
|
||||
$ docker run -p 8888:8888 --hostname deepfacelab-cpu --name deepfacelab-cpu -v /Users/plucky/own/DeepFaceLab:/srv deepfacelab-cpu
|
||||
```
|
||||
|
||||
then you will see the log:
|
||||
|
||||
```
|
||||
The Jupyter Notebook is running at:
|
||||
http://(deepfacelab-cpu or 127.0.0.1):8888/?token=your token
|
||||
```
|
||||
|
||||
### 4. Open a new terminal to run deepfacelab in /srv
|
||||
|
||||
```
|
||||
$ docker exec -it deepfacelab-cpu bash
|
||||
```
|
||||
|
||||
### 5. Use jupyter in deepfacelab-cpu bash
|
||||
|
||||
```
|
||||
$ jupyter notebook list
|
||||
```
|
||||
or just open it on your browser `http://127.0.0.1:8888/?token=your_token`
|
||||
|
||||
### 6. Close or Kill Docker Container
|
||||
|
||||
```
|
||||
$ docker kill deepfacelab-cpu
|
||||
```
|
||||
|
||||
### 7. Start Docker Container
|
||||
|
||||
```
|
||||
$ docker start -i deepfacelab-cpu
|
||||
$ docker exec -it deepfacelab-cpu bash
|
||||
```
|
||||
|
||||
### 8. enjoy it
|
||||
|
||||
```
|
||||
$ cd ../srv/
|
||||
$ chmod +x main.sh
|
||||
$ ./main.sh
|
||||
```
|
5
DockerGPU.md
Normal file
5
DockerGPU.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
### NO GPU Machine YET
|
||||
Mac Pro or Mac Mini GPU not support yet
|
||||
|
||||
1. Install Nvidia-Docker & Restart Docker Service
|
||||
https://github.com/NVIDIA/nvidia-docker
|
0
main.sh
Normal file → Executable file
0
main.sh
Normal file → Executable file
9
requirements-cpu-docker.txt
Normal file
9
requirements-cpu-docker.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
pathlib==1.0.1
|
||||
scandir==1.6
|
||||
h5py==2.7.1
|
||||
Keras==2.2.4
|
||||
opencv-python==3.4.0.12
|
||||
scikit-image
|
||||
dlib==19.10.0
|
||||
tqdm
|
||||
git+https://www.github.com/keras-team/keras-contrib.git
|
Loading…
Add table
Add a link
Reference in a new issue