Cov txheej txheem:
- Kauj Ruam 1: Teeb Google Buck Storage Bucket
- Kauj Ruam 2: Txheeb Koj Cov Ntaub Ntawv thiab Tsim Dataset Csv
- Kauj Ruam 3: Tshaj Tawm Koj Cov Spectrograms rau Koj Lub thoob
- Kauj Ruam 4: Tshaj Tawm Koj Cov Dataset Csv
- Kauj ruam 5: Tsim Dataset
- Kauj Ruam 6: Tsim Koj Tus Qauv AutoML
- Kauj Ruam 7: Kuaj Koj Tus Qauv
- Kauj Ruam 8: Nruab Koj Tus Qauv Rau Hauv ThinkBioT
Video: Ntu 2. ThinkBioT Qauv Nrog Google AutoML: 8 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
ThinkBioT tau tsim los ua "Plug and Play", nrog Ntug TPU sib xws TensorFlow Lite Qauv.
Hauv cov ntaub ntawv no peb yuav npog kev tsim cov spectrograms, teeb tsa koj cov ntaub ntawv, thiab siv Google AutoML.
Cov cai hauv qhov kev qhia no yuav sau hauv bash yog li yuav muaj ntau lub platform sib xws.
Kev vam khom
- Txawm li cas los ua ntej pib koj yuav tsum teeb tsa Sox kab lus hais kom ua kab ke ua haujlwm tau zoo nrog Windows, Mac thiab Linux pab kiag li lawm.
- Yog tias koj nyob ntawm Windows lub cuab yeej txoj hauv kev yooj yim tshaj plaws los khiav cov ntawv sau bash yog ntawm Git yog li kuv xav qhia thiab rub tawm thiab teeb tsa ntawd raws li nws muaj txiaj ntsig ntau txoj hauv kev,
- Rau kev kho cov cai txawm siv koj nyiam tus kho lossis teeb tsa NotePad ++ rau lub qhov rais lossis Atom rau lwm lub tshuab ua haujlwm.
** Yog tias koj muaj tus qauv TensorFlow uas twb muaj lawm lossis xav sim hloov kev kawm nrog tus qauv uas twb muaj lawm, thov mus saib hauv Google Coral Documentation.
Kauj Ruam 1: Teeb Google Buck Storage Bucket
1. Nkag mus rau hauv koj tus lej Gmail (lossis tsim ib qho yog tias koj tsis muaj Google tus lej)
2. Mus rau nplooj ntawv xaiv qhov project thiab ua qhov haujlwm tshiab rau koj tus qauv thiab cov ntaub ntawv spectrogram. Koj yuav tsum tau pab kom them nqi kom nce mus ntxiv.
3. Mus ntsib https://cloud.google.com/storage/ thiab nias lub pob tsim lub pob nyob rau sab saum toj ntawm nplooj ntawv.
4. Nkag mus rau koj lub npe xav tau lub npe thiab tsim lub thoob lees txais lub chaw teeb tsa.
Kauj Ruam 2: Txheeb Koj Cov Ntaub Ntawv thiab Tsim Dataset Csv
Kuv tau tsim tsab ntawv muaj txiaj ntsig los tsim koj cov ntaub ntawv dataset.csv xav tau los tsim koj tus qauv. Cov ntaub ntawv cov ntaub ntawv txuas cov duab hauv koj lub thoob rau lawv daim ntawv lo hauv cov ntaub ntawv.
1. Rub tawm ThinkBioT chaw cia khoom los ntawm GitHub thiab
2. Luam tbt_spect_example.sh cov ntaub ntawv los ntawm Cov Cuab Yeej npe rau hauv daim nplaub tshev tshiab ntawm koj lub desktop.
3. Ntxiv cov ntaub ntawv audio uas koj xav siv hauv koj tus qauv, muab lawv tso rau hauv cov ntawv tais ceev tseg uas muaj lawv daim ntawv lo (piv txwv li yam koj xav kom lawv txheeb rau.) Piv txwv li, yog tias koj xav txheeb xyuas cov dev lossis miv, koj tuaj yeem muaj daim nplaub tshev dev, nrog lub suab nrov LOS YOG nplaub tshev npe hu ua miv nrog miv suab thiab lwm yam.
4. Qhib tbt_spect_example.sh nrog Notepad ++ thiab hloov "yourbucknamename" hauv kab 54 nrog lub npe ntawm koj Google Cia Thoob. Piv txwv li, yog tias koj lub thoob hu ua myModelBucket kab yuav raug hloov mus
thoob = "gs: // myModelBucket/spectro-data/"
5. Khiav cov cai los ntawm kev ntaus cov hauv qab no hauv koj lub davhlau ya nyob twg Bash, txoj cai yuav ua haujlwm thiab tsim koj cov ntawv cim npe csv cov ntaub ntawv thiab cov npe hu ua spectro-data ntawm koj lub rooj saum toj nrog cov txiaj ntsig spectrograms.
sh tbt_spect_example.sh
Kauj Ruam 3: Tshaj Tawm Koj Cov Spectrograms rau Koj Lub thoob
Muaj ob peb txoj hauv kev rub mus rau Google Cia, qhov yooj yim tshaj plaws yog ua daim nplaub tshev ncaj qha rau thauj khoom;
1. Nyem rau ntawm koj lub npe thoob hauv koj nplooj ntawv Google Cia.
2. Xaiv lub "UPLOAD FOLDER" khawm thiab xaiv koj "spectro-data/" phau ntawv teev npe tsim nyob rau theem kawg.
LOS YOG
2. Yog tias koj muaj cov ntaub ntawv ntau koj tuaj yeem tsim "spectro-data/" directory los ntawm kev xaiv "CREATE FOLDER", tom qab ntawv nkag mus rau hauv daim nplaub tshev thiab xaiv "UPLOAD FILES". Qhov no tuaj yeem yog qhov kev xaiv zoo rau cov ntaub ntawv loj xws li koj tuaj yeem tso cov spectrograms hauv ntu, txawm tias siv ntau lub khoos phis tawj los ua kom nrawm dua.
LOS YOG
2. Yog tias koj yog tus neeg siv qib siab koj tseem tuaj yeem upload ntawm Google Cloud Shell;
gsutil cp spectro-data/* gs: // your-bucket-name/spectro-data/
Tam sim no koj yuav tsum muaj lub thoob uas muaj cov duab zoo nkauj zoo nkauj!
Kauj Ruam 4: Tshaj Tawm Koj Cov Dataset Csv
Tam sim no peb yuav tsum xa cov qauv-ntawv.csv cov ntawv rau koj "spectro-data/" directory in Google Storage, nws yeej tseem zoo ib yam li cov kauj ruam kawg, koj tsuas yog xa cov ntaub ntawv nkaus xwb ntau dua.
1. Nyem rau ntawm koj lub npe thoob hauv koj nplooj ntawv Google Cia.
2. Xaiv lub UPLOAD FILE khawm thiab xaiv koj tus qauv-labels.csv cov ntaub ntawv uas koj tau tsim ua ntej.
Kauj ruam 5: Tsim Dataset
1. Ua ntej koj yuav xav nrhiav AutoML VIsion API, nws tuaj yeem ua rau me ntsis lo lus! Txoj hauv kev yooj yim tshaj plaws yog tshawb nrhiav "pom kev zoo" hauv kab ntawv tshawb fawb ntawm koj li Google Huab cia (duab).
2. Thaum koj nyem rau ntawm API txuas koj yuav xav tau kom qhib API.
3. Tam sim no koj yuav nyob rau hauv AutoML Vision Dashboard (daim duab) nyem o cov ntaub ntawv tshiab khawm thiab xaiv Cov ntawv ib leeg thiab 'Xaiv cov ntawv CSV'. Tom qab ntawd koj yuav suav nrog qhov txuas rau koj tus qauv-label.csv cov ntaub ntawv hauv koj lub thoob ntim khoom. Yog tias koj tau ua raws qhov kev qhia no nws yuav yog raws li hauv qab no
gs: //yourBucketName/spectro-data/model-labelsBal.csv
4. Tom qab ntawv nyem txuas ntxiv los tsim koj cov ntaub ntawv teev npe. Nws yuav siv qee lub sijhawm los tsim.
Kauj Ruam 6: Tsim Koj Tus Qauv AutoML
Thaum koj tau txais koj li email qhia rau koj paub koj cov ntaub ntawv teev npe tau raug tsim los koj tau npaj los tsim koj tus qauv tshiab.
- Nias lub tsheb ciav hlau khawm
- Xaiv hom qauv: Ntug thiab Qauv ua piv txwv kwv yees: Ntug TPU thiab tawm ntawm lwm qhov kev xaiv raws li lub hauv paus pib, nyuaj koj yuav nyiam sim nrog tom qab ntawd.
- Tam sim no koj tus qauv yuav qhia, nws yuav siv qee lub sijhawm thiab koj yuav tau txais email thaum nws npaj txhij rub tawm.
Nco tseg: Yog tias koj lub tsheb ciav hlau khawm tsis muaj nyob koj yuav muaj teeb meem nrog koj cov ntaub ntawv. Yog tias koj muaj tsawg dua 10 ntawm txhua chav kawm (daim ntawv lo) lub kaw lus yuav tsis pub koj Qhia Tus Qauv Yog li koj yuav tau ntxiv cov duab ntxiv. Nws yog qhov tsim nyog tau saib hauv Google AutoML Video yog tias koj xav tau kev qhia meej.
Kauj Ruam 7: Kuaj Koj Tus Qauv
Thaum koj tau txais koj tus qauv ua tiav email nyem rau ntawm qhov txuas kom rov qab mus rau AutoML Vision API.
1. Tam sim no koj yuav tuaj yeem pom koj cov txiaj ntsig thiab cov lej tsis meej pem rau koj tus qauv.
2. Cov kauj ruam tom ntej yog ntsuas koj Tus Qauv, mus rau 'TEST & USE' lossis 'PREDICT' coj txawv txawv zoo li muaj 2 tus neeg siv GUI's, ob qho uas kuv tau pom, tab sis cov kev xaiv ob qho tib si muaj kev ua haujlwm zoo ib yam.
3. Tam sim no koj tuaj yeem xa cov ntawv xeem spectrogram. Txhawm rau ua ib qho spectrogram koj tuaj yeem siv tbt_make_one_spect.sh program los ntawm ThinkBioT Github. Cias muab nws tso rau hauv daim nplaub tshev uas koj xav hloov pauv mus rau hauv lub ntsej muag qhib Git Bash qhov rai (lossis dav hlau) thiab siv cov cai hauv qab no, hloov koj lub npe ntawv.
sh tbt_make_one_spect.sh yourWavName.wav
4. Tam sim no tsuas yog upload lub spectrogram thiab tshawb xyuas koj cov txiaj ntsig!
Kauj Ruam 8: Nruab Koj Tus Qauv Rau Hauv ThinkBioT
Txhawm rau siv koj tus qauv ci tshiab tsuas yog tso tus qauv thiab txt cov ntawv rau hauv CModel nplaub tshev;
pi> ThinkBioT> ClassProcess> CModel
Tam sim no koj tau npaj siv ThinkBioT:)
** NB ** Yog tias koj siv koj tus qauv sab nraud ntawm ThinkBioT lub moj khaum koj yuav tsum hloov kho koj daim ntawv lo nrog ntxiv umbers mus rau qhov pib ntawm txhua kab raws li qhov tseeb tflite cov neeg txhais lus built-in "readlabels" muaj peev xwm xav tias lawv nyob ntawd. Kuv tau sau qhov kev ua haujlwm raug cai hauv ThinkBioT moj khaum classify_spect.py ua haujlwm ib puag ncig uas koj zoo siab tos txais los siv hauv koj tus lej code:)
def ReadLabelFile (file_path):
counter = 0 nrog qhib (file_path, 'r', encoding = 'utf-8') raws li f: kab = f.readlines () ret = {} rau kab hauv kab: ret [int (counter)] = line.strip () counter = counter + 1 ret ret
Pom zoo:
Qauv Cov Qauv Txheej Txheem Nrog Sab Saum: 13 Kauj Ruam (nrog Duab)
Qauv Cov Qauv Txheej Txheem Nrog Sab Saum Automated: Ua qauv qauv tsheb ciav hlau yog qhov haujlwm zoo, siv lub tshuab nws yuav ua rau nws zoo dua! Cia peb saib qee qhov zoo ntawm nws qhov kev siv tshuab: Tus nqi qis: tag nrho cov txheej txheem yog tswj los ntawm Arduino microcontroller, siv L298N mo
Sib cuam tshuam GPS Cov Qauv nrog Raspberry Pi: Dashcam Ntu 2: 3 Cov Kauj Ruam
Sib cuam tshuam GPS Cov Qauv nrog Raspberry Pi: Dashcam Ntu 2: Qhov no yog ntu 2 ntawm qhov phiaj xwm phiaj xwm thiab hauv kab ntawv no, peb yuav kawm paub yuav ua li cas txhawm rau teeb tsa GPS module rau Raspberry Pi. Tom qab ntawd peb yuav siv GPS cov ntaub ntawv thiab ntxiv nws rau hauv video ua cov ntawv sau. Thov nyeem ntu 1 los ntawm kev siv qhov txuas hauv qab no, ua ntej koj
Qauv Cov Qauv Txheej Txheem Nrog Kev Soj Ntsuam Ntawm Sab Saum (V2.0): 13 Kauj Ruam (nrog Duab)
Qauv Cov Qauv Txheej Txheem Nrog Kev Siv Hla Dhau Sab (V2.0): Txoj haujlwm no yog hloov kho ntawm ib qho ntawm cov qauv kev tsheb ciav hlau yav dhau los kev ua haujlwm, Tus Qauv Kev Teeb Kev Teeb nrog Automated Siding. Cov ntawv no ntxiv qhov tshwj xeeb ntawm kev sib txuas thiab txiav tawm ntawm lub tsheb ciav hlau nrog cov khoom txav. Kev ua haujlwm ntawm
Arduino Cov Log Kub Ceev Taug Kev - Ntu 1 - Cov Qauv: 4 Cov Kauj Ruam
Arduino Hot Wheels Speed Track - Part 1 - Prototype: Nws yuav tsum tsis muaj qhov xav tsis thoob uas kuv tus tub nyiam lub log kub thiab sib tw nws lub tsheb thoob lub tsev! Ib qho uas nws nyiam ua tshaj plaws yog sib tw tawm ntawm nws lub tsheb (ntau dua 100 tam sim no) los txiav txim seb lub tsheb twg yog lub tsheb nrawm tshaj. Tam sim no nws ua txhua yam los ntawm qhov muag, thiab
DIY Prototypes (neeg hlau lossis tsim qauv kos duab), Nrog Cov Khoom Hauv Tsev (Qhia Rov Ua dua) Ntu Ib: 4 Cov Kauj Ruam
DIY Prototypes (neeg hlau lossis tsim qauv kos duab), Nrog Cov Khoom Hauv Hauv Tsev (rov ua dua Phau Ntawv Qhia) Ntu Ib: Cov lus qhia no tsis piav qhia yuav tsim qee cov neeg hlau lossis kos duab tsim, tsis piav qhia yuav tsim lawv li cas, txawm li cas los xij nws yog phau ntawv qhia yuav ua li cas thiaj nrhiav tau cov ntaub ntawv tsim nyog rau kev tsim kho (kws kho tsheb) ntawm cov neeg hlau qauv (feem ntau ntawm cov no