v1.1
Migration from Version 1.0 to 1.1
Version: 1.1
Summary of Changes:
1. Image Dimensions Handling
- New Feature: Automatic extraction of image dimensions (
image_width
,image_height
) from the TIFF file during initialization.- Benefit: This removes the need to manually specify the image dimensions when creating an
InferenceVision
instance.
- Benefit: This removes the need to manually specify the image dimensions when creating an
2. Improved Documentation
- Enhancement: Added detailed docstrings to all class methods, improving clarity and usability.
- Benefit: Users can now better understand each method’s purpose, input parameters, and expected outputs, making the class easier to use and integrate.
Migration Guide from v1.0 to v1.1
To upgrade from InferenceVision v1.0 to v1.1, follow these simple steps:
1. Initialization Changes
- v1.0: When creating an
InferenceVision
instance, you had to provide the image dimensions (image_width
andimage_height
) manually. - v1.1: Image dimensions are automatically extracted from the TIFF file, so you no longer need to pass
image_width
andimage_height
.
Example Migration:
# v1.0 Initialization
inference = InferenceVision(tif_path="path/to/image.tif", model_path="path/to/model.pt", image_width=1024, image_height=768)
# v1.1 Initialization (no need for image dimensions)
inference = InferenceVision(tif_path="path/to/image.tif", model_path="path/to/model.pt")