Skip to content

split ImageList to generate train and test sets  #831

@LIEeOoNn

Description

@LIEeOoNn

Is your feature request related to a problem?

we wanted to generate a test set but couldn't do it so quickly and also for some reason when we created our own image but its had some confusion issues till it worked

Desired solution

it should have a spit function like

def split_imageList(self, split_ratio: float)-> tuple[train: ImageList, test: ImageList]:
# it should convert the ImageList into List[Image] with ImageList.to_images() 
# and then shuffle and split the list and use ImageList.from_images(image_list) 
# to convert them both back into an ImageList and return the tuple```

### Possible alternatives (optional)

_No response_

### Screenshots (optional)

_No response_

### Additional Context (optional)

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    releasedIncluded in a release

    Type

    No type

    Projects

    Status

    ✔️ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions