Add PyPI install
See original GitHub issueFirst off, great project, thank you for building this!
Have you considered building a package for PyPI? The models are available on the Hugging Face Hub and the Hugging Face Hub package can be used to programmatically download/cache the models.
Another idea is that encoder.pt and decoder.pt could also be uploaded to a new model on the Hub so they don’t need to be dynamically converted at runtime for the Torch model.
One last thing to consider is changing prints to log statements, so they could be turned off if desired.
General idea is someone can run pip install
then be up and running regardless of the runtime platform (Windows/Linux/macOS).
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Installing Packages - Python Packaging User Guide - Python.org
This section covers the basics of how to install Python packages. ... in your shell after installation, you'll need to add the directory...
Read more >How to install pip to manage PyPI packages easily
Installing Python pip on your system allows you to manage PyPI packages easily. Many of these packages can be installed just by typing...
Read more >pypi-install
PyPi -Install enables you to upload Python code on pypi using just a single function call. After running this, you can install your...
Read more >How to Upload Your Python Package to PyPI and pip
Step 1: Ensure you have pip installed · Step 3: Package your Python code · Step 3: Create the source distribution of the...
Read more >pip install - pip documentation v22.3.1
Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%Python on Windows. (See the Python documentation for site.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I added the package to PyPI and now the entire setup process is
pip install min-dalle
. The model parameters are downloaded as needed with just therequests
library. Thanks for the suggestions. I should probably also add a flag forverbose
to prevent the print statementsWow that’s really cool