Faster-RCNN finetuning with PyTorch. Object detection using PyTorch. Custom dataset. Wheat detection

Поділитися
Вставка
  • Опубліковано 20 лют 2023
  • In this video, we are going to see how can we fine tune a pretrained faster-rcnn model using PyTorch. The dataset we will be using is the wheat detection dataset.
    The video has three objectives:
    1. Explain the main portion of the code for fine tuning faster-rcnn.
    2. How does the faster-rcnn finetuning look like and what layers are affected as a result?
    3. See the whole code for fine tuning faster-rcnn.
    We will see how the last layer of the faster-rcnn module is affected due to fine tuning. We also see how the Non Max Suppression (NMS) also works in the context of fine tuning faster-rcnn.
    The main code for faster-rcnn is:
    model = torchvision.models.detection.fasterrcnn_resnet50_fpn(pretrained = True)
    num_classes = 2
    in_features = model.roi_heads.box_predictor.cls_score.in_features
    model.roi_heads.box_predictor = FastRCNNPredictor(in_features, num_classes)

КОМЕНТАРІ • 21

  • @brunonogueirarenzo2306
    @brunonogueirarenzo2306 Рік тому +1

    Great content, Datum!

  • @studshelper9901
    @studshelper9901 3 місяці тому

    now found the diamond from coal field,
    i used to detect text from image
    Thanks a lot😀😀

  • @sachinkapase9218
    @sachinkapase9218 Рік тому +4

    Great explanation. please make the video to calculate mAP for this.

  • @vijayalaxmiise1504
    @vijayalaxmiise1504 10 місяців тому

    Sir, video has clarified many doubts. Thanks a lot

  • @rv0_0
    @rv0_0 Рік тому +8

    link to the code please

  • @karlm9584
    @karlm9584 Рік тому

    I receive an error during setting up the targets for the model training in the for loop - for d in data: ... targ["boxes"] = d[1]["boxes"].to(device) causes an error. On inspection, len(d) returns 1 so the index of d[1] is invalid. How to solve this error please? Any attempts to solve it results in the input data being incompatible with the model

  • @atamsujiwanto1840
    @atamsujiwanto1840 Рік тому +2

    how if we use 3 labels, sir? can you explain the code for 3 labels?

  • @raehanfelda8956
    @raehanfelda8956 Рік тому

    can you make video about how to tuning yolov8 hyperparameter using raytune?

  • @tilakrajchoubey5534
    @tilakrajchoubey5534 11 місяців тому +2

    will it work if my images are of different lengths??

  • @SumanMondal-qz4qd
    @SumanMondal-qz4qd 3 місяці тому +1

    in the last cell where you have drawn the output image you didn't draw the boxes form the output you used the prior bounding boxes which are meant to use for training and validation.... I found this misleading

  • @rihababbessy5707
    @rihababbessy5707 Рік тому

    Is that works with tensorflow ?

  • @AbhiramMirthipati
    @AbhiramMirthipati 4 місяці тому

    How to get the accuracy of the model get printed ?

  • @bholuramgurjar900
    @bholuramgurjar900 Рік тому +4

    Good job! can you share the code?

  • @nra6925
    @nra6925 5 місяців тому

    can you make tutorial for retinet model?

  • @_maha_
    @_maha_ 3 місяці тому

    how you evaluate the model

  • @luisleal4169
    @luisleal4169 3 місяці тому

    great video! chan you share the code and dataset? do you have any github repo?

  • @nasimaislambithi9510
    @nasimaislambithi9510 6 місяців тому

    uploads the code link pls

  • @user-dv2fk4qs4w
    @user-dv2fk4qs4w 4 місяці тому

    How can I contact you? I want to clarify some points

  • @rohithgamer7340
    @rohithgamer7340 11 днів тому

    I mean come on, where are links?

  • @user-yj9jp4bz7v
    @user-yj9jp4bz7v 8 місяців тому

    hi

  • @geekroy1728
    @geekroy1728 8 місяців тому +1

    bro posts only videos, but not github links🤣🤣🤣