質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

0回答

532閲覧

Compiled slug size: 890.5M is too largeとherokuで出る!!

hiei1

総合スコア52

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2022/06/12 10:22

Compiled slug size: 890.5M is too largeとherokuで出る!!
サイズを小さくする方法はあるでしょうか?

requirements.txt

1 2fastapi==0.78.0 3gunicorn==20.1.0 4numpy==1.22.4 5opencv-python==4.5.4.58 6Pillow==8.4.0 7retina-face==0.0.12 8--find-links https://download.pytorch.org/whl/torch_stable.html 9torch==1.11.0+cpu 10uvicorn==0.17.6 11

error

1remote: Successfully built gdown termcolor 2remote: Installing collected packages: termcolor, tensorboard-plugin-wit, pyasn1, libclang, keras, flatbuffers, wrapt, werkzeug, urllib3, typing-extensions, tqdm, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, soupsieve, sniffio, six, rsa, PySocks, pyparsing, pyasn1-modules, protobuf, Pillow, oauthlib, numpy, markdown, idna, h11, gunicorn, gast, filelock, click, charset-normalizer, certifi, cachetools, asgiref, absl-py, uvicorn, torch, requests, pydantic, packaging, opt-einsum, opencv-python-headless, opencv-python, opencv-contrib-python, keras-preprocessing, h5py, grpcio, google-pasta, google-auth, beautifulsoup4, astunparse, anyio, starlette, requests-oauthlib, google-auth-oauthlib, gdown, fastapi, tensorboard, tensorflow, retina-face 3remote: Successfully installed Pillow-8.4.0 PySocks-1.7.1 absl-py-1.1.0 anyio-3.6.1 asgiref-3.5.2 astunparse-1.6.3 beautifulsoup4-4.11.1 cachetools-5.2.0 certifi-2022.5.18.1 charset-normalizer-2.0.12 click-8.1.3 fastapi-0.78.0 filelock-3.7.1 flatbuffers-1.12 gast-0.4.0 gdown-4.4.0 google-auth-2.7.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.46.3 gunicorn-20.1.0 h11-0.13.0 h5py-3.7.0 idna-3.3 keras-2.9.0 keras-preprocessing-1.1.2 libclang-14.0.1 markdown-3.3.7 numpy-1.22.4 oauthlib-3.2.0 opencv-contrib-python-4.5.4.58 opencv-python-4.5.4.58 opencv-python-headless-4.5.5.64 opt-einsum-3.3.0 packaging-21.3 protobuf-3.19.4 pyasn1-0.4.8 pyasn1-modules-0.2.8 pydantic-1.9.1 pyparsing-3.0.9 requests-2.28.0 requests-oauthlib-1.3.1 retina-face-0.0.12 rsa-4.8 six-1.16.0 sniffio-1.2.0 soupsieve-2.3.2.post1 starlette-0.19.1 tensorboard-2.9.1 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.9.1 tensorflow-estimator-2.9.0 tensorflow-io-gcs-filesystem-0.26.0 termcolor-1.1.0 torch-1.11.0+cpu tqdm-4.64.0 typing-extensions-4.2.0 urllib3-1.26.9 uvicorn-0.17.6 werkzeug-2.1.2 wrapt-1.14.1 4remote: -----> Discovering process types 5remote: Procfile declares types -> web 6remote: 7remote: -----> Compressing... 8remote: ! Compiled slug size: 890.5M is too large (max is 500M). 9remote: ! See: http://devcenter.heroku.com/articles/slug-size 10remote: 11remote: ! Push failed 12remote: Verifying deploy... 13remote: 14remote: ! Push rejected to powerful-sierra-08501. 15remote: 16To https://git.heroku.com/powerful-sierra-08501.git 17 ! [remote rejected] main -> main (pre-receive hook declined) 18error: failed to push some refs to 'https://git.heroku.com/powerful-sierra-08501.git'

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hiei1

2022/06/13 00:37

これを試しましたがダメでした。 CPUのみとは torch==cpu torchvision==cpu ということですか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問