GIMP3-ML
DESKTOP-F04AGRR\Kritik Soman 3 years ago
parent 06a9b54600
commit 8730796215

@ -17,6 +17,13 @@
</Attribute>
</value>
</entry>
<entry key="/gimpml/tools/complete_install.py">
<value>
<Attribute>
<option name="separator" value="," />
</Attribute>
</value>
</entry>
<entry key="/gimpml/tools/inpainting.py">
<value>
<Attribute>

@ -12,8 +12,8 @@ import gimpml
def setup_python_weights(install_location=None):
if not install_location:
# install_location = os.path.join(os.path.expanduser("~"), "GIMP-ML")
install_location = os.path.join(os.environ.get("HOMEDRIVE"), os.environ.get("HOMEPATH"), "GIMP-ML")
install_location = os.path.join(os.path.expanduser("~"), "GIMP-ML")
# install_location = os.path.join(os.environ.get("HOMEDRIVE"), os.environ.get("HOMEPATH"), "GIMP-ML")
if not os.path.isdir(install_location):
os.mkdir(install_location)
python_string = "python"

@ -18,6 +18,7 @@ if python --version 2>&1 | grep -q '^Python 3\.'; then #
python -m pip3 install torch torchvision -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html #
python -m pip install GIMP-ML/.
python -c "import gimpml; gimpml.setup_python_weights()" #
chmod -R 777 gimpenv3/lib/ #
deactivate #
elif python3 --version 2>&1 | grep -q '^Python 3\.'; then #
echo 'Python 3 found.' #
@ -27,6 +28,7 @@ elif python3 --version 2>&1 | grep -q '^Python 3\.'; then #
python3 -m pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html #
python3 -m pip install GIMP-ML/.
python3 -c "import gimpml; gimpml.setup_python_weights()" #
chmod -R 777 gimpenv3/lib/ #
deactivate #
else #
echo 'Python 3 NOT found' #

Loading…
Cancel
Save