File tree 3 files changed +10
-19
lines changed
3 files changed +10
-19
lines changed Original file line number Diff line number Diff line change 71
71
},
72
72
{
73
73
"cell_type" : " code" ,
74
- "execution_count" : 1 ,
74
+ "execution_count" : null ,
75
75
"metadata" : {},
76
76
"outputs" : [],
77
77
"source" : [
102
102
" from matplotlib.ticker import MaxNLocator, PercentFormatter\n " ,
103
103
" from scipy import stats\n " ,
104
104
" \n " ,
105
- " from anomalib import TaskType\n " ,
106
105
" from anomalib.data import MVTec\n " ,
107
106
" from anomalib.engine import Engine\n " ,
108
107
" from anomalib.metrics import AUPIMO, Evaluator\n " ,
111
110
},
112
111
{
113
112
"cell_type" : " code" ,
114
- "execution_count" : 4 ,
113
+ "execution_count" : null ,
115
114
"metadata" : {},
116
115
"outputs" : [],
117
116
"source" : [
132
131
},
133
132
{
134
133
"cell_type" : " code" ,
135
- "execution_count" : 3 ,
134
+ "execution_count" : null ,
136
135
"metadata" : {},
137
136
"outputs" : [],
138
137
"source" : [
139
- " task = TaskType.SEGMENTATION\n " ,
140
138
" datamodule = MVTec(\n " ,
141
139
" root=dataset_root,\n " ,
142
140
" category=\" leather\" ,\n " ,
143
141
" train_batch_size=32,\n " ,
144
142
" eval_batch_size=32,\n " ,
145
143
" num_workers=8,\n " ,
146
- " task=task,\n " ,
147
144
" )"
148
145
]
149
146
},
279
276
},
280
277
{
281
278
"cell_type" : " code" ,
282
- "execution_count" : 10 ,
279
+ "execution_count" : null ,
283
280
"metadata" : {},
284
281
"outputs" : [],
285
282
"source" : [
Original file line number Diff line number Diff line change 77
77
},
78
78
{
79
79
"cell_type" : " code" ,
80
- "execution_count" : 16 ,
80
+ "execution_count" : null ,
81
81
"metadata" : {},
82
82
"outputs" : [],
83
83
"source" : [
98
98
},
99
99
{
100
100
"cell_type" : " code" ,
101
- "execution_count" : 17 ,
101
+ "execution_count" : null ,
102
102
"metadata" : {},
103
103
"outputs" : [],
104
104
"source" : [
111
111
" from matplotlib.ticker import PercentFormatter\n " ,
112
112
" from scipy import stats\n " ,
113
113
" \n " ,
114
- " from anomalib import TaskType\n " ,
115
114
" from anomalib.data import MVTec\n " ,
116
115
" from anomalib.data.utils import read_image\n " ,
117
116
" from anomalib.engine import Engine\n " ,
121
120
},
122
121
{
123
122
"cell_type" : " code" ,
124
- "execution_count" : 18 ,
123
+ "execution_count" : null ,
125
124
"metadata" : {},
126
125
"outputs" : [],
127
126
"source" : [
130
129
},
131
130
{
132
131
"cell_type" : " code" ,
133
- "execution_count" : 19 ,
132
+ "execution_count" : null ,
134
133
"metadata" : {},
135
134
"outputs" : [],
136
135
"source" : [
160
159
"outputs" : [],
161
160
"source" : [
162
161
" # train the model\n " ,
163
- " task = TaskType.SEGMENTATION\n " ,
164
162
" datamodule = MVTec(\n " ,
165
163
" root=dataset_root,\n " ,
166
164
" category=\" leather\" ,\n " ,
167
165
" train_batch_size=32,\n " ,
168
166
" eval_batch_size=32,\n " ,
169
167
" num_workers=8,\n " ,
170
- " task=task,\n " ,
171
168
" )\n " ,
172
169
" evaluator = Evaluator(test_metrics=AUPIMO())\n " ,
173
170
" model = Padim(\n " ,
379
376
},
380
377
{
381
378
"cell_type" : " code" ,
382
- "execution_count" : 26 ,
379
+ "execution_count" : null ,
383
380
"metadata" : {},
384
381
"outputs" : [],
385
382
"source" : [
752
749
},
753
750
{
754
751
"cell_type" : " code" ,
755
- "execution_count" : 32 ,
752
+ "execution_count" : null ,
756
753
"metadata" : {},
757
754
"outputs" : [],
758
755
"source" : [
Original file line number Diff line number Diff line change 114
114
" from scipy import stats\n " ,
115
115
" from torch import Tensor\n " ,
116
116
" \n " ,
117
- " from anomalib import TaskType\n " ,
118
117
" from anomalib.data import MVTec\n " ,
119
118
" from anomalib.data.utils import read_image\n " ,
120
119
" from anomalib.engine import Engine\n " ,
154
153
"outputs" : [],
155
154
"source" : [
156
155
" # train the model\n " ,
157
- " task = TaskType.SEGMENTATION\n " ,
158
156
" datamodule = MVTec(\n " ,
159
157
" root=dataset_root,\n " ,
160
158
" category=\" leather\" ,\n " ,
161
159
" train_batch_size=32,\n " ,
162
160
" eval_batch_size=32,\n " ,
163
161
" num_workers=8,\n " ,
164
- " task=task,\n " ,
165
162
" )\n " ,
166
163
" evaluator = Evaluator(test_metrics=AUPIMO())\n " ,
167
164
" model = Padim(\n " ,
You can’t perform that action at this time.
0 commit comments