kaylode / vehicle-counting

Vehicle counting using Pytorch
MIT License
95 stars 32 forks source link

Suggest to loosen the dependency on albumentations #23

Open Agnes-U opened 1 year ago

Agnes-U commented 1 year ago

Hi, your project vehicle-counting(commit id: 5007a543d6ce13f10fc7a74d7499f34171e6b568) requires "albumentations==0.5.2" in its dependency. After analyzing the source code, we found that the following versions of albumentations can also be suitable, i.e., albumentations 0.5.0, 0.5.1, since all functions that you directly (6 APIs: albumentations.augmentations.transforms.Resize.init, albumentations.core.composition.Compose.init, albumentations.augmentations.transforms.PadIfNeeded.init, albumentations.core.composition.BboxParams.init, albumentations.augmentations.transforms.Normalize.init, albumentations.augmentations.transforms.LongestMaxSize.init) or indirectly (propagate to 10 albumentations's internal APIs and 0 outsider APIs) used from the package have not been changed in these versions, thus not affecting your usage.

Therefore, we believe that it is quite safe to loose your dependency on albumentations from "albumentations==0.5.2" to "albumentations>=0.5.0,<=0.5.2". This will improve the applicability of vehicle-counting and reduce the possibility of any further dependency conflict with other projects.

May I pull a request to further loosen the dependency on albumentations?

By the way, could you please tell us whether such an automatic tool for dependency analysis may be potentially helpful for maintaining dependencies easier during your development?