LoginSignup
0
0

tensorflow.jsのobjectdetectionで自分のmodelを使うとき

Last updated at Posted at 2024-05-04

チュートリアルの

  cocoSsd.load().then(model => {
    // detect objects in the image.
    model.detect(img).then(predictions => {
      console.log('Predictions: ', predictions);
    });
  });

のloadの引数を

  cocoSsd.load({ base: 'lite_mobilenet_v2', modelUrl: './myOriginal/model.json' }).then(model => {
    // detect objects in the image.
    model.detect(img).then(predictions => {
      console.log('Predictions: ', predictions);
    });

とかにすればOK

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