Text2Tex
Text2Tex copied to clipboard
post-process
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
)
`