1 line
6.7 KiB
XML
1 line
6.7 KiB
XML
<xml version="Mixly 2.0 Beta11" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_block_notes" id="MR6|kVdI;@K8gV]0L%.6" x="268" y="247"><field name="VALUE">-本地端模型训练</field><next><block type="factory_block_notes" id="V9NMeJSCu8M9eX^}TAAj"><field name="VALUE">1.准备训练物品并录入名称 (理论数量不限,目前只支持英文名)</field><next><block type="factory_block_notes" id="sRV)H/rf:wQ,anSW96?r"><field name="VALUE">2.填写总的训练拍照数量(如四个物品,每个训练5张,总共20,并不同角度训练)</field><next><block type="factory_block_notes" id="zNlg[@Vhs4_X-M_ApbX="><field name="VALUE">3.保存模型下次直接模型加载,不需要再次训练模型</field><next><block type="factory_block_notes" id="a=(RK_sRK=mB@1x,x.,3"><field name="VALUE">4.运行模型,将返回识别到物品名及置信度</field><next><block type="camera_init" id="xIxN)p5yY9v0={~Y)T=o" inline="true"><value name="key1"><shadow type="mode" id="vyt#cV98tY)c=({mq%t`"><field name="flag">sensor.YUV422</field></shadow></value><value name="key2"><shadow type="size" id="K0y_RHF{.vBVR3;B#6sp"><field name="flag">sensor.B240X240</field></shadow></value><value name="key3"><shadow type="on_off" id="OG.8;{@CsB{y^Mfd)W`."><field name="flag">1</field></shadow></value><next><block type="camera_set_windowing" id="aGj_Qs$V3qjRCrx$EJ-{"><value name="numa"><shadow type="math_number" id="DD.|nO~2_3=@~Lv#*.YH"><field name="NUM">224</field></shadow></value><value name="numb"><shadow type="math_number" id="v2TpuQ:MAm]~/88IiO+|"><field name="NUM">224</field></shadow></value><next><block type="camera_set_vflip" id="F%h.4-oLB=RH4VWZYiGR"><value name="key"><shadow type="on_off" id="9CEG}÷-4tlf?b%3O0k"><field name="flag">1</field></shadow></value><next><block type="lcd_init" id="b~:VchL0E)glMUds/%]E" inline="true"><value name="freq"><shadow type="math_number" id="*|[psAJLNxjdSKE*]Nvh"><field name="NUM">15000000</field></shadow></value><value name="color"><shadow type="math_number" id="elud{9XA5R*]r:3lgKfD"><field name="NUM">0x0000</field></shadow></value><next><block type="tuple_calss" id="+)!gc)R.v=yV$f9}1,Gf"><field name="VAR">calss</field><field name="TEXT">'name1', 'name2', 'name3', 'name4'</field><next><block type="ailocal_training" id="W40~67KV71D_N9gb%L*b" disabled="true"><value name="calss"><shadow type="factory_block_return" id="@`yXjJj6pT.$IEyn+@Ly"><field name="VALUE">calss</field></shadow></value><value name="sample"><shadow type="math_number" id="|=:bb%#163/03V2.vp?7"><field name="NUM">20</field></shadow></value><value name="save"><shadow type="text" id="#!3pY0w7g4Szs+w86sA."><field name="TEXT">MixPY.ai</field></shadow></value><next><block type="ailocal_loading" id="MP_1kHq+IQK!-[B~AJQ,"><value name="path"><shadow type="text" id="Hzq:Y-gD@+]Zw#{b54):"><field name="TEXT">Cool_AI.ai</field></shadow></value><next><block type="controls_whileUntil" id="gSUbiJ}O([p}eax|VHK:"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="odC#054A+#VN-(DOoQ-,"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="70EIKg?.jB~ce1leb*s;"><field name="VAR">img</field><value name="VALUE"><block type="camera_snapshot" id="TE-`|m_,3C_wEuSWAX+C"></block></value><next><block type="variables_set" id="Djo}s+4Aj3Q=).`fMpw#"><field name="VAR">list</field><value name="VALUE"><block type="ailocal_predict" id="rV~e2lw?e=xT7ibD8`,y"><value name="calss"><shadow type="factory_block_return" id="N$2ql$F#:_2NWc$~u%[V"><field name="VALUE">calss</field></shadow></value><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="@)kQK_v/xA,/,2K7P#A3"><field name="VAR">image</field></shadow><block type="variables_get" id="T0MCc9k7gf34zqsE0q}#"><field name="VAR">img</field></block></value></block></value><next><block type="system_print" id="G}9t!!U}wAUYJ7FV1,EF"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="`Z[08ACd:.h([:zfZrod"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="7}NrC0@ySM=Z:bC?Oz,d"><field name="VAR">list</field></block></value><next><block type="lcd_display" id="%gKP[#~6B%2(qn#QW|)1"><value name="img"><shadow xmlns="http://www.w3.org/1999/xhtml" type="factory_block_return" id="L)gQf;*Q+-J^pmXj_KPu"><field name="VALUE">image</field></shadow><block type="variables_get" id="?giGSR3uQr-Xv2km?Xyk"><field name="VAR">img</field></block></value><next><block type="lcd_draw_string" id="EMYMr*|m%KBJ?`EyKT^}" inline="false"><value name="x"><shadow type="math_number" id="pfks91L3f(~ahOhXy4S."><field name="NUM">48</field></shadow></value><value name="y"><shadow type="math_number" id="!-z5c@SjHXhdL}(?L(Af"><field name="NUM">8</field></shadow></value><value name="text"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="9S|VGD!+rJ3.?3/]wS;v"><field name="TEXT">MixPY</field></shadow><block type="text_format_noreturn" id="yTNcxC{Z:hq=_Z`f^NNg"><mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation><value name="VAR"><shadow type="text" id="rJ+d!T:hjnmQgix@zZQ:"><field name="TEXT">{} {} %</field></shadow></value><value name="ADD0"><block type="lists_get_index" id="_UudS3,D#48Aoh5Goj@v"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="Qr6s0[T}E`-~g6S`ym{r"><field name="VAR">mylist</field></shadow><block type="variables_get" id="^EvGf@+Qx6am@bs02t*u"><field name="VAR">list</field></block></value><value name="AT"><shadow type="math_number" id="?$Hlal$)S:SeAHFw)}l/"><field name="NUM">0</field></shadow></value></block></value><value name="ADD1"><block type="lists_get_index" id="(aNzO`hEj-T3DSH$~0$R"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="Qr6s0[T}E`-~g6S`ym{r"><field name="VAR">mylist</field></shadow><block type="variables_get" id="SJxGORngY4{OCnQsoHb4"><field name="VAR">list</field></block></value><value name="AT"><shadow type="math_number" id="}/Dl%K*RLLe7Ga}(7{p+"><field name="NUM">1</field></shadow></value></block></value></block></value><value name="color_T"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="cVjZPuMlaVW,d@L.8Gzo"><field name="NUM">0XFFFF</field></shadow><block type="lcd_colour" id="c}Y6~5XNJ^L5JEs,VqsI"><value name="key"><shadow type="lcd_color" id="TH^%MS2F7zy4KO8FH7Gt"><field name="flag">lcd.RED</field></shadow></value></block></value><value name="color_S"><shadow type="math_number" id=".MNI3UqKk9{0aU,[@JU?"><field name="NUM">0X0000</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></xml> |