DDIM反转
设置
# !pip install -q transformers diffusers accelerateimport torch
import requests
import torch.nn as nn
import torch.nn.functional as F
from PIL import Image
from io import BytesIO
from tqdm.auto import tqdm
from matplotlib import pyplot as p…