Skip to content

Instantly share code, notes, and snippets.

@harusametime
Created May 3, 2021 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harusametime/83bc0bb82f8a6b00899de57f473b6749 to your computer and use it in GitHub Desktop.
Save harusametime/83bc0bb82f8a6b00899de57f473b6749 to your computer and use it in GitHub Desktop.
PaddleOCRを SageMaker にデプロイする
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ezimjan
Copy link

ezimjan commented Apr 21, 2022

1.1 領域の確保
notebook-al1-v1のサポートが終了しているようですがnotebook-al2-v1を選ぶとエラーが出ましたのでnotebook-al1-v1で進みました。
notebook-al2-v1ではできないでしょうか?

1.2 Dockerfile の作成
./container フォルダは手動で作らないとエラーが出ます。

1.5 コンテナイメージをビルドして ECR に push する
IAMから権限を追加する必要がありました。
https://docs.aws.amazon.com/ja_jp/codebuild/latest/userguide/sample-docker.html

2.2 デプロイ
ml.g4dn.xlargeの数が0でしたのでml.t2.mediumで実行できましたが、
instance_type="local"と指定して実行はできませんでした。

  1. テスト
    module 'paddle.fluid.core_avx' has no attribute 'is_compiled_with_rocm’のエラーが出ました。
    https://github.com/PaddlePaddle/PaddleOCR/issues/4946を参考に
    paddlepaddle-gpu==2.0.2をpaddlepaddle-gpu==2.2.2に修正したら推理できるようになりました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment