GithubHelp home page GithubHelp logo

bo-zhang-cs / cacnet-pytorch Goto Github PK

View Code? Open in Web Editor NEW
52.0 1.0 15.0 24 KB

Unofficial PyTorch implementation of "Composing Photos Like a Photographer"

License: MIT License

Python 100.00%
image-cropping image-composition-assessment composition-classification image-aesthetic computational-aesthetics

cacnet-pytorch's People

Contributors

bo-zhang-cs 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

Watchers

 avatar

cacnet-pytorch's Issues

How is trained classification model used in cropping model?

Thanks for providing the implementation. I have a query, in the steps you first mention 'python train_composition_classification.py' which saves the checkpoint in 'best_acc.pth'. Next, we run 'python train_image_cropping.py' which again saves different checkpoint. I can see these steps should be performed sequentially. So how is the checkpoint saved in best_acc.pth is used in the next module for image cropping? The script does not call for the previous weights to be loaded anywhere. Please help to clarify this. Thanks.

Question about keep_aspect_ratio

Hi, thanks for your sharing awesome codes.

Dose your reproduced CACNet only normally run with the setting of keep_aspect_ratio=False? I have tried to run with the setting of keep_aspect_ratio=True and crop_batch_size=1, however there encountered the following error, I want to know what cause it. Could you please share your perspectives about keep_aspect_ratio=True? :-)

File "/root/CACNet/CACNet.py", line 194, in forward
    regression[...,0::2] = offsets[..., 0::2] + self.all_anchors[...,0:1]
RuntimeError: The size of tensor a (44) must match the size of tensor b (28) at non-singleton dimension 2

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.