Giter Site home page Giter Site logo

Comments (7)

osmr avatar osmr commented on May 29, 2024

Check the following:

from pytorchcv.model_provider import get_model as ptcv_get_model
import torch
net = ptcv_get_model("pspnet_resnetd101b_cityscapes", pretrained=True, aux=False)
net.eval()
x = torch.randn(1, 3, 480, 480)
y = net(x)

from imgclsmob.

Swaraj-72 avatar Swaraj-72 commented on May 29, 2024

Thanks for the response. It really helped me. One another thing I would like to know is about other input sizes which can be used.

I would like to use multi-scale processing which needs (3,240,240) and (3,120,120) as inputs to the network. Is it possible to achieve that using the model? Thank you.

from imgclsmob.

osmr avatar osmr commented on May 29, 2024

Technically, yes:

net = ptcv_get_model("pspnet_resnetd101b_cityscapes", pretrained=True, in_size=(120, 120), aux=False)

from imgclsmob.

Swaraj-72 avatar Swaraj-72 commented on May 29, 2024

Thank you for the reply. It helped me a lot with my project.

from imgclsmob.

Swaraj-72 avatar Swaraj-72 commented on May 29, 2024

The pretrained_backbone option provided hasn't seemed to be having a major effect on the predictions. I have tried both booleans and the results did not differ much.
Could you please let me know whether it is to be used any differently to improve the predictions. Thank you.

from imgclsmob.

osmr avatar osmr commented on May 29, 2024

The pretrained_backbone option is for training.

from imgclsmob.

Swaraj-72 avatar Swaraj-72 commented on May 29, 2024

Thank you for the quick response.

from imgclsmob.

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.