TensorFlow Tutorial 18 - Custom Dataset for Images

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024

ความคิดเห็น • 60

  • @ivanduranperez8115
    @ivanduranperez8115 3 ปีที่แล้ว +13

    Keep making content like this, please. This has been extremely helpful. I hope your channel grows ❤️

  • @UtkarshChaudhary-p4u
    @UtkarshChaudhary-p4u 8 หลายเดือนก่อน

    Thanks a lot man. Was stuck on this for a long time.
    Literally a life saver.

  • @ioannago3751
    @ioannago3751 3 ปีที่แล้ว +5

    You are amazing man ! I have seen the most of your videos and you cover so many subjects. You truly helped me a lot to figure out many questions that I had ! Great job , keep going !

  • @kajalyadav4246
    @kajalyadav4246 ปีที่แล้ว

    This one is life saviour. Thank you. I have been going through documentations for hours & found nothing relatable. I was just about to give up for today that's exactly when I found you. You are amazing.

  • @alierencelik388
    @alierencelik388 3 ปีที่แล้ว +2

    Just to say, I have been using PyTorch for 3 years and now I need to use TF. I have to say data loading in PyTorch is soo straightforward. In TF, you need to use TF's tools and prepare your folders accordingly.
    Thanks for the video.

  • @AladdinPersson
    @AladdinPersson  4 ปีที่แล้ว +13

    I was inspired and learned the basics of TensorFlow after I completed the TensorFlow specialization on coursera. Personally I think these videos I created give a similar understanding but if you wanna check it out you can. Below you'll find both affiliate and non-affiliate links, the pricing for you is the same but a small commission goes back to the channel if you buy it through the affiliate link which helps me create more future videos.
    affiliate: bit.ly/3JyvdVK
    non-affiliate: bit.ly/3qtrK39
    Here's the outline for the video:
    0:00 - Introduction
    0:29 - Images in subfolders
    14:03 - Folder with annotation csv
    19:15 - All in single folder
    24:53 - Ending
    For loading data that's structured inside of subfolders I also show you two different ways you can do it so that's why that one took a little bit longer than the others! :)

  • @rajatvardam2787
    @rajatvardam2787 ปีที่แล้ว

    Exactly what I was looking for. And in multiple ways at that. This content has helped me. Please keep up the good work.

  • @HVossi92
    @HVossi92 2 ปีที่แล้ว

    Awesome, I could not find any good explanation for the validation_split, thanks!

  • @MaralSheikhzadeh
    @MaralSheikhzadeh 2 ปีที่แล้ว

    Thank you. this really helped me create a custom dataset. :)

  • @davidportilla4377
    @davidportilla4377 3 ปีที่แล้ว

    thanks a lot! this is the tutorial i need! just new to deep learning , comunity so helpfull

  • @ilaydelrey3122
    @ilaydelrey3122 3 ปีที่แล้ว

    this was immensely helpful!

  • @vuledinh8262
    @vuledinh8262 2 ปีที่แล้ว

    very helpful, thank you for this video

  • @MultiAllan05
    @MultiAllan05 2 ปีที่แล้ว +1

    Great tutorial, Aladdin! Do you know how to create custom TFDS datasets for object detection? It will help me a lot.
    Thanks!

  • @Crimau12000
    @Crimau12000 3 ปีที่แล้ว +1

    Hey, thanks for the video. Cool explanation. Thought I have a question. How do handle regression problems? All of this tensorflow methods (flow from directory, Image generation) are build for classification probems.

  • @aimanjavid8441
    @aimanjavid8441 2 ปีที่แล้ว

    awsome Thank you so much

  • @sadeghkhosravi6154
    @sadeghkhosravi6154 2 ปีที่แล้ว

    Thank you for this tutorial, when our model have multiple output, how to build database?

  • @fingerstyledojo
    @fingerstyledojo 3 ปีที่แล้ว

    qBittorrent running in the background while using Mullvad VPN, exactly my setup!
    What a bro :3

  • @emilefortier1688
    @emilefortier1688 3 ปีที่แล้ว

    Hey Aladdin,
    I'm making my debut into GANs and was wondering if your guide here would translate well for GAN training. Thanks for the awesome content!

  • @RC-qi6hs
    @RC-qi6hs 3 ปีที่แล้ว

    Good content, deserve a sub 🎉

  • @julienserbanescu1484
    @julienserbanescu1484 3 ปีที่แล้ว +4

    I'm getting this error and i'm wondering what I can do to fix it: ' ValueError: Input 0 of layer dense is incompatible with the layer: expected axis -1 of input shape to have value 6272 but received input with shape [None, 20000]' I am using custom images but it is generally the same as the tutorial one, for the subfolder section. Any help would be appreciated thanks!

  • @jaydevisinghgohigo5646
    @jaydevisinghgohigo5646 2 ปีที่แล้ว

    Very good jobdone

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 2 ปีที่แล้ว

    Can you show how to resize the image for the "folder with annotation csv" example?

  • @jamilahmarramduarte1575
    @jamilahmarramduarte1575 ปีที่แล้ว

    is it okay to use this in a many classes?

  • @hamidesmaeilifardi800
    @hamidesmaeilifardi800 5 หลายเดือนก่อน

    Good

  • @DizaFebriyan
    @DizaFebriyan 2 ปีที่แล้ว

    how to save the train model with this method ?

  • @Crimau12000
    @Crimau12000 3 ปีที่แล้ว +1

    Hey, thanks very much for the video. I have a question: When you build your dataset throuh maping images loaded with tf.io.readfile....., do you still need to build an image generator for feeding your model as you did in first part of the video?

  • @543resident4
    @543resident4 3 ปีที่แล้ว +1

    Hi Aladdin, I've been following your tutorials and they've been excellent so far.
    Have you ever come across the error 'ValueError: Error when checking input: expected input_1 to have 4 dimensions, but got array with shape ()'?
    I got that error when I tried to load my own dataset with a csv file. Then, I tried downloading your exact code from github, but I still got the same error even when I ran that using the MNIST dataset and csv file that you used in this video.
    I'm pulling my hair out here, because there's absolutely no logical reason that code which you showed working in the video would suddenly not work on my own machine.
    If there's any help you could provide, it would be GREATLY appreciated.

    • @patrickromero8724
      @patrickromero8724 3 ปีที่แล้ว

      I have the same problem. Please I need help with this as well :(

    • @mariuspy
      @mariuspy 11 หลายเดือนก่อน

      I have the same problem, I couldn't figure it out how to solve

  • @robabmaghbol2247
    @robabmaghbol2247 3 ปีที่แล้ว

    it was great example. where can we get the code and images.

  • @seyeeet8063
    @seyeeet8063 3 ปีที่แล้ว

    thanks for the video, It would be very useful if you can covering other important things that are useful for dataloader, such as how to do custom augmentation in the dataloader, how to use stuff like tfrecord, etc that are designed for dataloader and what is theri advantages, how to do dataloader if we have very large dataset (e.g. more than 100K images)
    thanks

  • @rafaelzinnilopes8052
    @rafaelzinnilopes8052 3 ปีที่แล้ว

    In model fit, didn't you need a y_test and y_train to show that the number you have is 0,1,2,3,4,5,6,7,8 or 9?

  • @sruthisriram9114
    @sruthisriram9114 3 ปีที่แล้ว +2

    In what format are the images of digits stored in your computer. jpg? png?

  • @divyankshah702
    @divyankshah702 3 ปีที่แล้ว +1

    Hey Aladdin plz help
    I am using method 1 for loading custom dataset stored in subfolders.
    Now, I want to use model.predict() on it but not able to use getting errors.
    Plz show how to use model.predict() in method 1

  • @ruvishkarathnayake9125
    @ruvishkarathnayake9125 4 ปีที่แล้ว +1

    Hi, can we use the same method to split the testing set as well or is this only for the ''training" and "validation" set splitting?

    • @AladdinPersson
      @AladdinPersson  4 ปีที่แล้ว

      No you can use it to split the test set as well!

  • @radualexa3713
    @radualexa3713 4 ปีที่แล้ว

    Hello! It's a very good video...Thank you! Could you tell me how can I upload my own images to predict them with the model I trained, please? I try to find this information an until now I could not find anything about this subject.

  • @RajatSharma-ct6ie
    @RajatSharma-ct6ie 3 ปีที่แล้ว +1

    Hi Aladdin, thanks for the wonderful tutorials. I have another requirement in which in have multiple inputs: [ds_1, ds_2] and output as y1 , so ds_train = ([ds_1, ds_2], y1). Also, the augmentation is applied only on ds_1. Where the count of ds_1 & ds_2 is equal. How to pass it in Model.fit ()? Any references or suggestions?

    • @Cyco2k5
      @Cyco2k5 3 ปีที่แล้ว

      Hey, did you ever figure out how to do this? Its is exactly what im trying to do too

  • @_ABDULGHANI
    @_ABDULGHANI 3 ปีที่แล้ว

    thank you for this tutorial, I have a dataset with XML annotation and all the objects inside one folder (person, car, bus, motorcycle) I want to convert this dataset to CSV or any format accepted by PyTorch or Tensorflow do you have any idea how can I convert them?
    I want to use this dataset to train with faster R-CNN algorithms with Resnet.

  • @stefano6551
    @stefano6551 2 ปีที่แล้ว

    hi, if I have a folder with separated images in different folders (train test validation), how can i create a database? thank you

  • @eduardofdut
    @eduardofdut ปีที่แล้ว

    Inside the function read_image, how can you resize the tensor?

  • @sobirjondavlatov7375
    @sobirjondavlatov7375 ปีที่แล้ว

    does it work with COCO annotation format?

  • @universe3406
    @universe3406 4 ปีที่แล้ว

    Wow, Another video. I am working on it right now. I need some help, my dataset has 5 classes. It detects them perfectly. I have used pre-trained model SSD mobile net_V1. Now the model detects other objects too. I tried removing the fine_tune_checkpoint, Yet it detects other objects like a laptop, Painting, Sometimes, humans too. How can I overcome it?

    • @AladdinPersson
      @AladdinPersson  4 ปีที่แล้ว +1

      I'm not really sure sorry, I don't have much experience in object detection, actually researching more about it right now

  • @neemaradhalalneema5418
    @neemaradhalalneema5418 ปีที่แล้ว

    Hi, google colab is showing keras is not defined in keras.sequential

  • @geordi-gabrielrenauddumoul449
    @geordi-gabrielrenauddumoul449 ปีที่แล้ว

    how to create a dataset that you can save and use to train on an other computer ?

  • @starstenaal527
    @starstenaal527 3 ปีที่แล้ว +1

    is validation the same as testing?

    • @rodizadi9591
      @rodizadi9591 3 ปีที่แล้ว

      No, Validation is used to tweak weights as your model is training. Testing data is used to evaluate your model after the training process is complete. You wouldnt want to use validation data for testing because it your model has seen those images before which will play into biases

  • @adamlakatos7987
    @adamlakatos7987 3 ปีที่แล้ว

    Hero

  • @meliskara-n6x
    @meliskara-n6x ปีที่แล้ว

    Are your images grey?

  • @underdog5255
    @underdog5255 2 ปีที่แล้ว

    My model keep predicting same class everytime and it's not even a class from my datas3t

  • @ranjithganesan736
    @ranjithganesan736 ปีที่แล้ว

    How to convert tflite ?

  • @bloodraven9622
    @bloodraven9622 2 ปีที่แล้ว

    Error : logits and labels must have the same first dimension

  • @bellemarravelo6002
    @bellemarravelo6002 3 ปีที่แล้ว

    NameError Traceback (most recent call last)
    in
    12
    13 color_mode='grayscale',
    ---> 14 batch_size=batch_size,
    15 image_size=(img_height, img_width),
    16 shuffle=True,
    NameError: name 'batch_size' is not defined

  • @ambujmittal6824
    @ambujmittal6824 3 ปีที่แล้ว

    @23:46
    In some way? What is that way? 😅

  • @rozanwali8345
    @rozanwali8345 2 ปีที่แล้ว

    Ihjhh

  • @krishnapraneeth5448
    @krishnapraneeth5448 3 ปีที่แล้ว

    I need to contact you