01/啟動TF demo
02/Template Image Classification :本地端範例(tiger.jpg) cat
03/Custom Image Classification :無法上傳檔案(20230624解決--自訂上傳按鈕)(chatgpt)
04/Template Image Object Detection :本地端範例(od_sample4.jpg)
05/WebCam Image Object Detection 無法擷取影像(20230624解決--將google.colab那一行註解掉)
06/WebCam Video Object Detection
07/Template Image 人體姿態(靜態) :本地端範例(pose_sample2)-firefox可以,chrome不行
(20230627增加以下指令,就可以在chrome正常執行。)(chatgpt)
// 觸發函式
async function loadImage(e) {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
//await tf.setBackend('webgl');
08/Custom Image 人體姿態(靜態) :無法上傳檔案(20230624解決--自訂上傳按鈕)(chatgpt)
(20230627增加同上指令,就可以在chrome正常執行。)(chatgpt)
09/WebCam Image 人體姿態(動態) :無法擷取影像
(20230627增加以下指令,就可以在chrome正常執行。)(chatgpt)
// webcam 攝影
async function takePhoto() {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
//await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
await tf.setBackend('webgl');
10/WebCam Video 人體姿態(動態) :無法顯示
(20230630增加以下指令,就可以在chrome正常執行。)(chatgpt)
async function app() {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
//await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
await tf.setBackend('webgl');
11/Custom Image 多人人體姿態(靜態) :無法上傳檔案(20230630解決--自訂上傳按鈕)(chatgpt)
(20230630增加以下指令,就可以在chrome正常執行。)(chatgpt)
// 觸發函式
async function loadImage(e) {
//方法1.等待~~確保 TensorFlow.js 在進行其他操作之前已經初始化。
await tf.ready();
//方法2.等待 TensorFlow.js 初始化,確保後端已經設置好並且準備就緒。
//await tf.setBackend('webgl');
tmo~tm2:teachable machine的models+javascript,tm0:沒照HTML格式規範,tm1:(原始版)webcam+修改檔案來源,tm2:chatgpt改為上傳檔案並清除預測值+tf.ready()