vue3 routing jumps the page to the top, Stable Diffusion uses ControlNet

When opening a new page, the page automatically returns to the top

Add in router.js page

router.beforeEach((to, from, next) => {
  // 在每次导航之前滚动到页面顶部
  window.scrollTo({
    top: 0,
    behavior: 'smooth' // 可选的,使滚动平滑进行
  });
  next();
});

Controlnet

ControlNet is a neural network model used to control the Stable Diffusion model. Stable Diffusion itself is a diffusion model used to generate images based on text or images. During the image generation process, more conditions can be introduced through ControlNet to intervene in the image generation process. It can (and needs to) be combined with any existing Stable Diffusion model For use with.

Controlnet has many functions. You can upload a picture, identify the line drawing based on the picture, and then redraw it based on the line drawing.

 

 Click to generate

It can be seen that the posture of the character has not changed much, but the face shape and style of the character have changed a lot.

You can also adjust its posture 

adjust to

 

Guess you like

Origin blog.csdn.net/irisMoon06/article/details/134897595