davidmasip commited on
Commit
625a888
1 Parent(s): fdb0470

add pipeline

Browse files
Files changed (4) hide show
  1. config.json +14 -0
  2. pipeline.py +43 -0
  3. poetry.lock +794 -0
  4. pyproject.toml +15 -2
config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels": [
3
+ "clear",
4
+ "cloudy",
5
+ "cultivation",
6
+ "habitation",
7
+ "haze",
8
+ "partly_cloudy",
9
+ "primary",
10
+ "road",
11
+ "slash_burn",
12
+ "water"
13
+ ]
14
+ }
pipeline.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import os
3
+ from typing import Any, Dict, List
4
+
5
+ import numpy as np
6
+ from fastai.learner import load_learner
7
+ from PIL import Image
8
+
9
+
10
+ def label(file_name):
11
+ return train_labels[file_name.replace(".jpg", "")]
12
+
13
+ class ImageClassificationPipeline:
14
+
15
+ def __init__(self, path=""):
16
+ # IMPLEMENT_THIS
17
+ # Preload all the elements you are going to need at inference.
18
+ # For instance your model, processors, tokenizer that might be needed.
19
+ # This function is only called once, so do all the heavy processing I/O here"""
20
+ self.model = load_learner(os.path.join(path, "model.pkl"))
21
+ with open(os.path.join(path, "config.json")) as config:
22
+ config = json.load(config)
23
+ self.labels = config["labels"]
24
+
25
+ def __call__(self, inputs: "Image.Image") -> List[Dict[str, Any]]:
26
+ print('call')
27
+ """
28
+ Args:
29
+ inputs (:obj:`PIL.Image`):
30
+ The raw image representation as PIL.
31
+ No transformation made whatsoever from the input. Make all necessary transformations here.
32
+ Return:
33
+ A :obj:`list`:. The list contains items that are dicts should be liked {"label": "XXX", "score": 0.82}
34
+ It is preferred if the returned list is in decreasing `score` order
35
+ """
36
+ # IMPLEMENT_THIS
37
+ # FastAI expects a np array, not a PIL Image.
38
+ _, _, preds = self.model.predict(np.array(inputs))
39
+ preds = preds.tolist()
40
+ return [{
41
+ "label": label,
42
+ "score": preds[idx]
43
+ } for idx, label in enumerate(self.labels)]
poetry.lock ADDED
@@ -0,0 +1,794 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [[package]]
2
+ name = "blis"
3
+ version = "0.7.9"
4
+ description = "The Blis BLAS-like linear algebra library, as a self-contained C-extension."
5
+ category = "main"
6
+ optional = false
7
+ python-versions = "*"
8
+
9
+ [package.dependencies]
10
+ numpy = ">=1.15.0"
11
+
12
+ [[package]]
13
+ name = "catalogue"
14
+ version = "2.0.8"
15
+ description = "Super lightweight function registries for your library"
16
+ category = "main"
17
+ optional = false
18
+ python-versions = ">=3.6"
19
+
20
+ [[package]]
21
+ name = "certifi"
22
+ version = "2022.9.24"
23
+ description = "Python package for providing Mozilla's CA Bundle."
24
+ category = "main"
25
+ optional = false
26
+ python-versions = ">=3.6"
27
+
28
+ [[package]]
29
+ name = "charset-normalizer"
30
+ version = "2.1.1"
31
+ description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
32
+ category = "main"
33
+ optional = false
34
+ python-versions = ">=3.6.0"
35
+
36
+ [package.extras]
37
+ unicode_backport = ["unicodedata2"]
38
+
39
+ [[package]]
40
+ name = "click"
41
+ version = "8.1.3"
42
+ description = "Composable command line interface toolkit"
43
+ category = "main"
44
+ optional = false
45
+ python-versions = ">=3.7"
46
+
47
+ [package.dependencies]
48
+ colorama = {version = "*", markers = "platform_system == \"Windows\""}
49
+
50
+ [[package]]
51
+ name = "colorama"
52
+ version = "0.4.6"
53
+ description = "Cross-platform colored terminal text."
54
+ category = "main"
55
+ optional = false
56
+ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
57
+
58
+ [[package]]
59
+ name = "confection"
60
+ version = "0.0.3"
61
+ description = "The sweetest config system for Python"
62
+ category = "main"
63
+ optional = false
64
+ python-versions = ">=3.6"
65
+
66
+ [package.dependencies]
67
+ pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<1.11.0"
68
+ srsly = ">=2.4.0,<3.0.0"
69
+
70
+ [[package]]
71
+ name = "contourpy"
72
+ version = "1.0.6"
73
+ description = "Python library for calculating contours of 2D quadrilateral grids"
74
+ category = "main"
75
+ optional = false
76
+ python-versions = ">=3.7"
77
+
78
+ [package.dependencies]
79
+ numpy = ">=1.16"
80
+
81
+ [package.extras]
82
+ bokeh = ["bokeh", "selenium"]
83
+ docs = ["docutils (<0.18)", "sphinx (<=5.2.0)", "sphinx-rtd-theme"]
84
+ test = ["pytest", "matplotlib", "pillow", "flake8", "isort"]
85
+ test-minimal = ["pytest"]
86
+ test-no-codebase = ["pytest", "matplotlib", "pillow"]
87
+
88
+ [[package]]
89
+ name = "cycler"
90
+ version = "0.11.0"
91
+ description = "Composable style cycles"
92
+ category = "main"
93
+ optional = false
94
+ python-versions = ">=3.6"
95
+
96
+ [[package]]
97
+ name = "cymem"
98
+ version = "2.0.7"
99
+ description = "Manage calls to calloc/free through Cython"
100
+ category = "main"
101
+ optional = false
102
+ python-versions = "*"
103
+
104
+ [[package]]
105
+ name = "fastai"
106
+ version = "2.7.9"
107
+ description = "fastai simplifies training fast and accurate neural nets using modern best practices"
108
+ category = "main"
109
+ optional = false
110
+ python-versions = ">=3.7"
111
+
112
+ [package.dependencies]
113
+ fastcore = ">=1.4.5,<1.6"
114
+ fastdownload = ">=0.0.5,<2"
115
+ fastprogress = ">=0.2.4"
116
+ matplotlib = "*"
117
+ packaging = "*"
118
+ pandas = "*"
119
+ pillow = ">6.0.0"
120
+ pyyaml = "*"
121
+ requests = "*"
122
+ scikit-learn = "*"
123
+ scipy = "*"
124
+ spacy = "<4"
125
+ torch = ">=1.7,<1.14"
126
+ torchvision = ">=0.8.2"
127
+
128
+ [package.extras]
129
+ dev = ["ipywidgets", "pytorch-lightning", "pytorch-ignite", "transformers", "sentencepiece", "tensorboard", "pydicom", "catalyst", "flask-compress", "captum (>=0.3)", "flask", "wandb", "kornia", "scikit-image", "neptune-client", "comet-ml", "albumentations", "opencv-python", "pyarrow", "ninja", "timm (>=0.6.2.dev)", "accelerate (>=0.10.0)"]
130
+
131
+ [[package]]
132
+ name = "fastcore"
133
+ version = "1.5.27"
134
+ description = "Python supercharged for fastai development"
135
+ category = "main"
136
+ optional = false
137
+ python-versions = ">=3.7"
138
+
139
+ [package.dependencies]
140
+ packaging = "*"
141
+
142
+ [package.extras]
143
+ dev = ["numpy", "nbdev (>=0.2.39)", "matplotlib", "pillow", "torch", "pandas", "jupyterlab"]
144
+
145
+ [[package]]
146
+ name = "fastdownload"
147
+ version = "0.0.7"
148
+ description = "A general purpose data downloading library."
149
+ category = "main"
150
+ optional = false
151
+ python-versions = ">=3.6"
152
+
153
+ [package.dependencies]
154
+ fastcore = ">=1.3.26"
155
+ fastprogress = "*"
156
+
157
+ [[package]]
158
+ name = "fastprogress"
159
+ version = "1.0.3"
160
+ description = "A nested progress with plotting options for fastai"
161
+ category = "main"
162
+ optional = false
163
+ python-versions = ">=3.6"
164
+
165
+ [[package]]
166
+ name = "fonttools"
167
+ version = "4.38.0"
168
+ description = "Tools to manipulate font files"
169
+ category = "main"
170
+ optional = false
171
+ python-versions = ">=3.7"
172
+
173
+ [package.extras]
174
+ all = ["fs (>=2.2.0,<3)", "lxml (>=4.0,<5)", "zopfli (>=0.1.4)", "lz4 (>=1.7.4.2)", "matplotlib", "sympy", "skia-pathops (>=0.5.0)", "uharfbuzz (>=0.23.0)", "brotlicffi (>=0.8.0)", "scipy", "brotli (>=1.0.1)", "munkres", "unicodedata2 (>=14.0.0)", "xattr"]
175
+ graphite = ["lz4 (>=1.7.4.2)"]
176
+ interpolatable = ["scipy", "munkres"]
177
+ lxml = ["lxml (>=4.0,<5)"]
178
+ pathops = ["skia-pathops (>=0.5.0)"]
179
+ plot = ["matplotlib"]
180
+ repacker = ["uharfbuzz (>=0.23.0)"]
181
+ symfont = ["sympy"]
182
+ type1 = ["xattr"]
183
+ ufo = ["fs (>=2.2.0,<3)"]
184
+ unicode = ["unicodedata2 (>=14.0.0)"]
185
+ woff = ["zopfli (>=0.1.4)", "brotlicffi (>=0.8.0)", "brotli (>=1.0.1)"]
186
+
187
+ [[package]]
188
+ name = "idna"
189
+ version = "3.4"
190
+ description = "Internationalized Domain Names in Applications (IDNA)"
191
+ category = "main"
192
+ optional = false
193
+ python-versions = ">=3.5"
194
+
195
+ [[package]]
196
+ name = "jinja2"
197
+ version = "3.1.2"
198
+ description = "A very fast and expressive template engine."
199
+ category = "main"
200
+ optional = false
201
+ python-versions = ">=3.7"
202
+
203
+ [package.dependencies]
204
+ MarkupSafe = ">=2.0"
205
+
206
+ [package.extras]
207
+ i18n = ["Babel (>=2.7)"]
208
+
209
+ [[package]]
210
+ name = "joblib"
211
+ version = "1.2.0"
212
+ description = "Lightweight pipelining with Python functions"
213
+ category = "main"
214
+ optional = false
215
+ python-versions = ">=3.7"
216
+
217
+ [[package]]
218
+ name = "kiwisolver"
219
+ version = "1.4.4"
220
+ description = "A fast implementation of the Cassowary constraint solver"
221
+ category = "main"
222
+ optional = false
223
+ python-versions = ">=3.7"
224
+
225
+ [[package]]
226
+ name = "langcodes"
227
+ version = "3.3.0"
228
+ description = "Tools for labeling human languages with IETF language tags"
229
+ category = "main"
230
+ optional = false
231
+ python-versions = ">=3.6"
232
+
233
+ [package.extras]
234
+ data = ["language-data (>=1.1,<2.0)"]
235
+
236
+ [[package]]
237
+ name = "markupsafe"
238
+ version = "2.1.1"
239
+ description = "Safely add untrusted strings to HTML/XML markup."
240
+ category = "main"
241
+ optional = false
242
+ python-versions = ">=3.7"
243
+
244
+ [[package]]
245
+ name = "matplotlib"
246
+ version = "3.6.1"
247
+ description = "Python plotting package"
248
+ category = "main"
249
+ optional = false
250
+ python-versions = ">=3.8"
251
+
252
+ [package.dependencies]
253
+ contourpy = ">=1.0.1"
254
+ cycler = ">=0.10"
255
+ fonttools = ">=4.22.0"
256
+ kiwisolver = ">=1.0.1"
257
+ numpy = ">=1.19"
258
+ packaging = ">=20.0"
259
+ pillow = ">=6.2.0"
260
+ pyparsing = ">=2.2.1"
261
+ python-dateutil = ">=2.7"
262
+ setuptools_scm = ">=7"
263
+
264
+ [[package]]
265
+ name = "murmurhash"
266
+ version = "1.0.9"
267
+ description = "Cython bindings for MurmurHash"
268
+ category = "main"
269
+ optional = false
270
+ python-versions = ">=3.6"
271
+
272
+ [[package]]
273
+ name = "numpy"
274
+ version = "1.23.4"
275
+ description = "NumPy is the fundamental package for array computing with Python."
276
+ category = "main"
277
+ optional = false
278
+ python-versions = ">=3.8"
279
+
280
+ [[package]]
281
+ name = "packaging"
282
+ version = "21.3"
283
+ description = "Core utilities for Python packages"
284
+ category = "main"
285
+ optional = false
286
+ python-versions = ">=3.6"
287
+
288
+ [package.dependencies]
289
+ pyparsing = ">=2.0.2,<3.0.5 || >3.0.5"
290
+
291
+ [[package]]
292
+ name = "pandas"
293
+ version = "1.5.1"
294
+ description = "Powerful data structures for data analysis, time series, and statistics"
295
+ category = "main"
296
+ optional = false
297
+ python-versions = ">=3.8"
298
+
299
+ [package.dependencies]
300
+ numpy = {version = ">=1.20.3", markers = "python_version < \"3.10\""}
301
+ python-dateutil = ">=2.8.1"
302
+ pytz = ">=2020.1"
303
+
304
+ [package.extras]
305
+ test = ["hypothesis (>=5.5.3)", "pytest (>=6.0)", "pytest-xdist (>=1.31)"]
306
+
307
+ [[package]]
308
+ name = "pathy"
309
+ version = "0.6.2"
310
+ description = "pathlib.Path subclasses for local and cloud bucket storage"
311
+ category = "main"
312
+ optional = false
313
+ python-versions = ">= 3.6"
314
+
315
+ [package.dependencies]
316
+ smart-open = ">=5.2.1,<6.0.0"
317
+ typer = ">=0.3.0,<1.0.0"
318
+
319
+ [package.extras]
320
+ all = ["google-cloud-storage (>=1.26.0,<2.0.0)", "boto3", "pytest", "pytest-coverage", "mock", "typer-cli"]
321
+ gcs = ["google-cloud-storage (>=1.26.0,<2.0.0)"]
322
+ s3 = ["boto3"]
323
+ test = ["pytest", "pytest-coverage", "mock", "typer-cli"]
324
+
325
+ [[package]]
326
+ name = "pillow"
327
+ version = "9.3.0"
328
+ description = "Python Imaging Library (Fork)"
329
+ category = "main"
330
+ optional = false
331
+ python-versions = ">=3.7"
332
+
333
+ [package.extras]
334
+ docs = ["furo", "olefile", "sphinx (>=2.4)", "sphinx-copybutton", "sphinx-issues (>=3.0.1)", "sphinx-removed-in", "sphinxext-opengraph"]
335
+ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout"]
336
+
337
+ [[package]]
338
+ name = "preshed"
339
+ version = "3.0.8"
340
+ description = "Cython hash table that trusts the keys are pre-hashed"
341
+ category = "main"
342
+ optional = false
343
+ python-versions = ">=3.6"
344
+
345
+ [package.dependencies]
346
+ cymem = ">=2.0.2,<2.1.0"
347
+ murmurhash = ">=0.28.0,<1.1.0"
348
+
349
+ [[package]]
350
+ name = "pydantic"
351
+ version = "1.10.2"
352
+ description = "Data validation and settings management using python type hints"
353
+ category = "main"
354
+ optional = false
355
+ python-versions = ">=3.7"
356
+
357
+ [package.dependencies]
358
+ typing-extensions = ">=4.1.0"
359
+
360
+ [package.extras]
361
+ dotenv = ["python-dotenv (>=0.10.4)"]
362
+ email = ["email-validator (>=1.0.3)"]
363
+
364
+ [[package]]
365
+ name = "pyparsing"
366
+ version = "3.0.9"
367
+ description = "pyparsing module - Classes and methods to define and execute parsing grammars"
368
+ category = "main"
369
+ optional = false
370
+ python-versions = ">=3.6.8"
371
+
372
+ [package.extras]
373
+ diagrams = ["railroad-diagrams", "jinja2"]
374
+
375
+ [[package]]
376
+ name = "python-dateutil"
377
+ version = "2.8.2"
378
+ description = "Extensions to the standard Python datetime module"
379
+ category = "main"
380
+ optional = false
381
+ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
382
+
383
+ [package.dependencies]
384
+ six = ">=1.5"
385
+
386
+ [[package]]
387
+ name = "pytz"
388
+ version = "2022.6"
389
+ description = "World timezone definitions, modern and historical"
390
+ category = "main"
391
+ optional = false
392
+ python-versions = "*"
393
+
394
+ [[package]]
395
+ name = "pyyaml"
396
+ version = "6.0"
397
+ description = "YAML parser and emitter for Python"
398
+ category = "main"
399
+ optional = false
400
+ python-versions = ">=3.6"
401
+
402
+ [[package]]
403
+ name = "requests"
404
+ version = "2.28.1"
405
+ description = "Python HTTP for Humans."
406
+ category = "main"
407
+ optional = false
408
+ python-versions = ">=3.7, <4"
409
+
410
+ [package.dependencies]
411
+ certifi = ">=2017.4.17"
412
+ charset-normalizer = ">=2,<3"
413
+ idna = ">=2.5,<4"
414
+ urllib3 = ">=1.21.1,<1.27"
415
+
416
+ [package.extras]
417
+ socks = ["PySocks (>=1.5.6,!=1.5.7)"]
418
+ use_chardet_on_py3 = ["chardet (>=3.0.2,<6)"]
419
+
420
+ [[package]]
421
+ name = "scikit-learn"
422
+ version = "1.1.3"
423
+ description = "A set of python modules for machine learning and data mining"
424
+ category = "main"
425
+ optional = false
426
+ python-versions = ">=3.8"
427
+
428
+ [package.dependencies]
429
+ joblib = ">=1.0.0"
430
+ numpy = ">=1.17.3"
431
+ scipy = ">=1.3.2"
432
+ threadpoolctl = ">=2.0.0"
433
+
434
+ [package.extras]
435
+ benchmark = ["matplotlib (>=3.1.2)", "pandas (>=1.0.5)", "memory-profiler (>=0.57.0)"]
436
+ docs = ["matplotlib (>=3.1.2)", "scikit-image (>=0.16.2)", "pandas (>=1.0.5)", "seaborn (>=0.9.0)", "memory-profiler (>=0.57.0)", "sphinx (>=4.0.1)", "sphinx-gallery (>=0.7.0)", "numpydoc (>=1.2.0)", "Pillow (>=7.1.2)", "sphinx-prompt (>=1.3.0)", "sphinxext-opengraph (>=0.4.2)"]
437
+ examples = ["matplotlib (>=3.1.2)", "scikit-image (>=0.16.2)", "pandas (>=1.0.5)", "seaborn (>=0.9.0)"]
438
+ tests = ["matplotlib (>=3.1.2)", "scikit-image (>=0.16.2)", "pandas (>=1.0.5)", "pytest (>=5.0.1)", "pytest-cov (>=2.9.0)", "flake8 (>=3.8.2)", "black (>=22.3.0)", "mypy (>=0.961)", "pyamg (>=4.0.0)", "numpydoc (>=1.2.0)"]
439
+
440
+ [[package]]
441
+ name = "scipy"
442
+ version = "1.9.3"
443
+ description = "Fundamental algorithms for scientific computing in Python"
444
+ category = "main"
445
+ optional = false
446
+ python-versions = ">=3.8"
447
+
448
+ [package.dependencies]
449
+ numpy = ">=1.18.5,<1.26.0"
450
+
451
+ [package.extras]
452
+ test = ["pytest", "pytest-cov", "pytest-xdist", "asv", "mpmath", "gmpy2", "threadpoolctl", "scikit-umfpack"]
453
+ doc = ["sphinx (!=4.1.0)", "pydata-sphinx-theme (==0.9.0)", "sphinx-panels (>=0.5.2)", "matplotlib (>2)", "numpydoc", "sphinx-tabs"]
454
+ dev = ["mypy", "typing-extensions", "pycodestyle", "flake8"]
455
+
456
+ [[package]]
457
+ name = "setuptools-scm"
458
+ version = "7.0.5"
459
+ description = "the blessed package to manage your versions by scm tags"
460
+ category = "main"
461
+ optional = false
462
+ python-versions = ">=3.7"
463
+
464
+ [package.dependencies]
465
+ packaging = ">=20.0"
466
+ tomli = ">=1.0.0"
467
+ typing-extensions = "*"
468
+
469
+ [package.extras]
470
+ test = ["pytest (>=6.2)", "virtualenv (>20)"]
471
+ toml = ["setuptools (>=42)"]
472
+
473
+ [[package]]
474
+ name = "six"
475
+ version = "1.16.0"
476
+ description = "Python 2 and 3 compatibility utilities"
477
+ category = "main"
478
+ optional = false
479
+ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
480
+
481
+ [[package]]
482
+ name = "smart-open"
483
+ version = "5.2.1"
484
+ description = "Utils for streaming large files (S3, HDFS, GCS, Azure Blob Storage, gzip, bz2...)"
485
+ category = "main"
486
+ optional = false
487
+ python-versions = ">=3.6,<4.0"
488
+
489
+ [package.extras]
490
+ all = ["boto3", "google-cloud-storage", "azure-storage-blob", "azure-common", "azure-core", "requests"]
491
+ azure = ["azure-storage-blob", "azure-common", "azure-core"]
492
+ gcs = ["google-cloud-storage"]
493
+ http = ["requests"]
494
+ s3 = ["boto3"]
495
+ test = ["boto3", "google-cloud-storage", "azure-storage-blob", "azure-common", "azure-core", "requests", "moto[server] (==1.3.14)", "pathlib2", "responses", "paramiko", "parameterizedtestcase", "pytest", "pytest-rerunfailures"]
496
+ webhdfs = ["requests"]
497
+
498
+ [[package]]
499
+ name = "spacy"
500
+ version = "3.4.2"
501
+ description = "Industrial-strength Natural Language Processing (NLP) in Python"
502
+ category = "main"
503
+ optional = false
504
+ python-versions = ">=3.6"
505
+
506
+ [package.dependencies]
507
+ catalogue = ">=2.0.6,<2.1.0"
508
+ cymem = ">=2.0.2,<2.1.0"
509
+ jinja2 = "*"
510
+ langcodes = ">=3.2.0,<4.0.0"
511
+ murmurhash = ">=0.28.0,<1.1.0"
512
+ numpy = ">=1.15.0"
513
+ packaging = ">=20.0"
514
+ pathy = ">=0.3.5"
515
+ preshed = ">=3.0.2,<3.1.0"
516
+ pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<1.11.0"
517
+ requests = ">=2.13.0,<3.0.0"
518
+ spacy-legacy = ">=3.0.10,<3.1.0"
519
+ spacy-loggers = ">=1.0.0,<2.0.0"
520
+ srsly = ">=2.4.3,<3.0.0"
521
+ thinc = ">=8.1.0,<8.2.0"
522
+ tqdm = ">=4.38.0,<5.0.0"
523
+ typer = ">=0.3.0,<0.5.0"
524
+ wasabi = ">=0.9.1,<1.1.0"
525
+
526
+ [package.extras]
527
+ apple = ["thinc-apple-ops (>=0.1.0.dev0,<1.0.0)"]
528
+ cuda = ["cupy (>=5.0.0b4,<12.0.0)"]
529
+ cuda-autodetect = ["cupy-wheel (>=11.0.0,<12.0.0)"]
530
+ cuda100 = ["cupy-cuda100 (>=5.0.0b4,<12.0.0)"]
531
+ cuda101 = ["cupy-cuda101 (>=5.0.0b4,<12.0.0)"]
532
+ cuda102 = ["cupy-cuda102 (>=5.0.0b4,<12.0.0)"]
533
+ cuda110 = ["cupy-cuda110 (>=5.0.0b4,<12.0.0)"]
534
+ cuda111 = ["cupy-cuda111 (>=5.0.0b4,<12.0.0)"]
535
+ cuda112 = ["cupy-cuda112 (>=5.0.0b4,<12.0.0)"]
536
+ cuda113 = ["cupy-cuda113 (>=5.0.0b4,<12.0.0)"]
537
+ cuda114 = ["cupy-cuda114 (>=5.0.0b4,<12.0.0)"]
538
+ cuda115 = ["cupy-cuda115 (>=5.0.0b4,<12.0.0)"]
539
+ cuda116 = ["cupy-cuda116 (>=5.0.0b4,<12.0.0)"]
540
+ cuda117 = ["cupy-cuda117 (>=5.0.0b4,<12.0.0)"]
541
+ cuda11x = ["cupy-cuda11x (>=11.0.0,<12.0.0)"]
542
+ cuda80 = ["cupy-cuda80 (>=5.0.0b4,<12.0.0)"]
543
+ cuda90 = ["cupy-cuda90 (>=5.0.0b4,<12.0.0)"]
544
+ cuda91 = ["cupy-cuda91 (>=5.0.0b4,<12.0.0)"]
545
+ cuda92 = ["cupy-cuda92 (>=5.0.0b4,<12.0.0)"]
546
+ ja = ["sudachipy (>=0.5.2,!=0.6.1)", "sudachidict-core (>=20211220)"]
547
+ ko = ["natto-py (>=0.9.0)"]
548
+ lookups = ["spacy-lookups-data (>=1.0.3,<1.1.0)"]
549
+ ray = ["spacy-ray (>=0.1.0,<1.0.0)"]
550
+ th = ["pythainlp (>=2.0)"]
551
+ transformers = ["spacy-transformers (>=1.1.2,<1.2.0)"]
552
+
553
+ [[package]]
554
+ name = "spacy-legacy"
555
+ version = "3.0.10"
556
+ description = "Legacy registered functions for spaCy backwards compatibility"
557
+ category = "main"
558
+ optional = false
559
+ python-versions = ">=3.6"
560
+
561
+ [[package]]
562
+ name = "spacy-loggers"
563
+ version = "1.0.3"
564
+ description = "Logging utilities for SpaCy"
565
+ category = "main"
566
+ optional = false
567
+ python-versions = ">=3.6"
568
+
569
+ [package.dependencies]
570
+ wasabi = ">=0.8.1,<1.1.0"
571
+
572
+ [[package]]
573
+ name = "srsly"
574
+ version = "2.4.5"
575
+ description = "Modern high-performance serialization utilities for Python"
576
+ category = "main"
577
+ optional = false
578
+ python-versions = ">=3.6"
579
+
580
+ [package.dependencies]
581
+ catalogue = ">=2.0.3,<2.1.0"
582
+
583
+ [[package]]
584
+ name = "thinc"
585
+ version = "8.1.5"
586
+ description = "A refreshing functional take on deep learning, compatible with your favorite libraries"
587
+ category = "main"
588
+ optional = false
589
+ python-versions = ">=3.6"
590
+
591
+ [package.dependencies]
592
+ blis = ">=0.7.8,<0.8.0"
593
+ catalogue = ">=2.0.4,<2.1.0"
594
+ confection = ">=0.0.1,<1.0.0"
595
+ cymem = ">=2.0.2,<2.1.0"
596
+ murmurhash = ">=1.0.2,<1.1.0"
597
+ numpy = ">=1.15.0"
598
+ preshed = ">=3.0.2,<3.1.0"
599
+ pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<1.11.0"
600
+ srsly = ">=2.4.0,<3.0.0"
601
+ wasabi = ">=0.8.1,<1.1.0"
602
+
603
+ [package.extras]
604
+ cuda = ["cupy (>=5.0.0b4)"]
605
+ cuda-autodetect = ["cupy-wheel (>=11.0.0)"]
606
+ cuda100 = ["cupy-cuda100 (>=5.0.0b4)"]
607
+ cuda101 = ["cupy-cuda101 (>=5.0.0b4)"]
608
+ cuda102 = ["cupy-cuda102 (>=5.0.0b4)"]
609
+ cuda110 = ["cupy-cuda110 (>=5.0.0b4)"]
610
+ cuda111 = ["cupy-cuda111 (>=5.0.0b4)"]
611
+ cuda112 = ["cupy-cuda112 (>=5.0.0b4)"]
612
+ cuda113 = ["cupy-cuda113 (>=5.0.0b4)"]
613
+ cuda114 = ["cupy-cuda114 (>=5.0.0b4)"]
614
+ cuda115 = ["cupy-cuda115 (>=5.0.0b4)"]
615
+ cuda116 = ["cupy-cuda116 (>=5.0.0b4)"]
616
+ cuda117 = ["cupy-cuda117 (>=5.0.0b4)"]
617
+ cuda11x = ["cupy-cuda11x (>=11.0.0)"]
618
+ cuda80 = ["cupy-cuda80 (>=5.0.0b4)"]
619
+ cuda90 = ["cupy-cuda90 (>=5.0.0b4)"]
620
+ cuda91 = ["cupy-cuda91 (>=5.0.0b4)"]
621
+ cuda92 = ["cupy-cuda92 (>=5.0.0b4)"]
622
+ datasets = ["ml-datasets (>=0.2.0,<0.3.0)"]
623
+ mxnet = ["mxnet (>=1.5.1,<1.6.0)"]
624
+ tensorflow = ["tensorflow (>=2.0.0,<2.6.0)"]
625
+ torch = ["torch (>=1.6.0)"]
626
+
627
+ [[package]]
628
+ name = "threadpoolctl"
629
+ version = "3.1.0"
630
+ description = "threadpoolctl"
631
+ category = "main"
632
+ optional = false
633
+ python-versions = ">=3.6"
634
+
635
+ [[package]]
636
+ name = "tomli"
637
+ version = "2.0.1"
638
+ description = "A lil' TOML parser"
639
+ category = "main"
640
+ optional = false
641
+ python-versions = ">=3.7"
642
+
643
+ [[package]]
644
+ name = "torch"
645
+ version = "1.11.0"
646
+ description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
647
+ category = "main"
648
+ optional = false
649
+ python-versions = ">=3.7.0"
650
+
651
+ [package.dependencies]
652
+ typing-extensions = "*"
653
+
654
+ [[package]]
655
+ name = "torchvision"
656
+ version = "0.12.0"
657
+ description = "image and video datasets and models for torch deep learning"
658
+ category = "main"
659
+ optional = false
660
+ python-versions = ">=3.7"
661
+
662
+ [package.dependencies]
663
+ numpy = "*"
664
+ pillow = ">=5.3.0,<8.3.0 || >=8.4.0"
665
+ requests = "*"
666
+ torch = "*"
667
+ typing-extensions = "*"
668
+
669
+ [package.extras]
670
+ scipy = ["scipy"]
671
+
672
+ [[package]]
673
+ name = "tqdm"
674
+ version = "4.64.1"
675
+ description = "Fast, Extensible Progress Meter"
676
+ category = "main"
677
+ optional = false
678
+ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7"
679
+
680
+ [package.dependencies]
681
+ colorama = {version = "*", markers = "platform_system == \"Windows\""}
682
+
683
+ [package.extras]
684
+ dev = ["py-make (>=0.1.0)", "twine", "wheel"]
685
+ notebook = ["ipywidgets (>=6)"]
686
+ slack = ["slack-sdk"]
687
+ telegram = ["requests"]
688
+
689
+ [[package]]
690
+ name = "typer"
691
+ version = "0.4.2"
692
+ description = "Typer, build great CLIs. Easy to code. Based on Python type hints."
693
+ category = "main"
694
+ optional = false
695
+ python-versions = ">=3.6"
696
+
697
+ [package.dependencies]
698
+ click = ">=7.1.1,<9.0.0"
699
+
700
+ [package.extras]
701
+ all = ["colorama (>=0.4.3,<0.5.0)", "shellingham (>=1.3.0,<2.0.0)"]
702
+ dev = ["autoflake (>=1.3.1,<2.0.0)", "flake8 (>=3.8.3,<4.0.0)", "pre-commit (>=2.17.0,<3.0.0)"]
703
+ doc = ["mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=8.1.4,<9.0.0)", "mdx-include (>=1.4.1,<2.0.0)"]
704
+ test = ["shellingham (>=1.3.0,<2.0.0)", "pytest (>=4.4.0,<5.4.0)", "pytest-cov (>=2.10.0,<3.0.0)", "coverage (>=5.2,<6.0)", "pytest-xdist (>=1.32.0,<2.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "mypy (==0.910)", "black (>=22.3.0,<23.0.0)", "isort (>=5.0.6,<6.0.0)"]
705
+
706
+ [[package]]
707
+ name = "typing-extensions"
708
+ version = "4.4.0"
709
+ description = "Backported and Experimental Type Hints for Python 3.7+"
710
+ category = "main"
711
+ optional = false
712
+ python-versions = ">=3.7"
713
+
714
+ [[package]]
715
+ name = "urllib3"
716
+ version = "1.26.12"
717
+ description = "HTTP library with thread-safe connection pooling, file post, and more."
718
+ category = "main"
719
+ optional = false
720
+ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4"
721
+
722
+ [package.extras]
723
+ brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"]
724
+ secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "urllib3-secure-extra", "ipaddress"]
725
+ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
726
+
727
+ [[package]]
728
+ name = "wasabi"
729
+ version = "0.10.1"
730
+ description = "A lightweight console printing and formatting toolkit"
731
+ category = "main"
732
+ optional = false
733
+ python-versions = "*"
734
+
735
+ [metadata]
736
+ lock-version = "1.1"
737
+ python-versions = ">=3.8.0,<3.9"
738
+ content-hash = "1534cf85374f224a73264fed222b54988af3ccc957d16f439c0ce0e9fd40a8c6"
739
+
740
+ [metadata.files]
741
+ blis = []
742
+ catalogue = []
743
+ certifi = []
744
+ charset-normalizer = []
745
+ click = []
746
+ colorama = []
747
+ confection = []
748
+ contourpy = []
749
+ cycler = []
750
+ cymem = []
751
+ fastai = []
752
+ fastcore = []
753
+ fastdownload = []
754
+ fastprogress = []
755
+ fonttools = []
756
+ idna = []
757
+ jinja2 = []
758
+ joblib = []
759
+ kiwisolver = []
760
+ langcodes = []
761
+ markupsafe = []
762
+ matplotlib = []
763
+ murmurhash = []
764
+ numpy = []
765
+ packaging = []
766
+ pandas = []
767
+ pathy = []
768
+ pillow = []
769
+ preshed = []
770
+ pydantic = []
771
+ pyparsing = []
772
+ python-dateutil = []
773
+ pytz = []
774
+ pyyaml = []
775
+ requests = []
776
+ scikit-learn = []
777
+ scipy = []
778
+ setuptools-scm = []
779
+ six = []
780
+ smart-open = []
781
+ spacy = []
782
+ spacy-legacy = []
783
+ spacy-loggers = []
784
+ srsly = []
785
+ thinc = []
786
+ threadpoolctl = []
787
+ tomli = []
788
+ torch = []
789
+ torchvision = []
790
+ tqdm = []
791
+ typer = []
792
+ typing-extensions = []
793
+ urllib3 = []
794
+ wasabi = []
pyproject.toml CHANGED
@@ -1,3 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  [build-system]
2
- requires = ["setuptools>=40.8.0", "wheel", "python=3.9.0", "fastai=2.7.9", "fastcore=1.5.27"]
3
- build-backend = "setuptools.build_meta:__legacy__"
1
+ [tool.poetry]
2
+ name = "python-template"
3
+ version = "0.1.0"
4
+ description = ""
5
+ authors = ["Your Name <you@example.com>"]
6
+
7
+ [tool.poetry.dependencies]
8
+ python = ">=3.8.0,<3.9"
9
+ numpy = "^1.22.2"
10
+ urllib3 = "^1.26.12"
11
+ fastai = "2.7.9"
12
+ torch = "1.11.0"
13
+
14
  [build-system]
15
+ requires = ["poetry-core>=1.0.0"]
16
+ build-backend = "poetry.core.masonry.api"