radames commited on
Commit
9db6426
·
1 Parent(s): cfa14f6
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. nginx.conf +10 -6
  3. requirements.txt +0 -4
Dockerfile CHANGED
@@ -32,7 +32,7 @@ EXPOSE 8080
32
  USER 1000
33
 
34
  # nerfstudio commands here
35
- RUN ["ns-download-data", "nerfstudio", "--capture-name=bww_entrance"]
36
 
37
  # nerfstudio training with nginx to server the viewer
38
- CMD ["/bin/sh", "-c","ns-train nerfacto --data data/nerfstudio/bww_entrance & nginx -g 'daemon off;'"]
 
32
  USER 1000
33
 
34
  # nerfstudio commands here
35
+ RUN ["ns-download-data", "nerfstudio", "--capture-name=redwoods2"]
36
 
37
  # nerfstudio training with nginx to server the viewer
38
+ CMD ["/bin/sh", "-c","ns-train nerfacto --data data/nerfstudio/redwoods2 & nginx -g 'daemon off;'"]
nginx.conf CHANGED
@@ -6,12 +6,16 @@ server {
6
  #access_log /var/log/nginx/host.access.log main;
7
 
8
  location /server {
9
- proxy_pass http://localhost:7007;
10
- proxy_http_version 1.1;
11
- proxy_set_header Upgrade $http_upgrade;
12
- proxy_set_header Connection 'upgrade';
13
- proxy_set_header Host $host;
14
- proxy_cache_bypass $http_upgrade;
 
 
 
 
15
  }
16
  location / {
17
  root /usr/share/nginx/html;
 
6
  #access_log /var/log/nginx/host.access.log main;
7
 
8
  location /server {
9
+ proxy_pass http://localhost:7007;
10
+ proxy_http_version 1.1;
11
+ proxy_set_header Upgrade $http_upgrade;
12
+ proxy_set_header Connection 'upgrade';
13
+ proxy_set_header Host $host;
14
+ proxy_set_header X-Real-IP $remote_addr;
15
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
+ proxy_cache_bypass $http_upgrade;
17
+ proxy_read_timeout 86400;
18
+ proxy_redirect off;
19
  }
20
  location / {
21
  root /usr/share/nginx/html;
requirements.txt DELETED
@@ -1,4 +0,0 @@
1
- --extra-index-url https://download.pytorch.org/whl/cu118
2
- torch==2.0.1+cu118
3
- torchvision==0.15.2+cu118
4
- git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch