Skip to content

[Question] Can we have 2 datasets in the TaskSampler (different for Query and Support dataset)? #148

Open
@talhaashraf7213

Description

@talhaashraf7213

Problem
I am trying to implement something like this

test_sampler2 = CustomTaskSampler(
    support_dataset=support_dataset,
    query_dataset=query_dataset,
    n_way=N_WAY,
    n_shot=N_SHOT,
    n_query=N_QUERY,
    n_tasks=N_EVALUATION_TASKS,
)

where I can use my custom images dataset as the query dataset and CFAR100 as my support dataset.

I wanted to know from your experience if it's possible and secondly is it a good approach to improve accuracy of the model?

Considered solutions
I have tried to create a custom Class CustomTaskSampler and implement the __iter__ and episodic_collate_fn but maybe I am struggling with the implementation so I wanted to validate the approach.

would highly appreciate your input.

Thank you

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