# Dual License

This software is available under a dual licensing model.

## For Non-Commercial Use

This work is licensed under a modified Creative Commons Attribution-NonCommercial 4.0 International License, with additional requirements:

### Attribution Requirements

1. **Mandatory Credit**: You must give appropriate credit to Eric Hiss as the original author by:
   - Including a link to the original repository (<https://github.com/EricRollei/Eric_qwen_layer>) in any documentation
   - Maintaining the original copyright and license notices in all copies or substantial portions of the software
   - Including attribution comments in your code that clearly state "Based on work by Eric Hiss (<https://github.com/EricRollei/Eric_qwen_layer>)"

2. **Modification Notice**: If you modify the software, you must clearly indicate what changes were made and attribute the original work to Eric Hiss.

3. **No Endorsement**: You may not use the name of the author or contributors to endorse or promote products derived from this software without specific prior written permission.

### Additional Restrictions

- **NonCommercial** — You may not use the material for commercial purposes.
- **No Redistribution Without Attribution** — You may not redistribute this code without the required attribution as specified above.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

### For the full text of the CC BY-NC 4.0 License

Visit <http://creativecommons.org/licenses/by-nc/4.0/> or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

## For Commercial Use

For commercial use of this software, a separate commercial license is required.

Please contact Eric Hiss at <eric@rollei.us> or <eric@historic.camera> for licensing options and terms.

### Commercial License Terms (General Overview)

1. **Definition of Commercial Use**: Any use of the software that is primarily intended for or directed toward commercial advantage or monetary compensation.

2. **License Grant**: Subject to payment of applicable fees and compliance with the terms of the commercial license agreement, licensee will be granted a non-exclusive, non-transferable license to use the software for commercial purposes.

3. **Mandatory Attribution**: All commercial uses must include appropriate attribution to Eric Hiss and a link to the original repository in a manner appropriate to the medium, visible to end users.

4. **Restrictions**: The commercial license does not allow redistribution, modification, or creation of derivative works without explicit permission and additional licensing.

5. **Support**: Commercial licenses may include support options depending on the specific agreement.

6. **Liability**: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For detailed commercial license terms and pricing, please contact the author directly.

## Third-Party Libraries

This project includes or depends on several third-party libraries, each with its own license:

- Diffusers: Apache 2.0 License
- Transformers: Apache 2.0 License
- psd-tools: MIT License
- tifffile: BSD 3-Clause License
- PyTorch (torch): BSD 3-Clause License
- NumPy: BSD 3-Clause License
- PIL/Pillow: HPND License

---

Copyright (c) 2025 Eric Hiss. All rights reserved.
