chaiNNer-org / spandrel

Spandrel gives your project support for various PyTorch architectures meant for AI Super-Resolution, restoration, and inpainting. Based on the model support implemented in chaiNNer.
MIT License
139 stars 12 forks source link

Add FOSS build step #151

Closed joeyballentine closed 7 months ago

joeyballentine commented 7 months ago

After talking with comfyanonymous, it is clear we need a separate version of Spandrel that only contains model archs with FOSS-compliant (aka support commercial software) licenses.

This is a bit of a dirty way of doing it, but I figured a temporary solution would be good for now until we figure out a better way.

Basically, I just wrote a script to delete the arch files and modify the arch registry to remove support for the few model archs that are not FOSS-compliant.

The script also modifies the README to note this, as well as changes the package name.

I have already published a wheel made using this script, which can be found here

Once everything is confirmed to be good, I will update my comfyui PR with this version of the package.