Deep Learning 2: How to Upload Data in Google Colaboratory

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 68

  • @vloggetts
    @vloggetts 3 года назад +15

    Literally the first 40 seconds are what I’ve been trying to do for the last 2 hours, thank you so much 🙏

  • @muhammadsaad23
    @muhammadsaad23 4 года назад +7

    You can just write !unzip 'filename' no need to write three lines to unzip and make sure while unzipping you must in the content folder for checking your folder just run pwd if you not in content folder just write cd content..btw nice tutorial keep up the good work

  • @RomanPaunov
    @RomanPaunov Месяц назад +1

    Ahmad, please let me know how to that in Linux/Ubuntu? You are using an Apple/MacOs machine. Thanks in advance

  • @alekhabhatt3405
    @alekhabhatt3405 6 лет назад +4

    Thank you Sir! This tutorial is really helpful. I was struggling to upload my image dataset to Google Colab but this tutorial solved all of my problems. Thanks a lot.

    • @AhladKumar
      @AhladKumar  6 лет назад +2

      welcome

    • @MrMadmaggot
      @MrMadmaggot 2 года назад

      How did you work with them? I mean I already unziped them and now I want to divide them in training and test sets

  • @mavi_kiz123
    @mavi_kiz123 3 года назад

    Tutorial is awesome i just wanna say really thank you. It contains practical information that saves lives and time.

  • @tanaygupta632
    @tanaygupta632 4 года назад +10

    No need to write whole code for unzip
    just write !unzip then file name

  • @dt28469
    @dt28469 3 года назад

    Very helpful video. Helped me run the Kagle Cats and Dogs dataset off of my machine. Thank you very much!
    PS, Why does he talk like he's expecting us to guess the next word he's gonna say like a live lecture. lol
    "The data.zip file will start...? uploading onto the...? Ipython notebook." lol

  • @vinodkinoni4863
    @vinodkinoni4863 5 лет назад +1

    Thank you so much for your best tutorial

  • @psoma2744
    @psoma2744 4 года назад +1

    Thank you for sharing this valuable information..
    Sir, I have few doubt (please correct me in case I am wrong)
    What I understood is - once we close google colab - the dataset that we extract will be following the procedure taught will be lost.
    So we have to repeat the procedure everytime? if so please suggest a way to save the dataset we extract in colab to local drive or to google drive ..

  • @aiavicii4243
    @aiavicii4243 3 года назад +1

    how do we used the data inside the google drive,?

  • @dogusbjk1997
    @dogusbjk1997 4 года назад

    Thank you very much!

  • @LuffyMonkey0327
    @LuffyMonkey0327 Год назад

    please do tutorial of opening tar file. i have tar file image dataset and having trouble opening it.

  • @asif1963
    @asif1963 4 года назад

    I have a question. I am working with an image dataset. It has 12 different folders with 12 different classes. For this reason, I want to reserve all images in a single directory that is all_im. I am writing code on it but it only copies a total of 808 images. But my main folder contains more than 5000 images. How may I copy all of the images from the main folder to a new folder in Google-Colab?
    My code for this particular question: destination_path = "/content/my_project"
    pattern = "/content/animal_dataset/*/*"
    for img in glob.glob(pattern):
    shutil.copy(img, destination_path)

  • @__KitaBisa
    @__KitaBisa 4 года назад

    Hi Sir, i can not upload files. because in google colab I only have a table of content. no code snippets and files. What should I do ?

  • @amanchoudhary4547
    @amanchoudhary4547 4 года назад

    Sir can you help me for my project doubts .
    My project is based on bird image classification and prediction and I already generate the more than 300 folder for various types of bird images and after that I coming to your video . Can you gide me how can i train the that images and prediction.

  • @joeurban2069
    @joeurban2069 4 года назад +1

    i got this(BadZipFile: zipfiles that span multiple disks are not supported)
    I tried all the soluation which I found, but didnt worked out. what should I do

    • @pallabidas3064
      @pallabidas3064 4 года назад

      Did you get the solution? I am also facing the same issue. For me i have converted my dataset folder in to 7z,but i dn't know the codes for extracting 7 z file in google colab

  • @Ashish-zq3fx
    @Ashish-zq3fx 5 лет назад

    Really informative...I want to know that the sample data folder is automatically created or not?

  • @derekhe6816
    @derekhe6816 5 лет назад +2

    Thank you for this tutorial. I have one question: how do you attach a file path of images to an ImageDataGenerator object? I have tried something like:
    pathtrain = "Final Dataset\\Train"
    firsttrain = generator.flow_from_directory(
    pathtrain,
    ...)
    I'm not sure how to access the files after I uploaded them

    • @AhladKumar
      @AhladKumar  5 лет назад +1

      in google colab first you have to upload the folder containing images as zip file. then unzip it. while reading the images you have to be careful in writing the path. google colab stores everything in content folder so path will start from \content folder. i think i have covered this in one of the lectures on google colab..you can check the video...

    • @derekhe6816
      @derekhe6816 5 лет назад +1

      @@AhladKumar Thank you so much, I looked at lesson 4 and I found out how to properly direct the path to the right folder

    • @AhladKumar
      @AhladKumar  5 лет назад +1

      @@derekhe6816 I am working on more lectures on deep learning such as variational auto encoders which will be uploaded soon...hope you will see them

    • @vinodkinoni4863
      @vinodkinoni4863 5 лет назад

      Sir I am feeling some problem with Path a csv file

    • @AhladKumar
      @AhladKumar  5 лет назад

      @@vinodkinoni4863 let me know what exactly is
      the error

  • @Lifeofjen_
    @Lifeofjen_ 4 года назад

    my zip file is not getting uploaded what should i do.??

  • @lekshmipriyasb5055
    @lekshmipriyasb5055 3 года назад

    can we permanently store the dataset?

  • @gabrielaugustomachado74
    @gabrielaugustomachado74 4 года назад

    ty sr. :)

  • @pallabidas3064
    @pallabidas3064 4 года назад

    Sir while uploading my dataset folder, i am getting error like bad zipfile. What to do sir, please help.

  • @KKKK-jr1nm
    @KKKK-jr1nm 5 лет назад

    Thanks a lot for this tutorial series!!
    Its really helpful!!

  • @maurovalls8851
    @maurovalls8851 Год назад

    mine takes too much time. how do i do it so it goes faster?

    • @xrhstos1330
      @xrhstos1330 Год назад

      Buy a faster internet connection

  • @krishj8011
    @krishj8011 4 года назад

    thanks

  • @rohanibnazad602
    @rohanibnazad602 5 лет назад +2

    from zipfile import ZipFile
    file_name='dogs-vs-cats.zip'
    with ZipFile(file_name,'r') as zip:
    zip.extractall()
    print('Done')
    I am trying to extract the 'dogs-vs-cats.zip' file but I am getting this error.
    BadZipFile: File is not a zip file
    Can anyone tell me why am I getting this error?

    • @hrehann
      @hrehann 5 лет назад

      Hi even am getting the same error...were you able to resolve it?

    • @rohanibnazad602
      @rohanibnazad602 5 лет назад

      @@hrehann No, I am still not able to solve it

    • @hrehann
      @hrehann 5 лет назад

      @@rohanibnazad602 Yea me too..if i change the permission to 'w' -write it doesn't throw any error, then i changed again to 'r'-Read...no error..but nothing happens even after refreshing @Ahlad Kumar

    • @hrehann
      @hrehann 5 лет назад

      @@rohanibnazad602 Hi, I was able to extract some other zip file which was low in memory (200 pics)..it got done...but the previous one that thrower an error had around (15k pics) which said BadZipfile...

  • @ManishVerma-ki3dk
    @ManishVerma-ki3dk 2 года назад

    where to find the data.zip file??

  • @kushghilothia6789
    @kushghilothia6789 5 лет назад

    should i follow the same method for extracting a .tgz file?

  • @jnyfah
    @jnyfah 5 лет назад

    After uploading the zip how do i import it for use in the colab ??

  • @implementtech9683
    @implementtech9683 2 года назад

    if you have a rar file then you can use this command --------->>> !unrar x "{Complete path to rar file}"

  • @ankitmukesh
    @ankitmukesh 4 года назад

    Can I add file from download link

  • @implementtech9683
    @implementtech9683 2 года назад

    from zipfile import ZipFile
    file_name = ''
    with ZipFile(file_name,'r') as zip:
    zip.extractall()
    print('Done')

  • @sehulviras
    @sehulviras 4 года назад

    Hi Ahlad, thanks for the video. I have a question if you don't mind:
    I have cloned a gitHub repo with .ipynb files in Colab, I can see the files listed; but how can I open that .ipynb file in Colab and run it? Can you guide me on that please. TIA

  • @vinodkinoni4863
    @vinodkinoni4863 5 лет назад

    Please tell me how to set a path for a csv file

    • @AhladKumar
      @AhladKumar  5 лет назад +1

      upload the csv file to google colab and write the path starting with /content as all the files stored on google colab are stored in content folder

  • @sapito169
    @sapito169 4 года назад

    where is the tutorial to style transferm from indian accent to english accent

  • @lyovmyshkin7561
    @lyovmyshkin7561 3 года назад

    To unzip:
    !unzip file_location

  • @MrMadmaggot
    @MrMadmaggot 2 года назад

    I have images

  • @legendsnitr9502
    @legendsnitr9502 2 года назад

    sir i wanna contact with u, provide me some link to reach u

  • @sumairayousuf2128
    @sumairayousuf2128 4 года назад

    How can we load gzip file instead of zip file in python