Yuav ua li cas upload cov ntaub ntawv loj dua 1Mb rau Colab

Yuav ua li cas upload cov ntaub ntawv loj heev tshaj 1mb rau google colab

Kuv yuav piav 2 txoj kev rau upload cov ntaub ntawv loj rau Colab. Thiab nws yog tias muaj teeb meem hauv Google Colab, lossis tej zaum nws yog qhov txwv, uas tsis pub upload cov ntaub ntawv loj dua 1Mb siv nws cov graphical interface.

Nws yog ib qho tseem ceeb heev rau cov neeg uas yuav mus ua hauj lwm nrog Whisper, vim hais tias tej lub suab hnyav dua 1 MB

Thaum upload ib cov ntaub ntawv, nws pib loading, nws yuav siv sij hawm ntev thiab thaum kawg lub upload ploj los yog tsuas yog 1Mb ntawm peb cov ntaub ntawv yog uploaded, tawm hauv nws tsis tiav.

kuv tso koj video

Yuav kom daws tau qhov no kuv yuav piav 2 txoj hauv kev:

  1. Importing cov ntaub ntawv los ntawm Google Drive
  2. Nrog cov ntaub ntawv qiv

Tsis tas li ntawd Kuv tso koj ib leeg xwb nrog tus lej kom koj tuaj yeem pom nws thiab sim nws nyob

Ntshuam cov ntaub ntawv rau Colab los ntawm Google Drive

Lwm qhov kev xaiv ua haujlwm nrog cov ntaub ntawv loj hauv Colab yog xa lawv mus rau peb Google Drive thiab sync Colab nrog Drive, yog li peb tuaj yeem siv txhua yam ntaub ntawv uas peb muaj nyob ntawd.

Ib qho kev xaiv nthuav heev, tshwj xeeb tshaj yog thaum peb yuav tsum tau siv Phau Ntawv Teev Tseg ntawm qhov rov ua dua. Peb yuav tsum nco ntsoov tias txhua zaus peb khiav ib phau ntawv, tag nrho cov ntaub ntawv ntawm lub hard disk yuav ploj. Yog li muaj phau ntawv txuas nrog Drive

TSEEM CEEB: Tias email ntawm Colab account thiab Google Drive account yog tib yam, thaum kuv tau sim hloov nws, siv Colab account thiab lwm tus account Driva, nws tau muab teeb meem rau kuv, txawm hais tias hauv txoj kev xav nws yuav tsum ua haujlwm zoo.

Rau qhov no peb yuav siv cov cai hauv qab no

from google.colab import drive
drive.mount('/content/drive')

Drive yuav nug peb kom tso cai los ntawm tus account

Yuav ua li cas sync google drive nrog colab

Thaum lees txais peb yuav pom tias nws txuas lub hard drive thiab tam sim no peb tuaj yeem pom cov ntaub ntawv

Google tsav rau kev tso cai desktop

Thiab tom qab ntawd

google drive tso cai rau google colab

Lawv yuav nyob rau hauv ib lub nplaub tshev hu ua tsav lossis mydrive, hauv peb rooj plaub sab hauv cov ntsiab lus raws li peb tau qhia

qhov twg los nrhiav google drive cov ntaub ntawv hauv kev sib koom tes

Koj tuaj yeem hloov kho cov ntsiab lus nyob rau sab laug bar, nrog rau daim nplaub tshev icon.

Yuav ua li cas upload cov ntaub ntawv rau Colab nrog cov ntaub ntawv

Yooj yim heev, peb tsuas yog ntxiv 2 lub hlwb nrog cov lej hauv qab no, nws tuaj yeem ua tiav hauv ib lub xov tooj tab sis kuv nyiam muaj ib qho uas tso cai rau peb xaiv peb cov ntaub ntawv hauv ib lub xov tooj ntawm tes.

Yog li thaum pib ntawm peb Colab peb yuav siv

from google.colab import files

kom import cov tsev qiv ntawv python ntawd

Thiab ces nyob rau hauv cov kauj ruam uas peb xav upload peb cov ntaub ntawv peb yuav muab tso

files.upload()

Qhov no yuav nce mus txog lub hauv paus ntawm Colab.

Yog tias koj paub lwm txoj kev, tawm tswv yim.

Yog tias koj yog ib tus neeg tsis txaus siab zoo li peb thiab xav koom tes hauv kev saib xyuas thiab txhim kho qhov project, koj tuaj yeem muab nyiaj pub dawb. Tag nrho cov nyiaj yuav mus yuav phau ntawv thiab cov ntaub ntawv los sim thiab ua cov ntawv qhia

Deja un comentario