Skip to content

Excuse me, may I ask how to name the images in testA to obtain the correct idx? #21

@ZzzTD

Description

@ZzzTD
def __get_boundary(self):
    self.y_anchor_num = 0
    self.x_anchor_num = 0
    for X_image in self.X_images:
        y_idx, x_idx, _, _ = Path(X_image).stem.split("_")[:4]
        y_idx = int(y_idx)
        x_idx = int(x_idx)
        self.y_anchor_num = max(self.y_anchor_num, y_idx)
        self.x_anchor_num = max(self.x_anchor_num, x_idx)

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