Added ability to run both inference scripts from docker

This commit is contained in:
ko1N
2021-01-17 16:05:48 +01:00
parent ea994bbe34
commit 0f980597a1
4 changed files with 11 additions and 4 deletions

View File

@@ -90,7 +90,10 @@ docker build -t rife -f docker/Dockerfile .
Running the container:
```
docker run --rm -it -v $PWD:/host rife:latest --exp=1 --video=untitled.mp4 --output=untitled_rife.mp4
docker run --rm -it -v $PWD:/host rife:latest inference_video --exp=1 --video=untitled.mp4 --output=untitled_rife.mp4
```
```
docker run --rm -it -v $PWD:/host rife:latest inference_img --img img0.png img1.png --exp=4
```
## Evaluation

View File

@@ -9,13 +9,15 @@ WORKDIR /rife
COPY . .
RUN pip3 install -r requirements.txt
ADD docker/rife.sh /usr/local/bin/rife
RUN chmod +x /usr/local/bin/rife
ADD docker/inference_img /usr/local/bin/inference_img
RUN chmod +x /usr/local/bin/inference_img
ADD docker/inference_video /usr/local/bin/inference_video
RUN chmod +x /usr/local/bin/inference_video
# add pre-trained models
COPY docker/pretrained_models /rife/train_log
WORKDIR /host
ENTRYPOINT ["rife"]
ENTRYPOINT ["/bin/bash"]
ENV NVIDIA_DRIVER_CAPABILITIES all

2
docker/inference_img Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
python3 /rife/inference_img.py $@