Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifact in rendering video #111

Open
ItsThanhTung opened this issue Aug 6, 2024 · 0 comments
Open

Artifact in rendering video #111

ItsThanhTung opened this issue Aug 6, 2024 · 0 comments

Comments

@ItsThanhTung
Copy link

I use run.py to generate novel views. However, the results look a bit weird with artifacts in the images. I tried with other samples from the GSO dataset and even with the hamburger and chair images in this repo, but the issue persists.

Do you have any hypotheses about this behavior?

image

image

We only modify image processing to use the alpha channels in RGBA image.

for i, image_path in enumerate(args.image):
    if args.no_remove_bg:
        image = np.array(Image.open(image_path))
        image = image / 255.0
        image = image[:, :, :3] * image[:, :, 3:4] + (1 - image[:, :, 3:4]) * 1.0
        image = Image.fromarray((image * 255.0).astype(np.uint8))

        if not os.path.exists(os.path.join(output_dir, str(i))):
            os.makedirs(os.path.join(output_dir, str(i)))

        image.save(os.path.join(output_dir, str(i), f"input.png"))

    images.append(image)

timer.end("Processing images")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant