Skip to content

Conversation

Naominour
Copy link

*Issue #, if available: #35, #80, #15

Description of changes:

  • Adds self.transform_std = IMAGENET_STD to MVTecDataset.init
  • Adds self.transform_mean = IMAGENET_MEAN to MVTecDataset.init
  • Uses existing ImageNet constants already defined in the file

Testing

  • Verified attributes are properly set in dataset initialisation
  • Tested backward compatibility - no existing functionality broken
  • Confirmed segmentation image saving now works without errors

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Adds missing transform_std and transform_mean attributes to MVTecDataset class
- Fixes AttributeError when using --save_segmentation_images flag
- Resolves issues amazon-science#15, amazon-science#35, and amazon-science#80
- Uses existing ImageNet normalization constants
- Maintains backward compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants