Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've noticed that many people have a hard time running this code outside of Linux. Also, there are individuals who won't monetize others' hard work. These are the reasons for this pull request. I am open to suggestions
Install Docker and Nvidia-container-runtime. Place pretrained_models as expected. Docker will ignore models in the building stage.
Building and Running the Docker Image
Run the following command to build and start the Docker image/container::
Open a terminal and create an SSH tunnel to the Docker container:
Password:
root
Execute
./entrypoint.sh
to run the Gradio demo. The Gradio demo will be available at http://localhost:7860.The SSH tunnel needs to remain active at all times for the Gradio demo to work. Additionally, you need to be inside the Docker container to execute commands.
Before running commands like:
or any other command that is not a script that automatically activates the environment, make sure to have the conda environment active:
A volume is mounted at the root directory and all changes, files, etc. will be saved in the root directory and accessible from the Docker container.