Text2Tex icon indicating copy to clipboard operation
Text2Tex copied to clipboard

post-process

Open icedCoffe001 opened this issue 1 year ago • 0 comments

At the end of the generate_texture.py, there is a post-process operation, i want to know what's the use of it.

`

    #  post-process
    if args.post_process:
        del controlnet
        del ddim_sampler

        inpainting = get_inpainting(DEVICE)
        post_texture = apply_inpainting_postprocess(inpainting, 
            init_texture, 1-exist_texture[None, :, :, None], "", args.uv_size, args.uv_size, DEVICE)

        save_backproject_obj(
            mesh_dir, "{}_post.obj".format(view_idx),
            mesh_scale * mesh.verts_packed() + mesh_center if args.use_unnormalized else mesh.verts_packed(),
            faces.verts_idx, new_verts_uvs, faces.textures_idx, post_texture, 
            DEVICE
        )

`

icedCoffe001 avatar Mar 23 '24 18:03 icedCoffe001