Skip to content

content_aware task,own dataset,different image size #36

@cyj95

Description

@cyj95

I wonder what parameters need to change when I have different image size?
my image size is 1024*1024,
content_aware task
in utils.py
I modify "posterlayout": (102, 150) to (1024, 1024)
in visualization section, I only want to save the first image.
from visualization import ContentAwareVisualizer, create_image_grid visualizer = ContentAwareVisualizer() images = visualizer(ranked_response, processed_test_data[test_idx]["idx"]) images[0].save("images0.png","PNG")

but there is something wrong when I check the layout box.
some boxes are drawn out the poster.
how should I fix this?
图片

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions