Skip to content

Commit b15f107

Browse files
committed
Fix style
1 parent 6613817 commit b15f107

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/convert_original_t2i_adapter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
"""
16-
Conversion script for the T2I-Adapter checkpoints.
15+
"""
16+
Conversion script for the T2I-Adapter checkpoints.
1717
Only models using the `Adapter-Light` architecture need this conversion,
1818
the more common used `Adapter` architecture checkpoint can be use by diffuers `T2IAdapter` without conversion.
1919
"""
2020

21-
import re
2221
import argparse
22+
import re
2323

2424
import torch
2525

@@ -64,8 +64,8 @@ def convert_adapter_light(old_state_dict):
6464
parser.add_argument(
6565
"--output_path", default=None, type=str, required=True, help="Path to the store the result checkpoint."
6666
)
67-
67+
6868
args = parser.parse_args()
6969
src_state = torch.load(args.checkpoint_path)
7070
res_state = convert_adapter_light(src_state)
71-
torch.save(res_state, args.output_path)
71+
torch.save(res_state, args.output_path)

0 commit comments

Comments
 (0)