Code Monkey home page Code Monkey logo

Comments (7)

NicolasHug avatar NicolasHug commented on September 26, 2024

Hi @ranjaniocl ,

try to print the input that gets passed to RandomIoUCrop(). There should be bounging boxes and PILimages/tensors in there. If not, it's likely that the pipeline is incorrect.

from vision.

ranjaniocl avatar ranjaniocl commented on September 26, 2024

Hi @NicolasHug,

Thank for looking into my issue. I do not know how to print input that get passed to RandomIoUCrop(). Can you please guide me with sample script/steps?
Also, we do you mean when you say 'pipeline'. Is it the dataloader?

I tried to print a sample dataset in the notebook and it has tensors for image and bounding boxes.

from vision.

NicolasHug avatar NicolasHug commented on September 26, 2024

@ranjaniocl sorry it looks like your issue might be more in scope for https://discuss.pytorch.org/

from vision.

ranjaniocl avatar ranjaniocl commented on September 26, 2024

@NicolasHug Ok. sure. I will try my luck there.
As I am using standard dataset and Pytorch provided standard code, I thought someone here can look into it and provide some resolution.

from vision.

ranjaniocl avatar ranjaniocl commented on September 26, 2024

@NicolasHug Just for reference, there was one similar issue reported in past.
#2720

from vision.

ranjaniocl avatar ranjaniocl commented on September 26, 2024

@NicolasHug I just logged it at PyTorch forum. While I was creating, similar issues from past popped up (please see links below). I do not see any response so I do not have much hope.

https://discuss.pytorch.org/t/training-faster-r-cnn-model-with-coco-dataset-has-been-consistently-unsuccessful/178023
https://discuss.pytorch.org/t/evaluate-pre-trained-faster-r-cnn-on-coco-dataset/157770

from vision.

WortJohn avatar WortJohn commented on September 26, 2024

Help on class CocoDetection in module torchvision.datasets.coco:

class CocoDetection(torchvision.datasets.vision.VisionDataset)
| CocoDetection(root: Union[str, pathlib.Path], annFile: str, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, transforms: Optional[Callable] = None) -> None

Note: the class has transform, target_transform and transforms arguments, passing value to transforms (not transform) can solve the issue for me.

from vision.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.