FramePack動かしてみる

前回、

 AUTOMATIC1111 / Stable Diffusion web UI を久しぶりに動かしたら動かないので動くようにする。

でAIいじりに戻ってきたのでこのままの勢いで動画までやってみます。

なんとなく会社の人に FramePack がいいよと言われたので言われるがままに。

GitHub - lllyasviel/FramePack: Lets make video diffusion practical!

Windows用はリリースのパッケージがありますが、Linux版はないので手作業でgitから取ってきて

$ git clone https://github.com/lllyasviel/FramePack

Cloning into 'FramePack'...

remote: Enumerating objects: 90, done.

remote: Counting objects: 100% (48/48), done.

remote: Compressing objects: 100% (26/26), done.

remote: Total 90 (delta 27), reused 22 (delta 22), pack-reused 42 (from 2)

Receiving objects: 100% (90/90), 52.31 KiB | 2.62 MiB/s, done.

Resolving deltas: 100% (41/41), done.

Pythonのバージョンも指定があるので

We recommend having an independent Python 3.10.

3.10が入ってたか確認

$ sudo apt list python3.*

一覧表示... 完了

python3.11-distutils/now 3.11.10-1+noble1 all [インストール済み、ローカル]

python3.11-lib2to3/now 3.11.10-1+noble1 all [インストール済み、ローカル]

python3.11-minimal/now 3.11.10-1+noble1 amd64 [インストール済み、ローカル]

python3.11-venv/now 3.11.10-1+noble1 amd64 [インストール済み、ローカル]

python3.11/now 3.11.10-1+noble1 amd64 [インストール済み、ローカル]

python3.12-dbg/noble-updates,noble-security 3.12.3-1ubuntu0.7 amd64

python3.12-dbg/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-dev/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12-dev/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-doc/noble-updates,noble-updates,noble-security,noble-security 3.12.3-1ubuntu0.7 all

python3.12-examples/noble-updates,noble-updates,noble-security,noble-security 3.12.3-1ubuntu0.7 all

python3.12-full/noble-updates,noble-security 3.12.3-1ubuntu0.7 amd64

python3.12-full/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-minimal/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12-minimal/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-nopie/noble-updates,noble-security 3.12.3-1ubuntu0.7 amd64

python3.12-nopie/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-venv/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12-venv/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

入ってません。というかリポジトリも追加してないですね。

いれときます。

$ sudo add-apt-repository ppa:deadsnakes/ppa

リポジトリ: 'Types: deb

URIs: https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu/

Suites: noble

Components: main

'

概要:

This PPA contains more recent Python versions packaged for Ubuntu.


Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.


Update Note

===========

Please use this repository instead of ppa:fkrull/deadsnakes.


Reporting Issues

================


Issues can be reported in the master issue tracker at:

https://github.com/deadsnakes/issues/issues


Supported Ubuntu and Python Versions

====================================


- Ubuntu 20.04 (focal) Python3.5 - Python3.7, Python3.9 - Python3.13

- Ubuntu 22.04 (jammy) Python3.7 - Python3.9, Python3.11 - Python3.13

- Ubuntu 24.04 (noble) Python3.7 - Python3.11, Python3.13

- Note: Python2.7 (focal, jammy), Python 3.8 (focal), Python 3.10 (jammy), Python3.12 (noble) are not provided by deadsnakes as upstream ubuntu provides those packages.


Why some packages aren't built:

- Note: for focal, older python versions require libssl<1.1 so they are not currently built

- Note: for jammy and noble, older python versions requre libssl<3 so they are not currently built

- If you need these, reach out to asottile to set up a private ppa


The packages may also work on other versions of Ubuntu or Debian, but that is not tested or supported.


Packages

========


The packages provided here are loosely based on the debian upstream packages with some modifications to make them more usable as non-default pythons and on ubuntu.  As such, the packages follow debian's patterns and often do not include a full python distribution with just `apt install python#.#`.  Here is a list of packages that may be useful along with the default install:


- `python#.#-dev`: includes development headers for building C extensions

- `python#.#-venv`: provides the standard library `venv` module

- `python#.#-distutils`: provides the standard library `distutils` module

- `python#.#-lib2to3`: provides the `2to3-#.#` utility as well as the standard library `lib2to3` module

- `python#.#-gdbm`: provides the standard library `dbm.gnu` module

- `python#.#-tk`: provides the standard library `tkinter` module


Third-Party Python Modules

==========================


Python modules in the official Ubuntu repositories are packaged to work with the Python interpreters from the official repositories. Accordingly, they generally won't work with the Python interpreters from this PPA. As an exception, pure-Python modules for Python 3 will work, but any compiled extension modules won't.


To install 3rd-party Python modules, you should use the common Python packaging tools.  For an introduction into the Python packaging ecosystem and its tools, refer to the Python Packaging User Guide:

https://packaging.python.org/installing/


Sources

=======

The package sources are available at:

https://github.com/deadsnakes/


Nightly Builds

==============


For nightly builds, see ppa:deadsnakes/nightly https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly

より詳しい情報: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

リポジトリを追加しています。

続けるには「Enter」キーを、中止するにはCtrl-cを押してください。

ヒット:1 https://packages.microsoft.com/repos/edge stable InRelease

取得:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]                                                             

ヒット:3 http://jp.archive.ubuntu.com/ubuntu noble InRelease                                                                                       

取得:4 http://jp.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]                                                                        

取得:5 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble InRelease [17.8 kB]          

取得:6 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.6 kB]              

取得:7 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 Packages [28.8 kB]                             

取得:8 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]       

取得:9 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [52.3 kB]           

取得:10 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [212 B]                                           

取得:11 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main i386 Packages [17.0 kB]

取得:12 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main Translation-en [5,408 B]

取得:13 http://jp.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]

取得:14 http://jp.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1,282 kB]

取得:15 http://jp.archive.ubuntu.com/ubuntu noble-updates/main i386 Packages [501 kB]

取得:16 http://jp.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [163 kB]

取得:17 http://jp.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]

取得:18 http://jp.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1,113 kB]

取得:19 http://jp.archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [672 kB]

取得:20 http://jp.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [377 kB]

取得:21 http://jp.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]

取得:22 http://jp.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7,092 B]

取得:23 http://jp.archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]

取得:24 http://jp.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [28.4 kB]

取得:25 http://jp.archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]

4,667 kB を 4秒 で取得しました (1,111 kB/s)

パッケージリストを読み込んでいます... 完了

N: リポジトリ 'https://packages.microsoft.com/repos/edge stable InRelease' がアーキテクチャ 'i386' をサポートしないため設定ファイル 'main/binary-i386/Packages' の取得をスキップ

入ったはず。もう一度確認します。

$ sudo apt list python3.*

一覧表示... 完了

python3.10-dbg/noble 3.10.18-1+noble1 amd64

python3.10-dev/noble 3.10.18-1+noble1 amd64

python3.10-distutils/noble,noble 3.10.18-1+noble1 all

python3.10-examples/noble,noble 3.10.18-1+noble1 all

python3.10-full/noble 3.10.18-1+noble1 amd64

python3.10-gdbm-dbg/noble 3.10.18-1+noble1 amd64

python3.10-gdbm/noble 3.10.18-1+noble1 amd64

python3.10-lib2to3/noble,noble 3.10.18-1+noble1 all

python3.10-minimal/noble 3.10.18-1+noble1 amd64

python3.10-tk-dbg/noble 3.10.18-1+noble1 amd64

python3.10-tk/noble 3.10.18-1+noble1 amd64

python3.10-venv/noble 3.10.18-1+noble1 amd64

python3.10/noble 3.10.18-1+noble1 amd64

python3.11-dbg/noble 3.11.13-1+noble1 amd64

python3.11-dbg/noble 3.11.13-1+noble1 i386

python3.11-dev/noble 3.11.13-1+noble1 amd64

python3.11-dev/noble 3.11.13-1+noble1 i386

python3.11-distutils/noble,noble 3.11.13-1+noble1 all [3.11.10-1+noble1 からアップグレード可]

python3.11-examples/noble,noble 3.11.13-1+noble1 all

python3.11-full/noble 3.11.13-1+noble1 amd64

python3.11-full/noble 3.11.13-1+noble1 i386

python3.11-gdbm-dbg/noble 3.11.13-1+noble1 amd64

python3.11-gdbm-dbg/noble 3.11.13-1+noble1 i386

python3.11-gdbm/noble 3.11.13-1+noble1 amd64

python3.11-gdbm/noble 3.11.13-1+noble1 i386

python3.11-lib2to3/noble,noble 3.11.13-1+noble1 all [3.11.10-1+noble1 からアップグレード可]

python3.11-minimal/noble 3.11.13-1+noble1 amd64 [3.11.10-1+noble1 からアップグレード可]

python3.11-minimal/noble 3.11.13-1+noble1 i386

python3.11-tk-dbg/noble 3.11.13-1+noble1 amd64

python3.11-tk-dbg/noble 3.11.13-1+noble1 i386

python3.11-tk/noble 3.11.13-1+noble1 amd64

python3.11-tk/noble 3.11.13-1+noble1 i386

python3.11-venv/noble 3.11.13-1+noble1 amd64 [3.11.10-1+noble1 からアップグレード可]

python3.11-venv/noble 3.11.13-1+noble1 i386

python3.11/noble 3.11.13-1+noble1 amd64 [3.11.10-1+noble1 からアップグレード可]

python3.11/noble 3.11.13-1+noble1 i386

python3.12-dbg/noble-updates,noble-security 3.12.3-1ubuntu0.7 amd64

python3.12-dbg/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-dev/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12-dev/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-doc/noble-updates,noble-updates,noble-security,noble-security 3.12.3-1ubuntu0.7 all

python3.12-examples/noble-updates,noble-updates,noble-security,noble-security 3.12.3-1ubuntu0.7 all

python3.12-full/noble-updates,noble-security 3.12.3-1ubuntu0.7 amd64

python3.12-full/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-minimal/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12-minimal/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-nopie/noble-updates,noble-security 3.12.3-1ubuntu0.7 amd64

python3.12-nopie/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12-venv/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12-venv/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.12/noble-updates,noble-security,now 3.12.3-1ubuntu0.7 amd64 [インストール済み、自動]

python3.12/noble-updates,noble-security 3.12.3-1ubuntu0.7 i386

python3.13-dbg/noble 3.13.5-1+noble1 amd64

python3.13-dbg/noble 3.13.5-1+noble1 i386

python3.13-dev/noble 3.13.5-1+noble1 amd64

python3.13-dev/noble 3.13.5-1+noble1 i386

python3.13-examples/noble,noble 3.13.5-1+noble1 all

python3.13-full/noble 3.13.5-1+noble1 amd64

python3.13-full/noble 3.13.5-1+noble1 i386

python3.13-gdbm-dbg/noble 3.13.5-1+noble1 amd64

python3.13-gdbm-dbg/noble 3.13.5-1+noble1 i386

python3.13-gdbm-nogil/noble 3.13.5-1+noble1 amd64

python3.13-gdbm-nogil/noble 3.13.5-1+noble1 i386

python3.13-gdbm/noble 3.13.5-1+noble1 amd64

python3.13-gdbm/noble 3.13.5-1+noble1 i386

python3.13-nogil/noble 3.13.5-1+noble1 amd64

python3.13-nogil/noble 3.13.5-1+noble1 i386

python3.13-tk-dbg/noble 3.13.5-1+noble1 amd64

python3.13-tk-dbg/noble 3.13.5-1+noble1 i386

python3.13-tk-nogil/noble 3.13.5-1+noble1 amd64

python3.13-tk-nogil/noble 3.13.5-1+noble1 i386

python3.13-tk/noble 3.13.5-1+noble1 amd64

python3.13-tk/noble 3.13.5-1+noble1 i386

python3.13-venv/noble 3.13.5-1+noble1 amd64

python3.13-venv/noble 3.13.5-1+noble1 i386

python3.13/noble 3.13.5-1+noble1 amd64

python3.13/noble 3.13.5-1+noble1 i386

python3.14-dbg/noble 3.14.0~rc1-1+noble1 amd64

python3.14-dbg/noble 3.14.0~rc1-1+noble1 i386

python3.14-dev/noble 3.14.0~rc1-1+noble1 amd64

python3.14-dev/noble 3.14.0~rc1-1+noble1 i386

python3.14-examples/noble,noble 3.14.0~rc1-1+noble1 all

python3.14-full/noble 3.14.0~rc1-1+noble1 amd64

python3.14-full/noble 3.14.0~rc1-1+noble1 i386

python3.14-gdbm-dbg/noble 3.14.0~rc1-1+noble1 amd64

python3.14-gdbm-dbg/noble 3.14.0~rc1-1+noble1 i386

python3.14-gdbm-nogil/noble 3.14.0~rc1-1+noble1 amd64

python3.14-gdbm-nogil/noble 3.14.0~rc1-1+noble1 i386

python3.14-gdbm/noble 3.14.0~rc1-1+noble1 amd64

python3.14-gdbm/noble 3.14.0~rc1-1+noble1 i386

python3.14-nogil/noble 3.14.0~rc1-1+noble1 amd64

python3.14-nogil/noble 3.14.0~rc1-1+noble1 i386

python3.14-tk-dbg/noble 3.14.0~rc1-1+noble1 amd64

python3.14-tk-dbg/noble 3.14.0~rc1-1+noble1 i386

python3.14-tk-nogil/noble 3.14.0~rc1-1+noble1 amd64

python3.14-tk-nogil/noble 3.14.0~rc1-1+noble1 i386

python3.14-tk/noble 3.14.0~rc1-1+noble1 amd64

python3.14-tk/noble 3.14.0~rc1-1+noble1 i386

python3.14-venv/noble 3.14.0~rc1-1+noble1 amd64

python3.14-venv/noble 3.14.0~rc1-1+noble1 i386

python3.14/noble 3.14.0~rc1-1+noble1 amd64

python3.14/noble 3.14.0~rc1-1+noble1 i386

python3.7-dbg/noble 3.7.17-1+noble2 amd64

python3.7-dev/noble 3.7.17-1+noble2 amd64

python3.7-distutils/noble,noble 3.7.17-1+noble2 all

python3.7-examples/noble,noble 3.7.17-1+noble2 all

python3.7-full/noble 3.7.17-1+noble2 amd64

python3.7-gdbm-dbg/noble 3.7.17-1+noble2 amd64

python3.7-gdbm/noble 3.7.17-1+noble2 amd64

python3.7-lib2to3/noble,noble 3.7.17-1+noble2 all

python3.7-minimal/noble 3.7.17-1+noble2 amd64

python3.7-tk-dbg/noble 3.7.17-1+noble2 amd64

python3.7-tk/noble 3.7.17-1+noble2 amd64

python3.7-venv/noble 3.7.17-1+noble2 amd64

python3.7/noble 3.7.17-1+noble2 amd64

python3.8-dbg/noble 3.8.20-1+noble1 amd64

python3.8-dev/noble 3.8.20-1+noble1 amd64

python3.8-distutils/noble,noble 3.8.20-1+noble1 all

python3.8-examples/noble,noble 3.8.20-1+noble1 all

python3.8-full/noble 3.8.20-1+noble1 amd64

python3.8-gdbm-dbg/noble 3.8.20-1+noble1 amd64

python3.8-gdbm/noble 3.8.20-1+noble1 amd64

python3.8-lib2to3/noble,noble 3.8.20-1+noble1 all

python3.8-minimal/noble 3.8.20-1+noble1 amd64

python3.8-tk-dbg/noble 3.8.20-1+noble1 amd64

python3.8-tk/noble 3.8.20-1+noble1 amd64

python3.8-venv/noble 3.8.20-1+noble1 amd64

python3.8/noble 3.8.20-1+noble1 amd64

python3.9-dbg/noble 3.9.23-1+noble1 amd64

python3.9-dev/noble 3.9.23-1+noble1 amd64

python3.9-distutils/noble,noble 3.9.23-1+noble1 all

python3.9-examples/noble,noble 3.9.23-1+noble1 all

python3.9-full/noble 3.9.23-1+noble1 amd64

python3.9-gdbm-dbg/noble 3.9.23-1+noble1 amd64

python3.9-gdbm/noble 3.9.23-1+noble1 amd64

python3.9-lib2to3/noble,noble 3.9.23-1+noble1 all

python3.9-minimal/noble 3.9.23-1+noble1 amd64

python3.9-tk-dbg/noble 3.9.23-1+noble1 amd64

python3.9-tk/noble 3.9.23-1+noble1 amd64

python3.9-venv/noble 3.9.23-1+noble1 amd64

python3.9/noble 3.9.23-1+noble1 amd64

はいりました。

ではインストール。

$ sudo apt install python3.10

パッケージリストを読み込んでいます... 完了

依存関係ツリーを作成しています... 完了        

状態情報を読み取っています... 完了        

以下のパッケージが自動でインストールされましたが、もう必要とされていません:

  libdrm-nouveau2:i386 libllvm17t64 libllvm17t64:i386 nvidia-firmware-550-550.120 nvidia-firmware-550-550.144.03 python3-netifaces

これを削除するには 'sudo apt autoremove' を利用してください。

以下の追加パッケージがインストールされます:

  libpython3.10-minimal libpython3.10-stdlib python3.10-minimal

提案パッケージ:

  python3.10-venv binfmt-support

以下のパッケージが新たにインストールされます:

  libpython3.10-minimal libpython3.10-stdlib python3.10 python3.10-minimal

アップグレード: 0 個、新規インストール: 4 個、削除: 0 個、保留: 21 個。

4,585 kB のアーカイブを取得する必要があります。

この操作後に追加で 18.9 MB のディスク容量が消費されます。

続行しますか? [Y/n] y

取得:1 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 libpython3.10-minimal amd64 3.10.18-1+noble1 [804 kB]

取得:2 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 python3.10-minimal amd64 3.10.18-1+noble1 [1,910 kB]

取得:3 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 libpython3.10-stdlib amd64 3.10.18-1+noble1 [1,822 kB]

取得:4 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 python3.10 amd64 3.10.18-1+noble1 [49.0 kB]

4,585 kB を 3秒 で取得しました (1,371 kB/s)     

以前に未選択のパッケージ libpython3.10-minimal:amd64 を選択しています。

(データベースを読み込んでいます ... 現在 217595 個のファイルとディレクトリがインストールされています。)

.../libpython3.10-minimal_3.10.18-1+noble1_amd64.deb を展開する準備をしています ...

libpython3.10-minimal:amd64 (3.10.18-1+noble1) を展開しています...

以前に未選択のパッケージ python3.10-minimal を選択しています。

.../python3.10-minimal_3.10.18-1+noble1_amd64.deb を展開する準備をしています ...

python3.10-minimal (3.10.18-1+noble1) を展開しています...

以前に未選択のパッケージ libpython3.10-stdlib:amd64 を選択しています。

.../libpython3.10-stdlib_3.10.18-1+noble1_amd64.deb を展開する準備をしています ...

libpython3.10-stdlib:amd64 (3.10.18-1+noble1) を展開しています...

以前に未選択のパッケージ python3.10 を選択しています。

.../python3.10_3.10.18-1+noble1_amd64.deb を展開する準備をしています ...

python3.10 (3.10.18-1+noble1) を展開しています...

libpython3.10-minimal:amd64 (3.10.18-1+noble1) を設定しています ...

python3.10-minimal (3.10.18-1+noble1) を設定しています ...

libpython3.10-stdlib:amd64 (3.10.18-1+noble1) を設定しています ...

python3.10 (3.10.18-1+noble1) を設定しています ...

man-db (2.12.0-4build2) のトリガを処理しています ...

mailcap (3.70+nmu1ubuntu1) のトリガを処理しています ...

desktop-file-utils (0.27-2build1) のトリガを処理しています ...

gnome-menus (3.36.0-1.1ubuntu3) のトリガを処理しています ...

バージョン確認。

$ python3 -V

Python 3.12.3

$ python3.10 -V

Python 3.10.18

ちゃんと入りました。

ではvenvつくります。

$ python3.10 -m venv venv

Error: Command '['/home/kmd/FramePack/venv/bin/python3.10', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

$ python3 -m venv venv

Error: Command '['/home/kmd/FramePack/venv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

エラー!

3.10のせいかなと思って3でやっても同じなのpythonが悪いわけではなさそうです。

ググったら

Python 3.11 venv returned non-zero exit status 1 : r/learnpython

You may be missing the python virtual environment module

apt install python3.11-venv

らしいのでやってみます。

3.11と3.10での違いは当然無視。

$ sudo apt install python3.10-venv

パッケージリストを読み込んでいます... 完了

依存関係ツリーを作成しています... 完了        

状態情報を読み取っています... 完了        

以下のパッケージが自動でインストールされましたが、もう必要とされていません:

  libdrm-nouveau2:i386 libllvm17t64 libllvm17t64:i386 nvidia-firmware-550-550.120 nvidia-firmware-550-550.144.03

  python3-netifaces

これを削除するには 'sudo apt autoremove' を利用してください。

以下の追加パッケージがインストールされます:

  python3.10-distutils python3.10-lib2to3

以下のパッケージが新たにインストールされます:

  python3.10-distutils python3.10-lib2to3 python3.10-venv

アップグレード: 0 個、新規インストール: 3 個、削除: 0 個、保留: 21 個。

3,141 kB のアーカイブを取得する必要があります。

この操作後に追加で 4,440 kB のディスク容量が消費されます。

続行しますか? [Y/n] y

取得:1 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 python3.10-lib2to3 all 3.10.18-1+noble1 [82.2 kB]

取得:2 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 python3.10-distutils all 3.10.18-1+noble1 [144 kB]

取得:3 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble/main amd64 python3.10-venv amd64 3.10.18-1+noble1 [2,915 kB]

3,141 kB を 3秒 で取得しました (979 kB/s)  

以前に未選択のパッケージ python3.10-lib2to3 を選択しています。

(データベースを読み込んでいます ... 現在 218246 個のファイルとディレクトリがインストールされています。)

.../python3.10-lib2to3_3.10.18-1+noble1_all.deb を展開する準備をしています ...

python3.10-lib2to3 (3.10.18-1+noble1) を展開しています...

以前に未選択のパッケージ python3.10-distutils を選択しています。

.../python3.10-distutils_3.10.18-1+noble1_all.deb を展開する準備をしています ...

python3.10-distutils (3.10.18-1+noble1) を展開しています...

以前に未選択のパッケージ python3.10-venv を選択しています。

.../python3.10-venv_3.10.18-1+noble1_amd64.deb を展開する準備をしています ...

python3.10-venv (3.10.18-1+noble1) を展開しています...

python3.10-lib2to3 (3.10.18-1+noble1) を設定しています ...

python3.10-distutils (3.10.18-1+noble1) を設定しています ...

python3.10-venv (3.10.18-1+noble1) を設定しています ...

でやってみます。

$ python3.10 -m venv venv

エラーでないのでできたきがします。

$ . venv/bin/activate

(venv) $ python -V

Python 3.10.18

できました。

ここまではFramePack関係ない初歩的な作業でしたがやっとFramePackのインストール手順へ。

(venv) $ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

Looking in indexes: https://download.pytorch.org/whl/cu126

Collecting torch

  Obtaining dependency information for torch from https://download.pytorch.org/whl/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata

  Downloading https://download.pytorch.org/whl/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (29 kB)

Collecting torchvision

  Obtaining dependency information for torchvision from https://download.pytorch.org/whl/cu126/torchvision-0.22.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata

  Downloading https://download.pytorch.org/whl/cu126/torchvision-0.22.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (6.1 kB)

Collecting torchaudio

  Obtaining dependency information for torchaudio from https://download.pytorch.org/whl/cu126/torchaudio-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata

  Downloading https://download.pytorch.org/whl/cu126/torchaudio-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (6.6 kB)

Collecting nvidia-curand-cu12==10.3.7.77

  Obtaining dependency information for nvidia-curand-cu12==10.3.7.77 from https://download.pytorch.org/whl/cu126/nvidia_curand_cu12-10.3.7.77-py3-none-manylinux2014_x86_64.whl.metadata

  Downloading https://download.pytorch.org/whl/cu126/nvidia_curand_cu12-10.3.7.77-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)

Collecting networkx

  Obtaining dependency information for networkx from https://download.pytorch.org/whl/networkx-3.3-py3-none-any.whl.metadata

  Downloading https://download.pytorch.org/whl/networkx-3.3-py3-none-any.whl.metadata (5.1 kB)

Collecting nvidia-cufft-cu12==11.3.0.4

  Obtaining dependency information for nvidia-cufft-cu12==11.3.0.4 from https://download.pytorch.org/whl/cu126/nvidia_cufft_cu12-11.3.0.4-py3-none-manylinux2014_x86_64.whl.metadata

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cufft_cu12-11.3.0.4-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)

Collecting typing-extensions>=4.10.0

  Obtaining dependency information for typing-extensions>=4.10.0 from https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl.metadata

  Downloading https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)

Discarding https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl#sha256=04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d (from https://download.pytorch.org/whl/cu126/typing-extensions/): Requested typing-extensions>=4.10.0 from https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl#sha256=04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d (from torch) has inconsistent Name: expected 'typing-extensions', but metadata has 'typing_extensions'

Collecting torch

  Obtaining dependency information for torch from https://download.pytorch.org/whl/cu126/torch-2.7.0%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata

  Downloading https://download.pytorch.org/whl/cu126/torch-2.7.0%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (29 kB)

  Obtaining dependency information for torch from https://download.pytorch.org/whl/cu126/torch-2.6.0%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata

  Downloading https://download.pytorch.org/whl/cu126/torch-2.6.0%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (28 kB)

ERROR: Cannot install torch==2.6.0+cu126, torch==2.7.0+cu126 and torch==2.7.1+cu126 because these package versions have conflicting dependencies.


The conflict is caused by:

    torch 2.7.1+cu126 depends on typing-extensions>=4.10.0

    torch 2.7.0+cu126 depends on typing-extensions>=4.10.0

    torch 2.6.0+cu126 depends on typing-extensions>=4.10.0


To fix this you could try to:

1. loosen the range of package versions you've specified

2. remove package versions to allow pip attempt to solve the dependency conflict


ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

tourchのバージョンが競合してるらしいエラー。

一応 pip がバージョン古かったらいかんので最新化します。

(venv) $ pip install --upgrade pip

Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (23.0.1)

Collecting pip

  Downloading pip-25.1.1-py3-none-any.whl (1.8 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 9.7 MB/s eta 0:00:00

Installing collected packages: pip

  Attempting uninstall: pip

    Found existing installation: pip 23.0.1

    Uninstalling pip-23.0.1:

      Successfully uninstalled pip-23.0.1

Successfully installed pip-25.1.1

でダメ元でやってみます。

(venv) $ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

Looking in indexes: https://download.pytorch.org/whl/cu126

Collecting torch

  Downloading https://download.pytorch.org/whl/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (29 kB)

Collecting torchvision

  Downloading https://download.pytorch.org/whl/cu126/torchvision-0.22.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (6.1 kB)

Collecting torchaudio

  Downloading https://download.pytorch.org/whl/cu126/torchaudio-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (6.6 kB)

Collecting filelock (from torch)

  Downloading https://download.pytorch.org/whl/filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)

Collecting typing-extensions>=4.10.0 (from torch)

  Downloading https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)

Collecting sympy>=1.13.3 (from torch)

  Downloading https://download.pytorch.org/whl/sympy-1.13.3-py3-none-any.whl.metadata (12 kB)

Collecting networkx (from torch)

  Downloading https://download.pytorch.org/whl/networkx-3.3-py3-none-any.whl.metadata (5.1 kB)

Collecting jinja2 (from torch)

  Downloading https://download.pytorch.org/whl/Jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)

Collecting fsspec (from torch)

  Downloading https://download.pytorch.org/whl/fsspec-2024.6.1-py3-none-any.whl.metadata (11 kB)

Collecting nvidia-cuda-nvrtc-cu12==12.6.77 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cuda_nvrtc_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)

Collecting nvidia-cuda-runtime-cu12==12.6.77 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cuda_runtime_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)

Collecting nvidia-cuda-cupti-cu12==12.6.80 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cuda_cupti_cu12-12.6.80-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)

Collecting nvidia-cudnn-cu12==9.5.1.17 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cudnn_cu12-9.5.1.17-py3-none-manylinux_2_28_x86_64.whl.metadata (1.6 kB)

Collecting nvidia-cublas-cu12==12.6.4.1 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cublas_cu12-12.6.4.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (1.5 kB)

Collecting nvidia-cufft-cu12==11.3.0.4 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cufft_cu12-11.3.0.4-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)

Collecting nvidia-curand-cu12==10.3.7.77 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_curand_cu12-10.3.7.77-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)

Collecting nvidia-cusolver-cu12==11.7.1.2 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cusolver_cu12-11.7.1.2-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)

Collecting nvidia-cusparse-cu12==12.5.4.2 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cusparse_cu12-12.5.4.2-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)

Collecting nvidia-cusparselt-cu12==0.6.3 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cusparselt_cu12-0.6.3-py3-none-manylinux2014_x86_64.whl.metadata (6.8 kB)

Collecting nvidia-nccl-cu12==2.26.2 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_nccl_cu12-2.26.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (2.0 kB)

Collecting nvidia-nvtx-cu12==12.6.77 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_nvtx_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)

Collecting nvidia-nvjitlink-cu12==12.6.85 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_nvjitlink_cu12-12.6.85-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl.metadata (1.5 kB)

Collecting nvidia-cufile-cu12==1.11.1.6 (from torch)

  Downloading https://download.pytorch.org/whl/cu126/nvidia_cufile_cu12-1.11.1.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (1.5 kB)

Collecting triton==3.3.1 (from torch)

  Downloading https://download.pytorch.org/whl/triton-3.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (1.5 kB)

Requirement already satisfied: setuptools>=40.8.0 in ./venv/lib/python3.10/site-packages (from triton==3.3.1->torch) (65.5.0)

Collecting numpy (from torchvision)

  Downloading https://download.pytorch.org/whl/numpy-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)

Collecting pillow!=8.3.*,>=5.3.0 (from torchvision)

  Downloading https://download.pytorch.org/whl/pillow-11.0.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (9.1 kB)

Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch)

  Using cached https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)

Collecting MarkupSafe>=2.0 (from jinja2->torch)

  Downloading https://download.pytorch.org/whl/MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)

Downloading https://download.pytorch.org/whl/cu126/torch-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl (822.1 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 822.1/822.1 MB 12.8 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cublas_cu12-12.6.4.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (393.1 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 393.1/393.1 MB 13.7 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cuda_cupti_cu12-12.6.80-py3-none-manylinux2014_x86_64.whl (8.9 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.9/8.9 MB 12.9 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cuda_nvrtc_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl (23.7 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.7/23.7 MB 11.6 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cuda_runtime_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl (897 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 897.7/897.7 kB 22.8 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cudnn_cu12-9.5.1.17-py3-none-manylinux_2_28_x86_64.whl (571.0 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 571.0/571.0 MB 14.2 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cufft_cu12-11.3.0.4-py3-none-manylinux2014_x86_64.whl (200.2 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 200.2/200.2 MB 13.3 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cufile_cu12-1.11.1.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.1 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 6.5 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_curand_cu12-10.3.7.77-py3-none-manylinux2014_x86_64.whl (56.3 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.3/56.3 MB 14.9 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cusolver_cu12-11.7.1.2-py3-none-manylinux2014_x86_64.whl (158.2 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.2/158.2 MB 13.5 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cusparse_cu12-12.5.4.2-py3-none-manylinux2014_x86_64.whl (216.6 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 216.6/216.6 MB 13.3 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_cusparselt_cu12-0.6.3-py3-none-manylinux2014_x86_64.whl (156.8 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.8/156.8 MB 12.7 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_nccl_cu12-2.26.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (201.3 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 201.3/201.3 MB 12.9 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_nvjitlink_cu12-12.6.85-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (19.7 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.7/19.7 MB 12.9 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/nvidia_nvtx_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl (89 kB)

Downloading https://download.pytorch.org/whl/triton-3.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (155.6 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.6/155.6 MB 12.9 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/torchvision-0.22.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl (7.5 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 11.2 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/cu126/torchaudio-2.7.1%2Bcu126-cp310-cp310-manylinux_2_28_x86_64.whl (3.4 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 5.2 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/pillow-11.0.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.4 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 12.1 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/sympy-1.13.3-py3-none-any.whl (6.2 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 11.4 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/typing_extensions-4.12.2-py3-none-any.whl (37 kB)

Downloading https://download.pytorch.org/whl/filelock-3.13.1-py3-none-any.whl (11 kB)

Downloading https://download.pytorch.org/whl/fsspec-2024.6.1-py3-none-any.whl (177 kB)

Downloading https://download.pytorch.org/whl/Jinja2-3.1.4-py3-none-any.whl (133 kB)

Downloading https://download.pytorch.org/whl/networkx-3.3-py3-none-any.whl (1.7 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 8.9 MB/s eta 0:00:00

Downloading https://download.pytorch.org/whl/numpy-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.3 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.3/16.3 MB 12.2 MB/s eta 0:00:00

Installing collected packages: nvidia-cusparselt-cu12, mpmath, typing-extensions, triton, sympy, pillow, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufile-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, numpy, networkx, MarkupSafe, fsspec, filelock, nvidia-cusparse-cu12, nvidia-cufft-cu12, nvidia-cudnn-cu12, jinja2, nvidia-cusolver-cu12, torch, torchvision, torchaudio

Successfully installed MarkupSafe-2.1.5 filelock-3.13.1 fsspec-2024.6.1 jinja2-3.1.4 mpmath-1.3.0 networkx-3.3 numpy-2.1.2 nvidia-cublas-cu12-12.6.4.1 nvidia-cuda-cupti-cu12-12.6.80 nvidia-cuda-nvrtc-cu12-12.6.77 nvidia-cuda-runtime-cu12-12.6.77 nvidia-cudnn-cu12-9.5.1.17 nvidia-cufft-cu12-11.3.0.4 nvidia-cufile-cu12-1.11.1.6 nvidia-curand-cu12-10.3.7.77 nvidia-cusolver-cu12-11.7.1.2 nvidia-cusparse-cu12-12.5.4.2 nvidia-cusparselt-cu12-0.6.3 nvidia-nccl-cu12-2.26.2 nvidia-nvjitlink-cu12-12.6.85 nvidia-nvtx-cu12-12.6.77 pillow-11.0.0 sympy-1.13.3 torch-2.7.1+cu126 torchaudio-2.7.1+cu126 torchvision-0.22.1+cu126 triton-3.3.1 typing-extensions-4.12.2

なんとエラーにならずに終わりました。

では次。

(venv) $ pip install -r requirements.txt

Collecting accelerate==1.6.0 (from -r requirements.txt (line 1))

  Downloading accelerate-1.6.0-py3-none-any.whl.metadata (19 kB)

Collecting diffusers==0.33.1 (from -r requirements.txt (line 2))

  Downloading diffusers-0.33.1-py3-none-any.whl.metadata (19 kB)

Collecting transformers==4.46.2 (from -r requirements.txt (line 3))

  Downloading transformers-4.46.2-py3-none-any.whl.metadata (44 kB)

Collecting gradio==5.23.0 (from -r requirements.txt (line 4))

  Downloading gradio-5.23.0-py3-none-any.whl.metadata (16 kB)

Collecting sentencepiece==0.2.0 (from -r requirements.txt (line 5))

  Downloading sentencepiece-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.7 kB)

Collecting pillow==11.1.0 (from -r requirements.txt (line 6))

  Downloading pillow-11.1.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (9.1 kB)

Collecting av==12.1.0 (from -r requirements.txt (line 7))

  Downloading av-12.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.6 kB)

Collecting numpy==1.26.2 (from -r requirements.txt (line 8))

  Downloading numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)

Collecting scipy==1.12.0 (from -r requirements.txt (line 9))

  Downloading scipy-1.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)

Collecting requests==2.31.0 (from -r requirements.txt (line 10))

  Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)

Collecting torchsde==0.2.6 (from -r requirements.txt (line 11))

  Using cached torchsde-0.2.6-py3-none-any.whl.metadata (5.3 kB)

Collecting einops (from -r requirements.txt (line 13))

  Using cached einops-0.8.1-py3-none-any.whl.metadata (13 kB)

Collecting opencv-contrib-python (from -r requirements.txt (line 14))

  Using cached opencv_contrib_python-4.12.0.88-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (19 kB)

Collecting safetensors (from -r requirements.txt (line 15))

  Downloading safetensors-0.5.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)

Collecting packaging>=20.0 (from accelerate==1.6.0->-r requirements.txt (line 1))

  Using cached packaging-25.0-py3-none-any.whl.metadata (3.3 kB)

Collecting psutil (from accelerate==1.6.0->-r requirements.txt (line 1))

  Downloading psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (22 kB)

Collecting pyyaml (from accelerate==1.6.0->-r requirements.txt (line 1))

  Downloading PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)

Requirement already satisfied: torch>=2.0.0 in ./venv/lib/python3.10/site-packages (from accelerate==1.6.0->-r requirements.txt (line 1)) (2.7.1+cu126)

Collecting huggingface-hub>=0.21.0 (from accelerate==1.6.0->-r requirements.txt (line 1))

  Using cached huggingface_hub-0.34.1-py3-none-any.whl.metadata (14 kB)

Collecting importlib-metadata (from diffusers==0.33.1->-r requirements.txt (line 2))

  Using cached importlib_metadata-8.7.0-py3-none-any.whl.metadata (4.8 kB)

Requirement already satisfied: filelock in ./venv/lib/python3.10/site-packages (from diffusers==0.33.1->-r requirements.txt (line 2)) (3.13.1)

Collecting regex!=2019.12.17 (from diffusers==0.33.1->-r requirements.txt (line 2))

  Downloading regex-2024.11.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB)

Collecting tokenizers<0.21,>=0.20 (from transformers==4.46.2->-r requirements.txt (line 3))

  Downloading tokenizers-0.20.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)

Collecting tqdm>=4.27 (from transformers==4.46.2->-r requirements.txt (line 3))

  Using cached tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)

Collecting aiofiles<24.0,>=22.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)

Collecting anyio<5.0,>=3.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading anyio-4.9.0-py3-none-any.whl.metadata (4.7 kB)

Collecting fastapi<1.0,>=0.115.2 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading fastapi-0.116.1-py3-none-any.whl.metadata (28 kB)

Collecting ffmpy (from gradio==5.23.0->-r requirements.txt (line 4))

  Using cached ffmpy-0.6.1-py3-none-any.whl.metadata (2.9 kB)

Collecting gradio-client==1.8.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading gradio_client-1.8.0-py3-none-any.whl.metadata (7.1 kB)

Collecting groovy~=0.1 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading groovy-0.1.2-py3-none-any.whl.metadata (6.1 kB)

Collecting httpx>=0.24.1 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)

Requirement already satisfied: jinja2<4.0 in ./venv/lib/python3.10/site-packages (from gradio==5.23.0->-r requirements.txt (line 4)) (3.1.4)

Requirement already satisfied: markupsafe<4.0,>=2.0 in ./venv/lib/python3.10/site-packages (from gradio==5.23.0->-r requirements.txt (line 4)) (2.1.5)

Collecting orjson~=3.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading orjson-3.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (42 kB)

Collecting pandas<3.0,>=1.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading pandas-2.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (91 kB)

Collecting pydantic>=2.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading pydantic-2.11.7-py3-none-any.whl.metadata (67 kB)

Collecting pydub (from gradio==5.23.0->-r requirements.txt (line 4))

  Using cached pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)

Collecting python-multipart>=0.0.18 (from gradio==5.23.0->-r requirements.txt (line 4))

  Using cached python_multipart-0.0.20-py3-none-any.whl.metadata (1.8 kB)

Collecting ruff>=0.9.3 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading ruff-0.12.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (25 kB)

Collecting safehttpx<0.2.0,>=0.1.6 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading safehttpx-0.1.6-py3-none-any.whl.metadata (4.2 kB)

Collecting semantic-version~=2.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Using cached semantic_version-2.10.0-py2.py3-none-any.whl.metadata (9.7 kB)

Collecting starlette<1.0,>=0.40.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading starlette-0.47.2-py3-none-any.whl.metadata (6.2 kB)

Collecting tomlkit<0.14.0,>=0.12.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading tomlkit-0.13.3-py3-none-any.whl.metadata (2.8 kB)

Collecting typer<1.0,>=0.12 (from gradio==5.23.0->-r requirements.txt (line 4))

  Downloading typer-0.16.0-py3-none-any.whl.metadata (15 kB)

Requirement already satisfied: typing-extensions~=4.0 in ./venv/lib/python3.10/site-packages (from gradio==5.23.0->-r requirements.txt (line 4)) (4.12.2)

Collecting uvicorn>=0.14.0 (from gradio==5.23.0->-r requirements.txt (line 4))

  Using cached uvicorn-0.35.0-py3-none-any.whl.metadata (6.5 kB)

Collecting charset-normalizer<4,>=2 (from requests==2.31.0->-r requirements.txt (line 10))

  Downloading charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (35 kB)

Collecting idna<4,>=2.5 (from requests==2.31.0->-r requirements.txt (line 10))

  Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)

Collecting urllib3<3,>=1.21.1 (from requests==2.31.0->-r requirements.txt (line 10))

  Using cached urllib3-2.5.0-py3-none-any.whl.metadata (6.5 kB)

Collecting certifi>=2017.4.17 (from requests==2.31.0->-r requirements.txt (line 10))

  Using cached certifi-2025.7.14-py3-none-any.whl.metadata (2.4 kB)

Collecting trampoline>=0.1.2 (from torchsde==0.2.6->-r requirements.txt (line 11))

  Using cached trampoline-0.1.2-py3-none-any.whl.metadata (10 kB)

Requirement already satisfied: fsspec in ./venv/lib/python3.10/site-packages (from gradio-client==1.8.0->gradio==5.23.0->-r requirements.txt (line 4)) (2024.6.1)

Collecting websockets<16.0,>=10.0 (from gradio-client==1.8.0->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading websockets-15.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.8 kB)

Collecting exceptiongroup>=1.0.2 (from anyio<5.0,>=3.0->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading exceptiongroup-1.3.0-py3-none-any.whl.metadata (6.7 kB)

Collecting sniffio>=1.1 (from anyio<5.0,>=3.0->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)

Collecting hf-xet<2.0.0,>=1.1.3 (from huggingface-hub>=0.21.0->accelerate==1.6.0->-r requirements.txt (line 1))

  Using cached hf_xet-1.1.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (879 bytes)

Collecting python-dateutil>=2.8.2 (from pandas<3.0,>=1.0->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)

Collecting pytz>=2020.1 (from pandas<3.0,>=1.0->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)

Collecting tzdata>=2022.7 (from pandas<3.0,>=1.0->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)

Collecting annotated-types>=0.6.0 (from pydantic>=2.0->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)

Collecting pydantic-core==2.33.2 (from pydantic>=2.0->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.8 kB)

Collecting typing-inspection>=0.4.0 (from pydantic>=2.0->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading typing_inspection-0.4.1-py3-none-any.whl.metadata (2.6 kB)

Collecting click>=8.0.0 (from typer<1.0,>=0.12->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached click-8.2.1-py3-none-any.whl.metadata (2.5 kB)

Collecting shellingham>=1.3.0 (from typer<1.0,>=0.12->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)

Collecting rich>=10.11.0 (from typer<1.0,>=0.12->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached rich-14.1.0-py3-none-any.whl.metadata (18 kB)

INFO: pip is looking at multiple versions of opencv-contrib-python to determine which version is compatible with other requirements. This could take a while.

Collecting opencv-contrib-python (from -r requirements.txt (line 14))

  Using cached opencv_contrib_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)

Collecting httpcore==1.* (from httpx>=0.24.1->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading httpcore-1.0.9-py3-none-any.whl.metadata (21 kB)

Collecting h11>=0.16 (from httpcore==1.*->httpx>=0.24.1->gradio==5.23.0->-r requirements.txt (line 4))

  Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)

Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)

Collecting markdown-it-py>=2.2.0 (from rich>=10.11.0->typer<1.0,>=0.12->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)

Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.11.0->typer<1.0,>=0.12->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)

Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio==5.23.0->-r requirements.txt (line 4))

  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)

Requirement already satisfied: sympy>=1.13.3 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (1.13.3)

Requirement already satisfied: networkx in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (3.3)

Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.6.77 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (12.6.77)

Requirement already satisfied: nvidia-cuda-runtime-cu12==12.6.77 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (12.6.77)

Requirement already satisfied: nvidia-cuda-cupti-cu12==12.6.80 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (12.6.80)

Requirement already satisfied: nvidia-cudnn-cu12==9.5.1.17 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (9.5.1.17)

Requirement already satisfied: nvidia-cublas-cu12==12.6.4.1 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (12.6.4.1)

Requirement already satisfied: nvidia-cufft-cu12==11.3.0.4 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (11.3.0.4)

Requirement already satisfied: nvidia-curand-cu12==10.3.7.77 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (10.3.7.77)

Requirement already satisfied: nvidia-cusolver-cu12==11.7.1.2 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (11.7.1.2)

Requirement already satisfied: nvidia-cusparse-cu12==12.5.4.2 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (12.5.4.2)

Requirement already satisfied: nvidia-cusparselt-cu12==0.6.3 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (0.6.3)

Requirement already satisfied: nvidia-nccl-cu12==2.26.2 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (2.26.2)

Requirement already satisfied: nvidia-nvtx-cu12==12.6.77 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (12.6.77)

Requirement already satisfied: nvidia-nvjitlink-cu12==12.6.85 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (12.6.85)

Requirement already satisfied: nvidia-cufile-cu12==1.11.1.6 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (1.11.1.6)

Requirement already satisfied: triton==3.3.1 in ./venv/lib/python3.10/site-packages (from torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (3.3.1)

Requirement already satisfied: setuptools>=40.8.0 in ./venv/lib/python3.10/site-packages (from triton==3.3.1->torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (65.5.0)

Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./venv/lib/python3.10/site-packages (from sympy>=1.13.3->torch>=2.0.0->accelerate==1.6.0->-r requirements.txt (line 1)) (1.3.0)

Collecting zipp>=3.20 (from importlib-metadata->diffusers==0.33.1->-r requirements.txt (line 2))

  Using cached zipp-3.23.0-py3-none-any.whl.metadata (3.6 kB)

Downloading accelerate-1.6.0-py3-none-any.whl (354 kB)

Downloading numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 11.3 MB/s eta 0:00:00

Downloading diffusers-0.33.1-py3-none-any.whl (3.6 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 3.6 MB/s eta 0:00:00

Downloading transformers-4.46.2-py3-none-any.whl (10.0 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.0/10.0 MB 10.4 MB/s eta 0:00:00

Downloading gradio-5.23.0-py3-none-any.whl (51.3 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 MB 11.3 MB/s eta 0:00:00

Downloading pillow-11.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.5 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 5.8 MB/s eta 0:00:00

Downloading sentencepiece-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 6.5 MB/s eta 0:00:00

Downloading av-12.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.3 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.3/34.3 MB 6.5 MB/s eta 0:00:00

Downloading scipy-1.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.4 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.4/38.4 MB 7.4 MB/s eta 0:00:00

Downloading requests-2.31.0-py3-none-any.whl (62 kB)

Using cached torchsde-0.2.6-py3-none-any.whl (61 kB)

Downloading gradio_client-1.8.0-py3-none-any.whl (322 kB)

Using cached aiofiles-23.2.1-py3-none-any.whl (15 kB)

Downloading anyio-4.9.0-py3-none-any.whl (100 kB)

Downloading charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149 kB)

Downloading fastapi-0.116.1-py3-none-any.whl (95 kB)

Downloading groovy-0.1.2-py3-none-any.whl (14 kB)

Using cached huggingface_hub-0.34.1-py3-none-any.whl (558 kB)

Using cached hf_xet-1.1.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)

Using cached idna-3.10-py3-none-any.whl (70 kB)

Downloading orjson-3.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (131 kB)

Downloading pandas-2.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 6.2 MB/s eta 0:00:00

Downloading pydantic-2.11.7-py3-none-any.whl (444 kB)

Downloading pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 12.0 MB/s eta 0:00:00

Downloading PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (751 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 751.2/751.2 kB 12.3 MB/s eta 0:00:00

Downloading safehttpx-0.1.6-py3-none-any.whl (8.7 kB)

Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)

Downloading starlette-0.47.2-py3-none-any.whl (72 kB)

Downloading tokenizers-0.20.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 11.9 MB/s eta 0:00:00

Downloading tomlkit-0.13.3-py3-none-any.whl (38 kB)

Downloading typer-0.16.0-py3-none-any.whl (46 kB)

Using cached urllib3-2.5.0-py3-none-any.whl (129 kB)

Downloading websockets-15.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (181 kB)

Downloading einops-0.8.1-py3-none-any.whl (64 kB)

Using cached opencv_contrib_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (69.1 MB)

Downloading safetensors-0.5.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (471 kB)

Downloading annotated_types-0.7.0-py3-none-any.whl (13 kB)

Using cached certifi-2025.7.14-py3-none-any.whl (162 kB)

Using cached click-8.2.1-py3-none-any.whl (102 kB)

Downloading exceptiongroup-1.3.0-py3-none-any.whl (16 kB)

Downloading httpx-0.28.1-py3-none-any.whl (73 kB)

Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)

Downloading h11-0.16.0-py3-none-any.whl (37 kB)

Using cached packaging-25.0-py3-none-any.whl (66 kB)

Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)

Using cached python_multipart-0.0.20-py3-none-any.whl (24 kB)

Using cached pytz-2025.2-py2.py3-none-any.whl (509 kB)

Downloading regex-2024.11.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (781 kB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 781.7/781.7 kB 13.0 MB/s eta 0:00:00

Using cached rich-14.1.0-py3-none-any.whl (243 kB)

Using cached pygments-2.19.2-py3-none-any.whl (1.2 MB)

Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)

Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)

Downloading ruff-0.12.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB)

   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.9/12.9 MB 10.1 MB/s eta 0:00:00

Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)

Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)

Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)

Using cached tqdm-4.67.1-py3-none-any.whl (78 kB)

Using cached trampoline-0.1.2-py3-none-any.whl (5.2 kB)

Downloading typing_inspection-0.4.1-py3-none-any.whl (14 kB)

Using cached tzdata-2025.2-py2.py3-none-any.whl (347 kB)

Using cached uvicorn-0.35.0-py3-none-any.whl (66 kB)

Using cached ffmpy-0.6.1-py3-none-any.whl (5.5 kB)

Using cached importlib_metadata-8.7.0-py3-none-any.whl (27 kB)

Using cached zipp-3.23.0-py3-none-any.whl (10 kB)

Downloading psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (277 kB)

Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)

Installing collected packages: trampoline, sentencepiece, pytz, pydub, zipp, websockets, urllib3, tzdata, typing-inspection, tqdm, tomlkit, sniffio, six, shellingham, semantic-version, safetensors, ruff, regex, pyyaml, python-multipart, pygments, pydantic-core, psutil, pillow, packaging, orjson, numpy, mdurl, idna, hf-xet, h11, groovy, ffmpy, exceptiongroup, einops, click, charset-normalizer, certifi, av, annotated-types, aiofiles, uvicorn, scipy, requests, python-dateutil, pydantic, opencv-contrib-python, markdown-it-py, importlib-metadata, httpcore, anyio, starlette, rich, pandas, huggingface-hub, httpx, typer, torchsde, tokenizers, safehttpx, gradio-client, fastapi, diffusers, accelerate, transformers, gradio

  Attempting uninstall: pillow

    Found existing installation: pillow 11.0.0

    Uninstalling pillow-11.0.0:

      Successfully uninstalled pillow-11.0.0

  Attempting uninstall: numpy

    Found existing installation: numpy 2.1.2

    Uninstalling numpy-2.1.2:

      Successfully uninstalled numpy-2.1.2

Successfully installed accelerate-1.6.0 aiofiles-23.2.1 annotated-types-0.7.0 anyio-4.9.0 av-12.1.0 certifi-2025.7.14 charset-normalizer-3.4.2 click-8.2.1 diffusers-0.33.1 einops-0.8.1 exceptiongroup-1.3.0 fastapi-0.116.1 ffmpy-0.6.1 gradio-5.23.0 gradio-client-1.8.0 groovy-0.1.2 h11-0.16.0 hf-xet-1.1.5 httpcore-1.0.9 httpx-0.28.1 huggingface-hub-0.34.1 idna-3.10 importlib-metadata-8.7.0 markdown-it-py-3.0.0 mdurl-0.1.2 numpy-1.26.2 opencv-contrib-python-4.11.0.86 orjson-3.11.1 packaging-25.0 pandas-2.3.1 pillow-11.1.0 psutil-7.0.0 pydantic-2.11.7 pydantic-core-2.33.2 pydub-0.25.1 pygments-2.19.2 python-dateutil-2.9.0.post0 python-multipart-0.0.20 pytz-2025.2 pyyaml-6.0.2 regex-2024.11.6 requests-2.31.0 rich-14.1.0 ruff-0.12.5 safehttpx-0.1.6 safetensors-0.5.3 scipy-1.12.0 semantic-version-2.10.0 sentencepiece-0.2.0 shellingham-1.5.4 six-1.17.0 sniffio-1.3.1 starlette-0.47.2 tokenizers-0.20.3 tomlkit-0.13.3 torchsde-0.2.6 tqdm-4.67.1 trampoline-0.1.2 transformers-4.46.2 typer-0.16.0 typing-inspection-0.4.1 tzdata-2025.2 urllib3-2.5.0 uvicorn-0.35.0 websockets-15.0.1 zipp-3.23.0

またサクセスフリーにインストールド!!!

では起動してみます。

(venv) $ python demo_gradio.py

Currently enabled native sdp backends: ['flash', 'math', 'mem_efficient', 'cudnn']

Xformers is not installed!

Flash Attn is not installed!

Sage Attn is not installed!

Namespace(share=False, server='0.0.0.0', port=None, inbrowser=False)


Free VRAM 11.6328125 GB

High-VRAM Mode: False

config.json: 100%|█████████████████████████████████████████████████████████████████| 766/766 [00:00<00:00, 2.14MB/s]

model.safetensors.index.json: 22.2kB [00:00, 37.6MB/s]

model-00001-of-00004.safetensors: 100%|████████████████████████████████████████| 4.98G/4.98G [07:41<00:00, 10.8MB/s]

model-00002-of-00004.safetensors: 100%|████████████████████████████████████████| 5.00G/5.00G [06:50<00:00, 12.2MB/s]

model-00003-of-00004.safetensors: 100%|████████████████████████████████████████| 4.92G/4.92G [06:40<00:00, 12.3MB/s]

model-00004-of-00004.safetensors: 100%|██████████████████████████████████████████| 117M/117M [00:08<00:00, 13.2MB/s]

Downloading shards: 100%|████████████████████████████████████████████████████████████| 4/4 [21:23<00:00, 320.88s/it]

Loading checkpoint shards: 100%|██████████████████████████████████████████████████████| 4/4 [00:00<00:00, 11.42it/s]

config.json: 100%|█████████████████████████████████████████████████████████████████| 646/646 [00:00<00:00, 2.49MB/s]

model.safetensors: 100%|█████████████████████████████████████████████████████████| 246M/246M [00:18<00:00, 13.1MB/s]

tokenizer_config.json: 51.7kB [00:00, 69.1MB/s]

tokenizer.json: 100%|██████████████████████████████████████████████████████████| 17.2M/17.2M [00:01<00:00, 15.4MB/s]

special_tokens_map.json: 100%|█████████████████████████████████████████████████████| 577/577 [00:00<00:00, 2.21MB/s]

tokenizer_config.json: 100%|███████████████████████████████████████████████████████| 736/736 [00:00<00:00, 2.68MB/s]

vocab.json: 1.06MB [00:00, 24.1MB/s]

merges.txt: 525kB [00:00, 38.0MB/s]

special_tokens_map.json: 100%|█████████████████████████████████████████████████████| 588/588 [00:00<00:00, 2.31MB/s]

config.json: 100%|█████████████████████████████████████████████████████████████████| 718/718 [00:00<00:00, 2.68MB/s]

diffusion_pytorch_model.safetensors: 100%|███████████████████████████████████████| 986M/986M [01:20<00:00, 12.3MB/s]

preprocessor_config.json: 100%|████████████████████████████████████████████████████| 394/394 [00:00<00:00, 1.50MB/s]

config.json: 100%|█████████████████████████████████████████████████████████████████| 585/585 [00:00<00:00, 2.38MB/s]

model.safetensors: 100%|█████████████████████████████████████████████████████████| 857M/857M [01:09<00:00, 12.3MB/s]

config.json: 100%|█████████████████████████████████████████████████████████████████| 658/658 [00:00<00:00, 2.00MB/s]

(…)ion_pytorch_model.safetensors.index.json: 134kB [00:00, 129MB/s]

(…)pytorch_model-00003-of-00003.safetensors: 100%|█████████████████████████████| 5.79G/5.79G [22:59<00:00, 4.20MB/s]

(…)pytorch_model-00001-of-00003.safetensors: 100%|█████████████████████████████| 9.97G/9.97G [33:59<00:00, 4.89MB/s]

(…)pytorch_model-00002-of-00003.safetensors: 100%|█████████████████████████████| 9.99G/9.99G [34:03<00:00, 4.89MB/s]

Fetching 3 files: 100%|██████████████████████████████████████████████████████████████| 3/3 [34:04<00:00, 681.51s/it]

Loading checkpoint shards: 100%|██████████████████████████████████████████████████████| 3/3 [00:00<00:00, 15.18it/s]

transformer.high_quality_fp32_output_for_inference = True

* Running on local URL:  http://0.0.0.0:7860


To create a public link, set `share=True` in `launch()`.

途中のモデルのDLが全然おわらないので1時間ほどウォーキングしてきました。

1時間弱で起動まで行ってたっぽい。

起動してるみたいですね。

テキトーに画像つっこんで起動してみたら・・・

(venv) $ python demo_gradio.py

Currently enabled native sdp backends: ['flash', 'math', 'mem_efficient', 'cudnn']

Xformers is not installed!

Flash Attn is not installed!

Sage Attn is not installed!

Namespace(share=False, server='0.0.0.0', port=None, inbrowser=False)

Free VRAM 11.6328125 GB

High-VRAM Mode: False

Downloading shards: 100%|███████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 5050.34it/s]

Loading checkpoint shards: 100%|██████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.54it/s]

Fetching 3 files: 100%|█████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 3634.58it/s]

Loading checkpoint shards: 100%|██████████████████████████████████████████████████████| 3/3 [00:00<00:00, 55.14it/s]

transformer.high_quality_fp32_output_for_inference = True

* Running on local URL:  http://0.0.0.0:7860


To create a public link, set `share=True` in `launch()`.

Unloaded DynamicSwap_LlamaModel as complete.

Unloaded CLIPTextModel as complete.

Unloaded SiglipVisionModel as complete.

Unloaded AutoencoderKLHunyuanVideo as complete.

Unloaded DynamicSwap_HunyuanVideoTransformer3DModelPacked as complete.

Loaded CLIPTextModel to cuda:0 as complete.

Unloaded CLIPTextModel as complete.

Loaded AutoencoderKLHunyuanVideo to cuda:0 as complete.

Unloaded AutoencoderKLHunyuanVideo as complete.

Loaded SiglipVisionModel to cuda:0 as complete.

Traceback (most recent call last):

  File "/home/kmd/FramePack/demo_gradio.py", line 180, in worker

    rnd = torch.Generator("cpu").manual_seed(seed)

RuntimeError: manual_seed expected a long, but got NoneType

Unloaded SiglipVisionModel as complete.

Unloaded DynamicSwap_LlamaModel as complete.

Unloaded CLIPTextModel as complete.

Unloaded SiglipVisionModel as complete.

Unloaded AutoencoderKLHunyuanVideo as complete.

Unloaded DynamicSwap_HunyuanVideoTransformer3DModelPacked as complete.

なんかのエラー。

Traceback (most recent call last):

  File "/home/kmd/FramePack/demo_gradio.py", line 180, in worker

    rnd = torch.Generator("cpu").manual_seed(seed)

RuntimeError: manual_seed expected a long, but got NoneType

シードがないぞって出てます。

stable diffusion みたいになんも指定しないのが初期値なのかと思って削除して空でやってみたからダメだったみたい。

よく考えたら stable diffusion も -1 が指定されてたわ。

いらすとやの酔っぱらいうさぎを踊らせてみましたがばっちり。

このサイズを2秒指定 (実際は1.1秒) を生成するのに5分くらいかかりましたが 3060 だししょうがないのかもしれない。

後日設定いろいろ検証してみます。

コメント