Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging/tranform into package #13

Closed

Conversation

jriddy
Copy link

@jriddy jriddy commented Jul 18, 2018

Someone at my organization wants to be able to use this in a project, but it's not currently set up as a pip-installable python package, nor does it have a container package to refer to it in other code. After this it's easy to install this into a virtualenv with

$ pip install git+http://github.com/richzhang/PerceptualSimilarity.git

And then you could use it in your code as

from perceptualsimilarity.models import dist_models

This changes that in the simplest way possible: by moving it all into a perceptualsimilarity directory and adding a basic setup.py to allow it to be installed. With a bit more metadata in setup.py, you could upload it to PyPI as well.

If you like this, we could also transform the scripts to entry-points that get installed on the command-line PATH when you install from PyPI as well.

@jriddy
Copy link
Author

jriddy commented Jul 18, 2018

We've found some issues with the import statements in the existing code...I'll get to fixing these things soon and update this PR

@richzhang
Copy link
Owner

Thanks a lot for making the package! Was the PR fixed with changes?

@jriddy
Copy link
Author

jriddy commented Sep 4, 2018 via email

@richzhang
Copy link
Owner

Of course I understand that. Thanks so much!

@wilhelmhb wilhelmhb mentioned this pull request Dec 4, 2019
@jriddy jriddy closed this Feb 15, 2020
@jriddy
Copy link
Author

jriddy commented Feb 15, 2020

Hey just saw this, I can give this another go if you're interested, but this PR was so old it was stale.

Are you still interested in making this into a pip-distributable package? So it go on PyPI and such?

@richzhang
Copy link
Owner

Hi, I finally got around to this. pip install lpips :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants