Skip to content

Commit c8ecc65

Browse files
committed
fix
1 parent bdc09b8 commit c8ecc65

3 files changed

Lines changed: 31 additions & 16 deletions

File tree

.github/workflows/export-models.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
include:
2727
- name: dl3
2828
path: dl3/python
29-
artifact: dl3-xnnpack-fp32
29+
artifact: dl3_xnnpack_fp32.pte
3030
output: dl3/python/dl3_xnnpack_fp32.pte
3131
- name: mv2
3232
path: mv2/python
@@ -42,10 +42,6 @@ jobs:
4242
mv3/python/mv3_xnnpack_fp32.pte
4343
4444
name: Export ${{ matrix.name }}
45-
46-
export-dl3:
47-
runs-on: ubuntu-latest
48-
name: Export DeepLabV3 Model
4945
steps:
5046
- name: Checkout repository
5147
uses: actions/checkout@v4
@@ -70,14 +66,3 @@ jobs:
7066
name: ${{ matrix.artifact }}
7167
path: ${{ matrix.output }}
7268
if-no-files-found: error
73-
run: pip install executorch torchvision
74-
75-
- name: Export DL3 model
76-
working-directory: dl3/python
77-
run: python export.py
78-
79-
- name: Upload PTE model
80-
uses: actions/upload-artifact@v4
81-
with:
82-
name: dl3_xnnpack_fp32.pte
83-
path: dl3/python/dl3_xnnpack_fp32.pte

dl3/android/DeepLabV3Demo/app/src/main/res/layout/activity_main.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,31 @@
9090
app:layout_constraintStart_toStartOf="parent"
9191
app:layout_constraintEnd_toEndOf="parent" />
9292

93+
<!-- Model Status Text -->
94+
<TextView
95+
android:id="@+id/modelStatusText"
96+
android:layout_width="wrap_content"
97+
android:layout_height="wrap_content"
98+
android:layout_marginTop="8dp"
99+
android:text="@string/model_status_placeholder"
100+
android:textSize="14sp"
101+
android:textColor="#666666"
102+
android:visibility="invisible"
103+
app:layout_constraintTop_toBottomOf="@+id/xnnpackButton"
104+
app:layout_constraintStart_toStartOf="parent"
105+
app:layout_constraintEnd_toEndOf="parent" />
106+
107+
<!-- Download Model Button -->
108+
<Button
109+
android:id="@+id/downloadModelButton"
110+
android:layout_width="wrap_content"
111+
android:layout_height="wrap_content"
112+
android:layout_marginTop="8dp"
113+
android:text="@string/download_model"
114+
android:textAllCaps="false"
115+
android:visibility="gone"
116+
app:layout_constraintTop_toBottomOf="@+id/modelStatusText"
117+
app:layout_constraintStart_toStartOf="parent"
118+
app:layout_constraintEnd_toEndOf="parent" />
119+
93120
</androidx.constraintlayout.widget.ConstraintLayout>

dl3/android/DeepLabV3Demo/app/src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
<string name="load_and_refresh">Load And Refresh</string>
1313
<string name="run">Run</string>
1414
<string name="inference_time_placeholder">Inference: -- ms</string>
15+
<string name="download_model">Download Model</string>
16+
<string name="downloading">Downloading...</string>
17+
<string name="model_status_placeholder">Model status</string>
1518
</resources>

0 commit comments

Comments
 (0)