You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--Copyright 2024 The HuggingFace Team. All rights reserved.
2
+
3
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4
+
the License. You may obtain a copy of the License at
5
+
6
+
http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9
+
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
+
specific language governing permissions and limitations under the License.
11
+
-->
12
+
13
+
# Inputs
14
+
15
+
Some model inputs are subclasses of [`~utils.BaseInput`], data structures containing all the information needed by the model. The inputs can also be used as tuples or dictionaries.
16
+
17
+
For example:
18
+
19
+
```python
20
+
from diffusers.models.controlnet_union import ControlNetUnionInput
21
+
22
+
union_input = ControlNetUnionInput(
23
+
openpose=...
24
+
)
25
+
```
26
+
27
+
When considering the `inputs` object as a tuple, it considers all the attributes including those that have `None` values.
28
+
29
+
<Tip>
30
+
31
+
To check a specific pipeline or model input, refer to its corresponding API documentation.
0 commit comments