Skip to content

post-process #27

@icedCoffe001

Description

@icedCoffe001

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
        )

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions