1. Lära sig
  2. /
  3. Courses
  4. /
  5. Hugging Face で学ぶマルチモーダルモデル

Connected

exercise

画像の背景除去

この演習では、前と同じ flickr データセット(3万枚の画像とキャプション)を使います。ここでは画像の背景を取り除きます。

Photo of 2 people, 1 is playing the guitar

サンプル画像(image)とパイプラインモジュール(pipeline)は読み込まれています。

Instruktioner

100 XP
  • briaai/RMBG-1.4 の事前学習モデルを使って image-segmentation パイプラインを読み込み、trust_remote_code を有効にしてください。
  • そのパイプラインを使って、入力の image を加工してください。