Skip to content

Commit 1d55cc4

Browse files
Merge pull request #42 from pythonlessons/develop
Fix issues with all files in setup.py
2 parents b268e03 + ac3b6b9 commit 1d55cc4

File tree

4 files changed

+37
-31
lines changed

4 files changed

+37
-31
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ dist
1212
.idea
1313
.python-version
1414

15-
test
15+
test
16+
build

CHANGELOG.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
1-
## [1.1.7] - 2022-10-30
1+
## [1.1.8] - 2024-01-02
2+
### Changed
3+
- Fixed `setup.py` to include `mltu.torch` and `mltu.tensorflow` packages and other packages that are required for `mltu` to work properly
4+
5+
## [1.1.7] - 2023-10-30
26
### Changed
37
- Fixed bug in `mltu.torch.dataProvider.SequenceHandler`, to handle `len sequence < queue_size` case
48

5-
# [1.1.6] - 2022-10-30
9+
# [1.1.6] - 2023-10-30
610
### Changed
711
- Fixed dependencies with `librosa` library
812

9-
## [1.1.5] - 2022-10-17
13+
## [1.1.5] - 2023-10-17
1014
### Changed
1115
- Fixed dependencies with `librosa` library
1216

13-
## [1.1.4] - 2022-09-29
17+
## [1.1.4] - 2023-09-29
1418
### Changed
1519
- Improoved `mltu.torch.dataProvider.DataProvider` to hangle `multiprocessing` when it doesn't work to switch to `multithreading`
1620

17-
## [1.1.3] - 2022-09-29
21+
## [1.1.3] - 2023-09-29
1822
### Changed
1923
- Removed `Librosa` library dependency in requirements, now it is optional and required only with modules that use librosa
2024

2125
### Added
2226
- Created `Tutorials.05_sound_to_text.train_no_limit.py` that demonstrates how to train audio recognition model with `mltu` without audio length limit
2327

24-
## [1.1.1] - 2022-09-26
28+
## [1.1.1] - 2023-09-26
2529
### Changed
2630
- Included `self._executor` as generator in `mltu.dataProvider.DataProvider` object, to enable functionality to modify batch preprocessing without changing original code
2731
- Introduced changes in `mltu.torch.dataProvider.py` to handle data in multiprocessing and multithreading modes, for faster preprocessing while torch models
@@ -31,7 +35,7 @@
3135
- Created tutorial `10_wav2vec2_torch` (Audio to Text model) that shows how to train wav2vec2 model with mltu
3236

3337

34-
## [1.1.0] - 2022-08-28
38+
## [1.1.0] - 2023-08-28
3539
### Changed
3640
- Changed `mltu.transformers.SpectrogramPadding` object, to pad spectrogram end with zeros instead of start
3741

@@ -44,12 +48,12 @@
4448
- Created `mltu.tensorflow.transformer.utils` module, that contains `MaskedLoss` loss and `MaskedAccuracy` metric, used for training Transformer models
4549

4650

47-
## [1.0.15] - 2022-07-15
51+
## [1.0.15] - 2023-07-15
4852
### Changed
4953
- Fixed bug in `mltu.dataProvider.DataProvider` to work with `batch_postprocessors`.
5054

5155

52-
## [1.0.14] - 2022-07-13
56+
## [1.0.14] - 2023-07-13
5357
### Changed
5458
- Included `augment_annotation` bool option to all `mltu.augmentors` to be able to choose whether to augment annotation or not
5559
- Changed `mltu.augmentors.RandomRotate` to have `@staticmethod` of `rotate_image` to be able to use it without creating object
@@ -58,11 +62,11 @@
5862
- Added `batch_postprocessor` option to `mltu.dataProvider.DataProvider` to be able to postprocess batch after augmentation
5963

6064

61-
## [1.0.13] - 2022-07-13
65+
## [1.0.13] - 2023-07-13
6266
- Removed because of bad build
6367

6468

65-
## [1.0.12] - 2022-06-08
69+
## [1.0.12] - 2023-06-08
6670
### Changed
6771
- Moved `onnx` and `tf2onnx` import inside `mltu.tensorflow.callbacks.Model2onnx` to avoid import errors when not using this callback
6872
- Removed `onnx` and `tf2onnx` install requirements from global requirements
@@ -71,56 +75,56 @@
7175
- Added `RandomMirror` and `RandomFlip` augmentors into `mltu.augmentors`
7276
- Added `u2net` segmentation model into `mltu.tensorflow.models`
7377

74-
## [1.0.11] - 2022-06-07
78+
## [1.0.11] - 2023-06-07
7579
### Changed
7680
- Downgrade `tf2onnx` and `onnx` versions, they don't work with newest TensorFlow version
7781

78-
## [1.0.10] - 2022-06-06
82+
## [1.0.10] - 2023-06-06
7983
### Changed
8084
- Updated `BaseModelConfigs` in `mltu.configs.py` to include instance_attributes
8185
- Some minor changes
8286

83-
## [1.0.9] - 2022-05-24
87+
## [1.0.9] - 2023-05-24
8488
### Changed
8589
- Fixed styling, changed all string from single quotes to double quotes, corrected comments, etc.
8690

8791
### Added
8892
- Added `CVImage` and `PillowImage` objects in `mltu.annotations.image` to handle image annotations
8993

9094

91-
## [1.0.8] - 2022-04-24
95+
## [1.0.8] - 2023-04-24
9296
### Added
9397
- Added `RandomSaltAndPepper` augmentor into `mltu.augmentors`
9498

9599

96-
## [1.0.7] - 2022-04-14
100+
## [1.0.7] - 2023-04-14
97101
### Added
98102
- Added `SelfAttention` layer into `mltu.tensorflow.layers` to use with Conv2D layers (need more testings).
99103

100104

101-
## [1.0.6] - 2022-04-13
105+
## [1.0.6] - 2023-04-13
102106
### Changed
103107
- Fixed bug in `mltu.dataProvider.DataProvider` object to work without `data_preprocessors` when feeding loaded data in memory
104108

105109
### Added
106110
- Added `RandomGaussianBlur` augmentor into `mltu.augmentors`
107111

108112

109-
## [1.0.4] - 2022-03-22
113+
## [1.0.4] - 2023-03-22
110114
### Changed
111115
- Fix `ImageReader` to work either with image path or `np.ndarray`
112116
- Added `metadata` support to `callbacks/tf2onnx` when converting to onnx format
113117

114118

115-
## [1.0.3] - 2022-03-20
119+
## [1.0.3] - 2023-03-20
116120
### Changed
117121
- Changed `mltu.augmentors` to work only with `Image` objects
118122

119123
### Added
120124
- Created `Image` object in `mltu.annotations.image` to handle image annotations
121125

122126

123-
## [1.0.2] - 2022-03-20
127+
## [1.0.2] - 2023-03-20
124128
### Changed
125129
- changes `OnnxInferenceModel` in `mltu.torch.inferenceModels` to load custom metadata from saved ONNX model
126130
- improved `mltu.dataProvider` to remove bad samples from dataset on epoch end
@@ -133,7 +137,7 @@
133137
- created 08 pytorch tutorial, that shows how to use `mltu.torch` to train CTC based models
134138

135139

136-
## [1.0.1] - 2022-03-06
140+
## [1.0.1] - 2023-03-06
137141
### Changed
138142
- In all tutorials removed stow dependency and replaced with os package, to make it easier to use on Windows 11
139143

@@ -146,7 +150,7 @@
146150
- added `07_pytorch_tutorial` tutorial
147151

148152

149-
## [1.0.0] - 2022-03-06
153+
## [1.0.0] - 2023-03-06
150154
### Changed
151155
- detaching TensorFlow from mltu, now mltu is only a collection of utilities for training machine learning models
152156

@@ -155,20 +159,20 @@
155159
- added `mltu.tensorflow` and `mltu.torch` into built package
156160

157161

158-
## [0.1.6] - 2022-02-26
162+
## [0.1.6] - 2023-02-26
159163
### Changed
160164
-
161165
### Added:
162166
- added 05_sound_to_text tutorial
163167
- added `WavReader` to `mltu/preprocessors`, used to read wav files and convert them to numpy arrays
164168

165169

166-
## [0.1.7] - 2022-02-03
170+
## [0.1.7] - 2023-02-03
167171
### Changed
168172
- added `mltu.utils` into built package
169173

170174

171-
## [0.1.5] - 2022-01-10
175+
## [0.1.5] - 2023-01-10
172176
### Changed
173177
- seperated `CWERMetric` to `CER` and `WER` Metrics in `mltu.metrics`, Character/word rate was calculatted in a wrong way
174178
- created @setter for augmentors and transformers in DataProvider, to properlly add augmentors and transformers to the pipeline
@@ -183,12 +187,12 @@
183187
- created unittests for CER and WER in mltu.utils.text_utils and TensorFlow verion of CER and WER mltu.metrics
184188

185189

186-
## [0.1.4] - 2022-12-21
190+
## [0.1.4] - 2023-12-21
187191
### Added:
188192
- added mltu.augmentors (RandomBrightness, RandomRotate, RandomErodeDilate) - used for simple image augmentation;
189193

190194

191-
## [0.1.3] - 2022-12-20
195+
## [0.1.3] - 2023-12-20
192196

193197
Initial release of mltu (Machine Learning Training Utilities)
194198

mltu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.1.7"
1+
__version__ = "1.1.8"
22

33
from .annotations.images import Image
44
from .annotations.images import CVImage

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
2-
from setuptools import setup
2+
from setuptools import setup, find_packages
3+
34

45
DIR = os.path.abspath(os.path.dirname(__file__))
56

@@ -43,7 +44,7 @@ def get_version(initpath: str) -> str:
4344
"gpu": ["onnxruntime-gpu"],
4445
},
4546
python_requires=">=3",
46-
packages=["mltu", "mltu.utils", "mltu.torch", "mltu.tensorflow", "mltu.annotations"],
47+
packages=find_packages(exclude=("*_test.py",)),
4748
include_package_data=True,
4849
project_urls={
4950
"Source": "https://github.com/pythonlessons/mltu/",

0 commit comments

Comments
 (0)