打开新页面时,页面自动回到顶部
在router.js页面添加
TypeScript
router.beforeEach((to, from, next) => {
// 在每次导航之前滚动到页面顶部
window.scrollTo({
top: 0,
behavior: 'smooth' // 可选的,使滚动平滑进行
});
next();
});
Controlnet
ControlNet 是用来控制Stable Diffusion 模型的一种神经网络模型。Stable Diffusion 本身是一种根据文本或者图像用来生成图像的扩散模型,在生成图像过程中,可以通过 ControlNet 引入更多条件来干预图像生成过程,它可以(也需要) 跟现有 任何 Stable Diffusion 模型搭配使用。

Controlnet的功能很多,上传一张图片,然后可以根据该图识别出线稿,接着根据线稿进行重绘。

点击生成

可以看到,人物的姿势没有太大变化,但是人物的脸型和风格都发生了很大变化。
也可以对其姿势进行调整

调整为
