Time image - License
====================

Copyright (c) 2026 shiguanggougouo

This repository contains both original code written for Time image and
third-party code redistributed under its own upstream licenses. The sections
below must be read together. See NOTICE.md for the third-party attribution
table.

------------------------------------------------------------------------
1. Original Time image code - MIT License
------------------------------------------------------------------------

The MIT License below applies ONLY to the code authored for this project,
namely the files at the repository root (including `__init__.py`) and this
project's own documentation. It EXCLUDES the third-party directories listed
in section 2.

MIT License

Copyright (c) 2026 shiguanggougouo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.

------------------------------------------------------------------------
2. Third-party code - kept under its own licenses
------------------------------------------------------------------------

The following directories are NOT covered by the MIT License above. Each
retains its upstream license. The license texts are included both in this
repository and in the distributed archive:

* custom_controlnet_aux/open_pose/
  Carnegie Mellon University, "OPENPOSE: MULTIPERSON KEYPOINT DETECTION
  SOFTWARE LICENSE AGREEMENT - ACADEMIC OR NON-PROFIT ORGANIZATION
  NONCOMMERCIAL RESEARCH USE ONLY".
  Full text: custom_controlnet_aux/open_pose/LICENSE
  Upstream: https://github.com/CMU-Perceptual-Computing-Lab/openpose

* custom_controlnet_aux/dwpose/
  The bundled license file is the same CMU OpenPose noncommercial research
  license, and the source headers state "This preprocessor is licensed by
  CMU for non-commercial use only".
  Full text: custom_controlnet_aux/dwpose/LICENSE
  Upstream (DWPose / MMPose): https://github.com/IDEA-Research/DWPose

* depth_anything_v2/
  Depth Anything V2 and DINOv2 layers, Apache License 2.0. The upstream
  source headers refer to "the LICENSE file in the root directory of this
  source tree"; the Apache-2.0 text is now included at
  depth_anything_v2/LICENSE.
  Upstream: https://github.com/DepthAnything/Depth-Anything-V2
            https://github.com/facebookresearch/dinov2

------------------------------------------------------------------------
3. Non-commercial restriction on the bundled package
------------------------------------------------------------------------

The CMU OpenPose license permits use only for noncommercial research
purposes and grants no right to sublicense. Therefore, although the
original Time image code is MIT-licensed, the package as distributed here
(which bundles the CMU-licensed code) may be used only for noncommercial
research purposes.

Commercial use of the bundled package is NOT permitted unless the
CMU-licensed components are removed or replaced, or written permission is
obtained from Carnegie Mellon University. The MIT grant in section 1 does
not override, replace or sublicense any third-party license.

Model weights are not distributed with this project. The weights referenced
in README.md are downloaded separately by the user and are subject to their
own upstream license terms.

The CMU license also places conditions on redistribution. If this package is
to be published to a public registry, mirrored, or shipped with a commercial
product, review the upstream terms directly or replace the CMU-licensed
components with an implementation under a commercial-friendly license.
