0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

OpenProcessingでml5.js の学習モデルをロードする時の注意

Posted at

下記の動画では、p5.js の ml5ライブラリ の feature extractor を使って、学習したモデルデータをセーブ、ロードする方法を紹介しています。

OpenProcessing で同じコードを実行すると、以下のエラーが出ます。
byte length of Float32Array should be a multiple of 4

ロードするファイルのパスに./をつけると解決しました。
classifier.load('./model.json', customModelReady);

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?