zqhang / AnomalyCLIP

Official implementation for AnomalyCLIP (ICLR 2024)
192 stars 21 forks source link

Error with SDD.py #10

Closed cinout closed 2 months ago

cinout commented 2 months ago

Dear author,

I encountered an issue with running SDD.py.

No such file or directory: 'data/sdd/electrical commutators/train'

Can you tell me why the SDD dataset has class "electrical commutators"? I can only see classnames such as "kos35", "kos36", etc. in the datasets.

Thank you.

zqhang commented 2 months ago

You need to pre-process SDD dataset according to this script. Then, you can create a folder named "electrical commutator" like MVTec AD.

cinout commented 2 months ago

You need to pre-process SDD dataset according to this script. Then, you can create a folder named "electrical commutator" like MVTec AD.

Thank you for the timely reply. Can I use any other name than "electrical commutator", let's say "fabric", and will that affect the evaluation result?

zqhang commented 2 months ago

It may affect the baselines, but AnomalyCLIP does not necessitate prior text class names. Instead, these are replaced with the term 'object'.