Browse Source
Add transform config
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
2 additions and
1 deletions
-
timm_image.py
|
@ -92,7 +92,8 @@ class TimmImage(NNOperator): |
|
|
input_size=self.config['input_size'], |
|
|
input_size=self.config['input_size'], |
|
|
interpolation=self.config['interpolation'], |
|
|
interpolation=self.config['interpolation'], |
|
|
mean=self.config['mean'], |
|
|
mean=self.config['mean'], |
|
|
std=self.config['std'] |
|
|
|
|
|
|
|
|
std=self.config['std'], |
|
|
|
|
|
crop_pct=self.config['crop_pct'] |
|
|
) |
|
|
) |
|
|
self.skip_tfms = skip_preprocess |
|
|
self.skip_tfms = skip_preprocess |
|
|
else: |
|
|
else: |
|
|