mala-lab / InCTRL

Official implementation of CVPR'24 paper 'Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Prompts'.
Apache License 2.0
83 stars 12 forks source link

After I use the convert_visa.py to convert Visa, I found that I can't generate the json file through the gen_train_json.py, could you have a check at the convert_visa.py? thanks a lot #2

Closed cryingdxy closed 3 months ago

Diana1026 commented 3 months ago

Hi, I've updated the convert_visa.py and you can follow the README file in preprocess to generate the json files.

cryingdxy commented 3 months ago

Hi, I've updated the convert_visa.py and you can follow the README file in preprocess to generate the json files.

I found the README file noted that the dataset should be converted to MVTec_AD format, but this updated convert_visa.py still seems incorrect. image image

Diana1026 commented 3 months ago

Hello, your organization of files seems no problem. The train and test files are inside the sub-categories (e.g. candle). 1

cryingdxy commented 3 months ago

Hello, your organization of files seems no problem. The train and test files are inside the sub-categories (e.g. candle). 1

I'm so sorry that I misunderstood your purpose. It is now running normally. Thank you very much!!!