Skip to content

How to convert one incoming example into a valid Avalanche-Mini-Dataset #542

Discussion options

You must be logged in to vote

Hello,
I think you can do it with something like this (I don't know if it' the best way though):

scenario = filelist_scenario(
    root="",
    train_file_lists=["/path/to/img1.txt",
                      "/path/to/img2.txt",
                      "/path/to/img3.txt",],

    test_file_lists=["/path/to/batch1.txt",
                     "/path/to/batch2.txt",
                     "/path/to/batch3.txt",],

    task_labels=list(range(0, 3)),
    complete_test_set_only=False,
    train_transform=train_transform,
    eval_transform=test_transform,
)

"/path/to/img1.txt" is a file containing the path of one image.
"/path/to/batch1.txt" is a file containing paths of many images used for evaluatio…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@TheRisenPhoenix
Comment options

@vlomonaco
Comment options

@TheRisenPhoenix
Comment options

@vlomonaco
Comment options

@TheRisenPhoenix
Comment options

Answer selected by TheRisenPhoenix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants