Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
added Inference Discription
  • Loading branch information
hamzakhalil798 authored Jan 2, 2023
1 parent fc220b0 commit 40aa493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ python test_DRAEM.py --gpu_id 0 --base_model_name "DRAEM_seg_large_ae_large_0.00

## Inference
For Inference Dataset loader was modified to load only two images per class and Heatmap of Anomaly would be predicted by the model and displayed using Matplotlib.

The inference script requires the --gpu_id arguments, the name of the checkpoint files (--base_model_name) for trained models, the
location of the MVTec anomaly detection dataset (--data_path) and the folder where the checkpoint files are located (--checkpoint_path)
with pretrained models can be run with:

```
python visualize_DRAEM.py --gpu_id 0 --base_model_name "DRAEM_seg_large_ae_large_0.0001_800_bs8" --data_path ./datasets/mvtec/ --checkpoint_path ./checkpoints/DRAEM_checkpoints/
```

![Screenshot](images/result_1.PNG)

0 comments on commit 40aa493

Please sign in to comment.