If on windows and you can use WSL it will significantly increase the odds you get this to work.
if you want to use windows you will need to download miniconda 3
- hold windows key tap r type powershell hit enter
- paste each line in one by one
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o miniconda.exe
start /wait "" miniconda.exe /S
del miniconda.exe
- if you get an error its probably because you dont have curl. google how to download and install curl
- it could also be the execution policy. thats the case then copy and paste this into the powershell window
Set-ExecutionPolicy RemoteSigned
-
once thats done open windows search
-
search for environment variables.
click the env variables button, highlight path then click edit
-
Youll see in my screenshot below i have the paths to specific conda folders. You need to find those same folder paths on your system and add them here. If this part is confusing and you need more help just google how to add conda to PATH
Once this is done close out of all those windows and open up a windows terminal. — -
- windows key plus r type cmd hit enter
in the terminal type
conda
-
If this doesnt come back with anything you failed to put it on PATH. Punish yourself. When youre done punishing yourself then go back and try again
-
make a folder on your desktop and name it “generator”
-
open the generator folder
-
in the windows file explorer address bar type
cmd
then hit enter. this will open a terminal in the “generator” folder.
in the terminal type:
git clone https://gitlab.com/honato/funscript-generator.git
If you get an error its probably because you dont have git. Google “how to download and install git on windows 10/11”
once thats done
type this in the same terminal
cd funscript-generator
then type the following line by line as you need:
conda create --name gen python==3.10
yes
conda activate gen
you should now see this on the terminal. (gen) means youre in an activated virtual environment named “gen”
(gen)C:\users\yourname\desktop\generator:
If so then type:
conda install pyopencl
When that is done you need to
- open the generator folder in file explorer and open the file thats named ‘requirements.txt’.
- Delete the line that says ‘pyopencl’.
- file and save
The resulting requirements.txt file should be this:
opencv-python
numpy
tqdm
scipy
gradio
imutils==0.5.4
back in the terminal type
pip install -r requirements.txt
This should finish WITHOUT ERROR. If you get an error its because you most likely need cuda toolkit and or a c/cpp compiler. Cuda toolkit isnt too bad but if its a c compiler, I am not willing to help a beginner install that for no compensation, it would take all day and i’d end up wanting to kill you.
Anyways if it finishes then congrats you’re done. to run it you can enter python funscript_gui.py in the same terminal.
Later on to run it you need to:
enter a terminal in the generator folder
make sure the “gen” conda env is activated
conda activate gen
then type
python funscript_gui.py
that should open the ui, which looks like this on my machine: