-
Notifications
You must be signed in to change notification settings - Fork 66
Installation
biniou uses a Python virtual environment, therefore it is cross-platform and you can run it on the following platforms :
• Debian 12 / Ubuntu 22.04.3
• Windows 10 / Windows 11
• macOS Homebrew install
• Docker via Dockerfile
biniou itself works inside his Python virtual environment and thus, should be harmless to your system, but its prerequisites could conflict with already installed softwares. If you're not sure how to install, and have this option, use the Dockerfile install method, which does not modify at all your operating system and create an isolated docker container. You could either use a virtual machine with a supported OS.
- Install the pre-requisites as root :
apt install git pip python3 python3-venv gcc perl make ffmpeg openssl
- Clone this repository as user :
git clone https://github.com/Woolverine94/biniou.git
- Launch the installer :
cd ./biniou
./install.sh
Windows installation has more prerequisites than linux one, and requires following softwares (that will be installed automatically during the install process) :
- Git
- Python
- OpenSSL
- Visual Studio Build tools
- Windows 10/11 SDK
- Vcredist x86/64
- ffmpeg
- ... and all their dependencies.
It's a lot of changes on your operating system, and this could potentially bring unwanted behaviors on your system, depending on which softwares are already installed on it.
-
Download wget for windows :
https://eternallybored.org/misc/wget/1.21.4/64/wget.exe
Note : DO NOT move wget from your default downloads folder, it will be used by the install script and is expected to be in the same directory.
-
Download and execute from your default downloads folder :
* for Windows 10 : install_win10.cmd
* for Windows 11 : install_win11.cmd
(right-click on the link and select "Save Target/Link as ..." to download)
All the installation is automated, but Windows UAC will ask you confirmation for each software installed during the "prerequisites" phase.
- Install Homebrew for your operating system
- Install required homebrew "bottles" :
brew install git python3 gcc gcc@11 perl make ffmpeg openssl
- Install python virtualenv :
python3 -m pip install virtualenv
- Clone this repository as user :
git clone https://github.com/Woolverine94/biniou.git
- Launch the installer :
cd ./biniou
./install.sh
These instructions assumes that you already have a configured and working docker environment.
- Create the docker image :
docker build -t biniou https://github.com/Woolverine94/biniou.git
- Launch the container :
docker run -it -p 7860:7860 \
-v biniou_outputs:/home/biniou/biniou/outputs \
-v biniou_models:/home/biniou/biniou/models \
-v biniou_cache:/home/biniou/.cache/huggingface \
-v biniou_gfpgan:/home/biniou/biniou/gfpgan \
biniou:latest
Note : to save storage space, the previous container launch command defines common shared volumes for all biniou containers.