Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Nov 2022 16:18:06 +0100
From:      Mario Marietto <marietto2008@gmail.com>
To:        ports@freebsd.org
Subject:   =?UTF-8?Q?Fwd=3A_The_installation_of_=E2=80=9CStable_Diffusion_web_UI?= =?UTF-8?Q?=E2=80=9D_natively_on_FreeBSD_fails_because_can=E2=80=99t_install_torch_?= =?UTF-8?Q?and_torchvision?=
Message-ID:  <CA%2B1FSijaF-W8PJo9GtK0S-4BFtSBhD6FjbPu-ZJLBwQ%2Bcymoew@mail.gmail.com>
In-Reply-To: <CA%2B1FSihJdXHeHL1pUD3SB6vujhG0M1-9wAqeFwjCS8r4syu7mQ@mail.gmail.com>
References:  <CA%2B1FSihJdXHeHL1pUD3SB6vujhG0M1-9wAqeFwjCS8r4syu7mQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000075b71905edd4561f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello to everyone.

I=E2=80=99m trying to clone and install the =E2=80=9C*Stable Diffusion web =
UI*=E2=80=9D on
FreeBSD,following this mini tutorial :


GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI
<https://github.com/AUTOMATIC1111/stable-diffusion-webui>;


This is what I came up with :


[marietto@marietto ~/Desktop/Files]$ git clone
https://github.com/AUTOMATIC1111/stable-diffusion-webui

[marietto@marietto ~/Desktop/Files]$ cd stable-diffusion-webui

[marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ sudo pkg
install py39-pytorchvideo

[marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ mkdir venv

[marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ python3 -m venv=
 venv

[marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$ . venv/bin/acti=
vate

(venv) [marietto@marietto ~/Desktop/Files/stable-diffusion-webui]$
python3 -m pip install torch torchvision=3D=3D0.13.1+cu113
--extra-index-url https://download.pytorch.org/whl/cu113
Looking in indexes:
https://pypi.org/simple,https:/download.pytorch.org/whl/cu113
ERROR: Could not find a version that satisfies the requirement torch
(from versions: none)
ERROR: No matching distribution found for torch


The script works up to a point and then devolves into stuff that I don=E2=
=80=99t
think has much to do with FreeBSD. The venv gets created and the failure
doesn=E2=80=99t happen until the very end of the script (where the app woul=
d take
over).

Also just activating the virtual environment and manually running
[launch.py] seems to result in the same error, which really looks to be an
issue with the world of python=E2=80=A6

https://pastebin.com/raw/jTNQ62dM

Apparently it=E2=80=99s trying to install pytorch but can=E2=80=99t. I don=
=E2=80=99t know what to
do next.
--=20
Mario.

--00000000000075b71905edd4561f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr"><div><p>Hello =
to everyone.</p>
<p>I=E2=80=99m trying to clone and install the =E2=80=9C<b>Stable Diffusion=
 web UI</b>=E2=80=9D on FreeBSD,following this mini tutorial :</p><br><div>=
<img src=3D"https://opengraph.githubassets.com/4738fe0d0fde754283d030f189c2=
4b8f8f2613db844ca79858bd4c20a0ee64bf/AUTOMATIC1111/stable-diffusion-webui" =
width=3D"690" height=3D"345"></div>

<h3><br></h3><h3><a href=3D"https://github.com/AUTOMATIC1111/stable-diffusi=
on-webui" rel=3D"noopener nofollow ugc" target=3D"_blank">GitHub - AUTOMATI=
C1111/stable-diffusion-webui: Stable Diffusion web UI</a></h3>

  <p></p>


 =20

  <div>
   =20
   =20
  </div>

  <div style=3D"clear:both"></div>


<p><br></p><p>This is what I came up with :</p><p><br></p>
<pre><code>[marietto<span>@marietto</span> ~<span>/Desktop/</span><span>Fil=
es</span>]$ git clone <span>https</span>:<span>//<a href=3D"http://github.c=
om/AUTOMATIC1111/stable-diffusion-webui" target=3D"_blank">github.com/AUTOM=
ATIC1111/stable-diffusion-webui</a></span>

[marietto<span>@marietto</span> ~<span>/Desktop/</span><span>Files</span>]$=
 cd stable-diffusion-webui

[marietto<span>@marietto</span> ~<span>/Desktop/</span><span>Files</span>/s=
table-diffusion-webui]$ sudo pkg install py39-pytorchvideo

[marietto<span>@marietto</span> ~<span>/Desktop/</span><span>Files</span>/s=
table-diffusion-webui]$ mkdir venv

[marietto<span>@marietto</span> ~<span>/Desktop/</span><span>Files</span>/s=
table-diffusion-webui]$ python3 -m venv venv

[marietto<span>@marietto</span> ~<span>/Desktop/</span><span>Files</span>/s=
table-diffusion-webui]$ . venv/bin/activate

(venv) [marietto<span>@marietto</span> ~<span>/Desktop/</span><span>Files</=
span>/stable-diffusion-webui]$ python3 -m pip install torch torchvision=3D=
=3D<span>0.13</span><span>.1</span>+cu113 --extra-index-url <span>https</sp=
an>:<span>//<a href=3D"http://download.pytorch.org/whl/cu113" target=3D"_bl=
ank">download.pytorch.org/whl/cu113</a></span>

<span>Looking</span> <span>in</span> <span>indexes</span>: <span>https</spa=
n>:<span>//<a href=3D"http://pypi.org/simple,https:/download.pytorch.org/wh=
l/cu113" target=3D"_blank">pypi.org/simple,https:/download.pytorch.org/whl/=
cu113</a></span>

<span>ERROR</span>: <span>Could</span> not find a version that satisfies th=
e requirement torch (<span>from</span> <span>versions</span>: none)

<span>ERROR</span>: <span>No</span> matching distribution found <span>for</=
span> torch
</code></pre>
<p><br></p><p>The script works up to a point and then devolves into stuff t=
hat I=20
don=E2=80=99t think has much to do with FreeBSD. The venv gets created and =
the=20
failure doesn=E2=80=99t happen until the very end of the script (where the =
app=20
would take over).</p>
<p>Also just activating the virtual environment and manually running=20
[launch.py] seems to result in the same error, which really looks to be=20
an issue with the world of python=E2=80=A6</p>
<p><a href=3D"https://pastebin.com/raw/jTNQ62dM" rel=3D"noopener nofollow u=
gc" target=3D"_blank">https://pastebin.com/raw/jTNQ62dM</a></p>;
<p>Apparently it=E2=80=99s trying to install pytorch but can=E2=80=99t. I d=
on=E2=80=99t know what to do next.</p></div></div></div>-- <br><div dir=3D"=
ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature">Mario.<br=
></div></div>

--00000000000075b71905edd4561f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijaF-W8PJo9GtK0S-4BFtSBhD6FjbPu-ZJLBwQ%2Bcymoew>