Giter VIP home page Giter VIP logo

Comments (5)

cogaplex-bts avatar cogaplex-bts commented on August 20, 2024 1

Due to the strided convolutions and the simple upconv layers in our network, the height and width of the input should be multiples of 32.

from bts.

kHarshit avatar kHarshit commented on August 20, 2024

Thanks, I'll try training by making image size to be multiple of 32.

from bts.

kHarshit avatar kHarshit commented on August 20, 2024

Hi @cogaplex-bts,

It works really well on higher resolution images. I also want to know how do I apply Transfer learning in order to train bts on my custom dataset.

I tried training by using the pretrained encoder using NYU pretrained weights, instead of using ImageNet pretrained weights (and training the decoder from scratch). I did the following changes:

In bts.py, to load pretrained NYU V2 weights of densenet121 encoder (here BtsModelOriginal is the original bts model required to load weights):

https://github.com/cogaplex-bts/bts/blob/e63ccc00a1d44cc417c745714e3cabe58559f054/pytorch/bts.py#L273-#L276

     if True:
             model = BtsModelOriginal(params)
             model = torch.nn.DataParallel(model)
             checkpoint = torch.load('/kharshit/DepthEstimation/bts/models/bts_nyu_v2_pytorch_densenet121/model')
             model.load_state_dict(checkpoint['model'])
             self.base_model = model.module.encoder.base_model
             self.feat_names = ['relu0', 'pool0', 'transition1', 'transition2', 'norm5']

And, everything the same. Should I do some other modifications as well (in the decoder)?

from bts.

oljike avatar oljike commented on August 20, 2024

@kHarshit hi! What dataset are you using?

from bts.

kHarshit avatar kHarshit commented on August 20, 2024

@oljike It's a custom dataset prepared manually.

from bts.

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.