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

Поделиться
HTML-код
  • Опубликовано: 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)

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

  • @brunonogueirarenzo2306
    @brunonogueirarenzo2306 Год назад +1

    Great content, Datum!

  • @sachinkapase9218
    @sachinkapase9218 Год назад +4

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

  • @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

  • @tilakrajchoubey5534
    @tilakrajchoubey5534 10 месяцев назад +2

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

  • @vijayalaxmiise1504
    @vijayalaxmiise1504 9 месяцев назад

    Sir, video has clarified many doubts. Thanks a lot

  • @atamsujiwanto1840
    @atamsujiwanto1840 Год назад +2

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

  • @studshelper9901
    @studshelper9901 2 месяца назад

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

  • @rv0_0
    @rv0_0 Год назад +8

    link to the code please

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

    Is that works with tensorflow ?

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

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

  • @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

  • @AbhiramMirthipati
    @AbhiramMirthipati 4 месяца назад

    How to get the accuracy of the model get printed ?

  • @_maha_
    @_maha_ 2 месяца назад

    how you evaluate the model

  • @nra6925
    @nra6925 5 месяцев назад

    can you make tutorial for retinet model?

  • @luisleal4169
    @luisleal4169 3 месяца назад

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

  • @user-dv2fk4qs4w
    @user-dv2fk4qs4w 4 месяца назад

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

  • @bholuramgurjar900
    @bholuramgurjar900 Год назад +4

    Good job! can you share the code?

  • @nasimaislambithi9510
    @nasimaislambithi9510 5 месяцев назад

    uploads the code link pls

  • @user-yj9jp4bz7v
    @user-yj9jp4bz7v 7 месяцев назад

    hi

  • @geekroy1728
    @geekroy1728 7 месяцев назад +1

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