INNER CODE UNIT · Python

edit_background

wenhaochai/StableVideo · app.py:130

    def edit_background(self, *args, **kwargs):
        self.depth_model = self.depth_model.cuda()
            
        input_image = self.b_atlas_origin
        self.depth_edit(input_image, *args, **kwargs)
        
        if self.save_memory:
            self.depth_model = self.depth_model.cpu()
        return self.b_atlas
    
    @torch.no_grad()
    def advanced_edit_foreground(self, 
                                keyframes="0", 
                                res=2000,
                                prompt="", 
                                a_prompt="best quality, extremely detailed", 
                                n_prompt="longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",  
                                image_resolution=512, 

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…