Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b8436b

Browse files
added model selection
1 parentf7c8e53 commit9b8436b

File tree

1 file changed

+73
-16
lines changed

1 file changed

+73
-16
lines changed

‎Prototype_2_Electric_Boogalooo.ipynb‎

Lines changed: 73 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"colab": {
66
"provenance": [],
77
"mount_file_id":"1YJfEK8zha4PfUk2yP9y-XbO4vtmn83gE",
8-
"authorship_tag":"ABX9TyOyhs6wOIUjt8ldGL3tny7R",
8+
"authorship_tag":"ABX9TyNgivKc9gAyXG4G0z3lioA1",
99
"include_colab_link":true
1010
},
1111
"kernelspec": {
@@ -24,7 +24,7 @@
2424
"colab_type":"text"
2525
},
2626
"source": [
27-
"<a href=\"https://colab.research.google.com/github/pythonioncoder/ExerciseApp/blob/csv/Prototype_2_Electric_Boogalooo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
27+
"<a href=\"https://colab.research.google.com/github/pythonioncoder/Fit-Form-AI/blob/main/Prototype_2_Electric_Boogalooo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
2828
]
2929
},
3030
{
@@ -38,10 +38,10 @@
3838
},
3939
{
4040
"cell_type":"code",
41-
"execution_count":null,
41+
"execution_count":1,
4242
"metadata": {
4343
"id":"gmwahO7oITMz",
44-
"outputId":"0da9dc4e-93dc-42cf-b100-08d7b4c71d37",
44+
"outputId":"5a88f36a-ef77-4550-ee4f-2dee36b2526d",
4545
"colab": {
4646
"base_uri":"https://localhost:8080/"
4747
}
@@ -51,7 +51,7 @@
5151
"output_type":"stream",
5252
"name":"stdout",
5353
"text": [
54-
"\u001b[2K\u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[32m33.9/33.9 MB\u001b[0m\u001b[31m25.7 MB/s\u001b[0m eta\u001b[36m0:00:00\u001b[0m\n",
54+
"\u001b[2K\u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[32m33.9/33.9 MB\u001b[0m\u001b[31m11.9 MB/s\u001b[0m eta\u001b[36m0:00:00\u001b[0m\n",
5555
"\u001b[?25h"
5656
]
5757
}
@@ -71,15 +71,15 @@
7171
"colab": {
7272
"base_uri":"https://localhost:8080/"
7373
},
74-
"outputId":"a819fc96-3036-4e7e-8905-925448d12589"
74+
"outputId":"34c50804-976f-484f-fbe1-32b9669dbbd6"
7575
},
76-
"execution_count":25,
76+
"execution_count":2,
7777
"outputs": [
7878
{
7979
"output_type":"stream",
8080
"name":"stdout",
8181
"text": [
82-
"Drive already mountedat /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n"
82+
"Mountedat /content/drive\n"
8383
]
8484
}
8585
]
@@ -122,7 +122,7 @@
122122
"metadata": {
123123
"id":"whZwvEdKIksm"
124124
},
125-
"execution_count":26,
125+
"execution_count":3,
126126
"outputs": []
127127
},
128128
{
@@ -288,7 +288,7 @@
288288
"metadata": {
289289
"id":"RHyJwan8acCz"
290290
},
291-
"execution_count":29,
291+
"execution_count":4,
292292
"outputs": []
293293
},
294294
{
@@ -316,7 +316,29 @@
316316
{
317317
"cell_type":"code",
318318
"source": [
319-
"model_path = '/content/drive/MyDrive/Exercise App Resources/pose_landmarker_lite.task'\n",
319+
"model_path = model_path = f'/content/drive/MyDrive/Exercise App Resources/pose_landmarker_{input(\"What model to use?\")}.task'"
320+
],
321+
"metadata": {
322+
"id":"Zng2DvUJcJjc",
323+
"outputId":"5e773745-adb7-45d0-fbf6-dc47ad96e633",
324+
"colab": {
325+
"base_uri":"https://localhost:8080/"
326+
}
327+
},
328+
"execution_count":9,
329+
"outputs": [
330+
{
331+
"name":"stdout",
332+
"output_type":"stream",
333+
"text": [
334+
"What model to use? heavy\n"
335+
]
336+
}
337+
]
338+
},
339+
{
340+
"cell_type":"code",
341+
"source": [
320342
"BaseOptions = python.BaseOptions # Basic Options Object\n",
321343
"PoseLandmarker = vision.PoseLandmarker # Pose Landmarker Model Object\n",
322344
"PoseLandmarkerOptions = vision.PoseLandmarkerOptions # Overall Options Object\n",
@@ -505,18 +527,18 @@
505527
"id":"GHzmhoO6Jc50",
506528
"colab": {
507529
"base_uri":"https://localhost:8080/",
508-
"height":231
530+
"height":856
509531
},
510-
"outputId":"e733f64b-4fd4-4081-c2b0-06fce7b19b0a"
532+
"outputId":"4d009091-47a2-49c6-e8e8-70a776fb6d19"
511533
},
512-
"execution_count":30,
534+
"execution_count":10,
513535
"outputs": [
514536
{
515537
"name":"stdout",
516538
"output_type":"stream",
517539
"text": [
518540
"What exercise are you tracking?\n",
519-
"Bicep Curl\n"
541+
"Push Up\n"
520542
]
521543
},
522544
{
@@ -640,6 +662,11 @@
640662
"output_type":"stream",
641663
"name":"stdout",
642664
"text": [
665+
"Left Arm Isn't Visible\n",
666+
"Right Arm Isn't Visible\n",
667+
"Left Arm Isn't Visible\n",
668+
"Right Arm Isn't Visible\n",
669+
"Left Arm Isn't Visible\n",
643670
"Right Arm Isn't Visible\n",
644671
"Left Arm Isn't Visible\n",
645672
"Right Arm Isn't Visible\n",
@@ -649,7 +676,37 @@
649676
"Right Arm Isn't Visible\n",
650677
"Left Arm Isn't Visible\n",
651678
"Right Arm Isn't Visible\n",
652-
"Left Arm Isn't Visible\n"
679+
"Left Arm Isn't Visible\n",
680+
"Right Arm Isn't Visible\n",
681+
"Left Arm Isn't Visible\n",
682+
"Right Arm Isn't Visible\n",
683+
"Try Straightening Your Arm Somewhat\n",
684+
"Right Arm Isn't Visible\n",
685+
"Try Straightening Your Arm Somewhat\n",
686+
"Left Arm Isn't Visible\n",
687+
"Right Arm Isn't Visible\n",
688+
"Try Straightening Your Hip Somewhat\n",
689+
"Try Straightening Your Arm Somewhat\n",
690+
"Try Straightening Your Hip Somewhat\n",
691+
"Try Straightening Your Arm Somewhat\n",
692+
"Right Leg Isn't Visible\n",
693+
"Try Straightening Your Arm Somewhat\n",
694+
"Try Straightening Your Hip Somewhat\n",
695+
"Try Spreading Your Arms Out More\n",
696+
"Good Form\n",
697+
"Try Straightening Your Legs More\n",
698+
"Try Spreading Your Arms Out More\n",
699+
"Good Form\n",
700+
"Try Spreading Your Arms Out More\n",
701+
"Good Form\n",
702+
"Try Spreading Your Arms Out More\n",
703+
"Good Form\n",
704+
"Try Spreading Your Arms Out More\n",
705+
"Try Straightening Your Arm Somewhat\n",
706+
"Try Spreading Your Arms Out More\n",
707+
"Good Form\n",
708+
"Right Leg Isn't Visible\n",
709+
"Try Straightening Your Hip Somewhat\n"
653710
]
654711
}
655712
]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp