Git Product home page Git Product logo

resize_network_cv's People

Contributors

bilzard avatar kushajveersingh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

resize_network_cv's Issues

What about different H * W

The situation you mentioned are the input image and out image are the same Height and Width.

What about if we want different Height and width?

cannot find /data/imagenette2.ckpt file

path = os.path.join(path, f"{cfg.data.name}.ckpt")
ckpt = torch.load(path)['state_dict']

The .ckpt file is not in the dataset I downloaded.
Where should I look for this file?Thanks!

Suggestion: Handle Input Image of Any Aspect Ratio

The original paper says:

... the proposed architecture allows for resizing an image to any target size and aspect ratio.

So the Resizer should handle input image with any aspect ratio.
In spite of that, the Resizer implementation (interpolation) seems to assume the input image is square (or, only handle uniform-scale resize: e.g. (512, 256) -> (256, 128)).

The current implementation interpolates by specifying scale_factor, though I think it's more useful to specify the output image size and calculate scale factor automatically.

The reference code:

# current implementation
self.interpolate = partial(F.interpolate,
                           scale_factor=self.scale_factor,
                           mode=self.interpolate_mode,
                           align_corners=False,
                           recompute_scale_factor=False)
# suggestion
self.interpolate = partial(F.interpolate,
                           size=output_size,
                           mode=self.interpolate_mode,
                           align_corners=False)

c.f. https://github.com/KushajveerSingh/resize_network_cv/blob/main/src/models/resizer.py#L56-L60

Is the module really useful?

I have run twice,one is follow you config,another is to extand the epoch,but the result is nothing different,
——————————————————
after try your config,the second try config is , ran the resize_net 800 epoch, learn rate step_size is 100,
and the fintune 50 epoch,but the result is the same,
is there any problem?thank you for your reply.
——————————————————
if needed, I will show the config

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.