Faster R-CNN on custom dataset Using Pytorch

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 39

  • @lnstagrarm
    @lnstagrarm Місяць тому +2

    Never seen a girl this intelligent. U taught in easy way. I am fan of you. From scratch like a real project. Guys this is how we approach for a real project in company. I was thinking ur videos are not understandable but i was wrong. 1 year back i didn’t have pytorch skills so. But last month i learned pytorch so its very easy for me. Thank you sso much for the video. Also one complement. Never seen a girl this intelligent ❤

    • @CodeWithAarohi
      @CodeWithAarohi  Місяць тому

      Thank you for the kind words! I'm glad you found the video helpful. 😊

  • @aneerimmco
    @aneerimmco Місяць тому +1

    Good tutorial. Thanks for your effort.

  • @pifordtechnologiespvtltd5698
    @pifordtechnologiespvtltd5698 Місяць тому +1

    Keep it up Aarohi 👍👍

  • @soravsingla8782
    @soravsingla8782 Місяць тому

    Fantastic way of explanation👏👏👏

  • @iconic_vide0s
    @iconic_vide0s Місяць тому

    this video was very detail and very helpful!

  • @arnavthakur5409
    @arnavthakur5409 Місяць тому

    Amazing content as alwayz

  • @Sunil-ez1hx
    @Sunil-ez1hx Місяць тому

    Commendable efforts maam

  • @soravsingla6574
    @soravsingla6574 Місяць тому

    Exceptional stuff

  • @azhanisyahputra9867
    @azhanisyahputra9867 Місяць тому

    finally, the pytorch

  • @hamidraza1584
    @hamidraza1584 Місяць тому

    Well done Aarohi! Also shows some examples for sound classification , love from Lahore Pakistan

  • @davidsling
    @davidsling 10 днів тому

    Thanks!

  • @muhamadnursyami
    @muhamadnursyami 3 дні тому

    maam can you make it using google colab, because not everyone can test with their own laptop because they are not able to do it.

  • @khaledsaleh664
    @khaledsaleh664 28 днів тому

    thank you Aarohi, very informative and to the point. Please would you enhance with a video on hyper-parameter tuning using Optuna.

  • @szymon5435
    @szymon5435 Місяць тому

    Very helpful video, however, I have a question. How, if possible, can one calculate the loss for a validation set?

    • @CodeWithAarohi
      @CodeWithAarohi  27 днів тому

      To calculate the loss for a validation set in Faster R-CNN:
      Set the model to evaluation mode using model.eval().
      Use torch.no_grad() to disable gradient computation during validation.
      Pass the validation data through the model and compute the loss:
      model.eval()
      with torch.no_grad():
      for images, targets in val_loader:
      images = images.to(device)
      targets = [{k: v.to(device) for k, v in t.items()} for t in targets]
      loss_dict = model(images, targets)
      total_loss = sum(loss for loss in loss_dict.values())

  • @Legi0n13
    @Legi0n13 Місяць тому

  • @kevinchinnavadu8506
    @kevinchinnavadu8506 Місяць тому

    I want to do object detection on slot games which is a unique dataset.
    Which would be better to use Faster R-CNN vs Yolo.
    I'm interested in accuracy.

    • @CodeWithAarohi
      @CodeWithAarohi  27 днів тому

      Share more about the dataset like image size, how many images you have class wise etc. In general, fasterrcnn will give you more accuracy but it will be slow as compare to YOLO.
      Yolo will give you decent accuracy with speed.

  • @SatrughanKumar-j6n
    @SatrughanKumar-j6n Місяць тому

    Ma;am, is it possible , object detection tracking and frame classification, all in one framework

    • @CodeWithAarohi
      @CodeWithAarohi  Місяць тому +1

      Yes, you can do classification, detection and tracking in all the frames of the video.

  • @manmeetlamba536
    @manmeetlamba536 Місяць тому

    How to train the model and add labels to this kind of dataset programmatically?

    • @CodeWithAarohi
      @CodeWithAarohi  Місяць тому

      You mean autolabelling. To perform autolabelling you need a pretrained model which can detect all these objects. Once objects on your dataset images are getting detected by this pretrained model then you can save there annotations in any format.

    • @karanashu639
      @karanashu639 Місяць тому

      ​@@CodeWithAarohi Can u make a video for saving the annotations from any prediction of model

  • @saurabhkumarsingh334
    @saurabhkumarsingh334 17 днів тому

    Thanks for the video, ma'am. I am facing some issues while implementing Faster RCNN on the PARAMSHAKTI supercomputer., My image dataset is big, so I can't run it locally or on Google Colab. I don't have internet access on PARAMSHAKTI, so I downloaded the weights locally and provided its path in the code, but then also it is asking for internet access. Further, I want to run the code for 100 epochs and want to compute mAP, precision, and recall for all 100 epochs. So, can you please help me in solving the issue?

    • @CodeWithAarohi
      @CodeWithAarohi  16 днів тому

      Thank you for watching the video! 😊 I’ve never used the PARAMSHAKTI supercomputer but you can try this - If you're using a pretrained Faster R-CNN model, you can set pretrained=False and manually load the weights from your local path like this:
      from torchvision.models.detection import fasterrcnn_resnet50_fpn
      model = fasterrcnn_resnet50_fpn(pretrained=False)
      model.load_state_dict(torch.load("path_to_weights.pth"))
      This should bypass the need for internet access during the setup

    • @saurabhkumarsingh334
      @saurabhkumarsingh334 14 днів тому

      @CodeWithAarohi Thank you for your response ma'am

  • @rahulbhole1575
    @rahulbhole1575 Місяць тому

    hi arohi plz tell where i can get VIA Annotator

    • @CodeWithAarohi
      @CodeWithAarohi  Місяць тому

      @@rahulbhole1575 open browser and search vgg annotator. Download zip file

  • @hamidraza1584
    @hamidraza1584 Місяць тому +1

    Well done Aarohi! Also shows some examples for sound classification , love from Lahore Pakistan