サルでもわかるWEBプログラミング

フリーソフトのみでホームページ作成

ユーザ用ツール

サイト用ツール


tensorflow.js:02.lobeで出力したモデルでpredict


差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
tensorflow.js:02.lobeで出力したモデルでpredict [2021/01/09] – [tfjsExample.tsを読んでみる] adash333tensorflow.js:02.lobeで出力したモデルでpredict [2021/08/20] (現在) – [lobeの使い方 202108] adash333
行 1: 行 1:
-====== 出し ======+====== 02.lobeでたモデルでpredict ======
 [[tensorflow.js:index.html|TensorFlow.jsトップページ]] [[tensorflow.js:index.html|TensorFlow.jsトップページ]]
 +
 +
 +
 +
 +
  
 ===== ソースコード ===== ===== ソースコード =====
 変更中 変更中
 https://github.com/adash333/lobe-tfjs-predict https://github.com/adash333/lobe-tfjs-predict
 +===== lobeの使い方 202108 =====
 +
 +
 +https://internet.watch.impress.co.jp/docs/column/shimizu/1316830.html
 +誰でもノーコードで画像判別の機械学習モデルを作成できる「Lobe」
 +清水 理史2021年4月12日
 +
 +https://github.com/lobe/web-bootstrap
 +→これを写経してみたい
 +
 +
 +
 +
 +
 +
  
 ===== 流れ その1 ===== ===== 流れ その1 =====
行 22: 行 42:
  
 ===== 流れ その2 ===== ===== 流れ その2 =====
 +https://codesandbox.io/s/lobe-tensorflowjs-predict-du8dd?file=/index.html
 +
 +https://github.com/adash333/lobe-parcel
  
 https://adash333.github.io/lobe-parcel/src/model/model.json https://adash333.github.io/lobe-parcel/src/model/model.json
 +
 +https://adash333.github.io/lobe-parcel/src/img/apple.jpg
  
  
   -Lobeで出力したTensorFlow.js用のモデルのファイル群をGitHub Pagesで公開(デフォルトでCORS設定されている)   -Lobeで出力したTensorFlow.js用のモデルのファイル群をGitHub Pagesで公開(デフォルトでCORS設定されている)
   -   -
 +
 +https://github.com/adash333/lobe-parcel/blob/9ddab2c6370c0ae677b75e3cac53379d69345972/src/tfjsExample.ts
 +
 +
 +https://spck.io/
 +
 +
 +
 +<code>
 +
 +
 +async function main(imgPath: string) {
 +
 +  // run the prediction
 +  const results = model.predict(decodedImage);
 +  console.log(results);
 +  
 + 
 + document.getElementById('').contentText = results.toString();
 +
 +}
 +
 +
 +const imgPath = "apple.jpg";
 +main(imgPath);
 +
 +
 +
 +</code>
 +
 +
 +
 +https://github.com/adash333/lobe-tfjs-predict
 +
 +
 +https://adash333.github.io/lobe-tfjs-predict/
 +
 +
 +
  
  
  
 ===== TensorFlow.jsでpredict ===== ===== TensorFlow.jsでpredict =====
 +
 +https://zaitakukinmu.com/2021/02/26/microsoft-lobe/
 +Microsoft Lobeが便利!写真の分類を簡単に可能。あなたのサイトにもAI導入
 +2021年2月26日
 +2021年2月28日
 +
 +
 +
  
 https://qiita.com/iwatake2222/items/0092b4b95ed2bc50c9ce https://qiita.com/iwatake2222/items/0092b4b95ed2bc50c9ce
行 180: 行 252:
  
 slice()関数 slice()関数
 +→文字列または配列の一部分だけ取り出すメソッド。
 +→(配列).slice(2) で、配列の3番目以降を取り出すことになる。
  
 +https://www.sejuku.net/blog/25488
 +【JavaScript入門】sliceで文字列や配列(Array)を切り抜く方法まとめ
 +2019/4/25
  
  
行 189: 行 266:
  
 https://spck-code-editor.readthedocs.io/en/latest/editor-settings/ https://spck-code-editor.readthedocs.io/en/latest/editor-settings/
- 
- 
- 
- 
- 
- 
  
  


tensorflow.js/02.lobeで出力したモデルでpredict.1610207282.txt.gz · 最終更新: 2021/01/09 by adash333

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki