Skip to content

Few-Shot Prompt Data Anomaly Filtering in 'dataset/dataset.py' #14

@cjm-jamie

Description

@cjm-jamie

Hi,  

I'm reviewing 'dataset/dataset.py' for the few-shot setting and have a quick question.  
My understanding is that few-shot prompts should use normal (non-anomalous) images. However, at lines 227 and 240, data_tmp (used for prompts) seems to be assigned directly from meta_train_info[cls_name] without explicitly filtering for item['anomaly'] == 0.  

Shouldn't data_tmp be filtered to ensure only normal images are used, e.g., data_tmp = [item for item in data_tmp if item['anomaly'] == 0]?  

Am I misunderstanding the intended behavior here?  

Thanks for your great work!

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