jpujol commited on
Commit
94d8127
1 Parent(s): 24daa08

- Improve commands.

Browse files

Signed-off-by: jpujol <jpujol@picvisa.com>

Files changed (1) hide show
  1. docker/README.md +8 -3
docker/README.md CHANGED
@@ -51,19 +51,24 @@ docker run --gpus all -it --rm -v $(cd ~ && pwd):/mnt stable-dreamfusion /bin/ba
51
  To train:
52
  ```
53
  export TOKEN="#HUGGING FACE ACCESS TOKEN#"
54
- docker run --gpus all -it --rm -v $(cd ~ && pwd):/mnt stable-dreamfusion /bin/bash -c "echo ${TOKEN} > TOKEN && python3 main.py --text \"a hamburger\" --workspace trial -O"
 
55
 
56
  ```
57
  Run test without gui:
58
  ```
59
  export PATH_TO_WORKSPACE="#PATH_TO_WORKSPACE#"
60
- docker run --gpus all -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $(cd ~ && pwd):/mnt -v $(cd ${PATH_TO_WORKSPACE} && pwd):/app/stable-dreamfusion/trial stable-dreamfusion /bin/bash -c "python3 main.py --workspace trial -O --test"
 
 
61
  ```
62
  Run test with gui:
63
  ```
64
  export PATH_TO_WORKSPACE="#PATH_TO_WORKSPACE#"
65
  xhost +
66
- docker run --gpus all -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $(cd ~ && pwd):/mnt -v $(cd ${PATH_TO_WORKSPACE} && pwd):/app/stable-dreamfusion/trial stable-dreamfusion /bin/bash -c "python3 main.py --workspace trial -O --test --gui"
 
 
67
  xhost -
68
  ```
69
 
 
51
  To train:
52
  ```
53
  export TOKEN="#HUGGING FACE ACCESS TOKEN#"
54
+ docker run --gpus all -it --rm -v $(cd ~ && pwd):/mnt stable-dreamfusion /bin/bash -c "echo ${TOKEN} > TOKEN \
55
+ && python3 main.py --text \"a hamburger\" --workspace trial -O"
56
 
57
  ```
58
  Run test without gui:
59
  ```
60
  export PATH_TO_WORKSPACE="#PATH_TO_WORKSPACE#"
61
+ docker run --gpus all -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $(cd ~ && pwd):/mnt \
62
+ -v $(cd ${PATH_TO_WORKSPACE} && pwd):/app/stable-dreamfusion/trial stable-dreamfusion /bin/bash -c "python3 \
63
+ main.py --workspace trial -O --test"
64
  ```
65
  Run test with gui:
66
  ```
67
  export PATH_TO_WORKSPACE="#PATH_TO_WORKSPACE#"
68
  xhost +
69
+ docker run --gpus all -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $(cd ~ && pwd):/mnt \
70
+ -v $(cd ${PATH_TO_WORKSPACE} && pwd):/app/stable-dreamfusion/trial stable-dreamfusion /bin/bash -c "python3 \
71
+ main.py --workspace trial -O --test --gui"
72
  xhost -
73
  ```
74