diff --git a/conda/torch_snippets/meta.yaml b/conda/torch_snippets/meta.yaml index bf9be58..0c9ce13 100644 --- a/conda/torch_snippets/meta.yaml +++ b/conda/torch_snippets/meta.yaml @@ -1,9 +1,9 @@ package: name: torch_snippets - version: 0.499.33 + version: 0.499.34 source: - sha256: 600a4e6ab5d8539f94ceebcc82180eda82dfbce57e081230788a2595a9d0462d - url: https://files.pythonhosted.org/packages/3f/bb/c2ccb89e806ea62339f164be9fd9a5d3fa791312b0a0ec559807ceffec8f/torch_snippets-0.499.33.tar.gz + sha256: 9fb11abf70db9855972d92d0c2185e29c8cbf08f8bca30fb4aea080f282955e9 + url: https://files.pythonhosted.org/packages/c5/fd/31535a73899128862b6a9b53b4f1fcb079bbbb7c0026ca27fdb241b6b396/torch_snippets-0.499.34.tar.gz about: description: "# Utilities for simple needs\n\n\n\n## torch snippets does a lot of\ \ default importing for you\nWhether it is numpy, pandas, matplotlib or the useful\ diff --git a/nbs/adapters.ipynb b/nbs/adapters.ipynb index ef1f131..7c7e0f6 100644 --- a/nbs/adapters.ipynb +++ b/nbs/adapters.ipynb @@ -108,7 +108,7 @@ " df[\"@source\"] = \"manual\"\n", " df[\"@z_order\"] = \"0\"\n", " if \"text\" in df.columns:\n", - " df[\"attribute\"] = [[{\"@name\": \"OCR\", \"#text\": text}] for text in df[\"text\"]]\n", + " df[\"attribute\"] = [[{\"@name\": \"OCR\", \"#text\": text if text==text else ''}] for text in df[\"text\"]]\n", " df.drop(\n", " [\n", " c\n", @@ -269,7 +269,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.15 (default, Nov 24 2022, 09:04:07) \n[Clang 14.0.6 ]" + "version": "3.8.15" }, "orig_nbformat": 4, "vscode": { diff --git a/scripts.ipynb b/scripts.ipynb index acbacf9..4db5a99 100644 --- a/scripts.ipynb +++ b/scripts.ipynb @@ -2,17 +2,17 @@ "cells": [ { "cell_type": "code", - "execution_count": 3, + "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ - "
[06/23/23 13:16:35] INFO     loaded 25 lines                                               3918974775.py::3\" target=\"_blank\"><module>:3\n",
+       "
[06/25/23 11:37:27] INFO     loaded 25 lines                                               3918974775.py::3\" target=\"_blank\"><module>:3\n",
        "
\n" ], "text/plain": [ - "\u001b[2;36m[06/23/23 13:16:35]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m25\u001b[0m lines \u001b]8;id=401283;file:///var/folders/cp/1fbgq2n922j8ztdsq6551vldkr5sdy/T/ipykernel_48752/3918974775.py\u001b\\\u001b[2m3918974775.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=811426;file:///var/folders/cp/1fbgq2n922j8ztdsq6551vldkr5sdy/T/ipykernel_48752/3918974775.py#:3\u001b\\\u001b[2m:3\u001b[0m\u001b]8;;\u001b\\\n" + "\u001b[2;36m[06/25/23 11:37:27]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m25\u001b[0m lines \u001b]8;id=666865;file:///var/folders/cp/1fbgq2n922j8ztdsq6551vldkr5sdy/T/ipykernel_48752/3918974775.py\u001b\\\u001b[2m3918974775.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=546617;file:///var/folders/cp/1fbgq2n922j8ztdsq6551vldkr5sdy/T/ipykernel_48752/3918974775.py#:3\u001b\\\u001b[2m:3\u001b[0m\u001b]8;;\u001b\\\n" ] }, "metadata": {}, @@ -21,10 +21,10 @@ { "data": { "text/plain": [ - "'0.499.32'" + "'0.499.33'" ] }, - "execution_count": 3, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -38,7 +38,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -58,7 +58,246 @@ "---\n", "\n", " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", - "^C\n" + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "from torch_snippets.paths import writelines, readlines\n", + "\n", + "writelines('''[project]\n", + "version = 0.0.1\n", + "name = mnist\n", + "root = /home/me/projects/${project.name}\n", + "\n", + "[project.data]\n", + "source = https://files.fast.ai/data/examples/mnist_tiny.tgz\n", + "root = ${project.root}/data/\n", + "\n", + "[test]\n", + "@test_func = hello'''.split('\\n'), '/tmp/config.ini')\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "from torch_snippets.registry import parse\n", + "config = parse(\"/tmp/config.ini\")\n", + "assert config.project.version == \"0.0.1\"\n", + "assert config.project.root == '/home/me/projects/mnist'\n", + "config.pretty()\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "from torch_snippets.registry import registry\n", + "\n", + "registry.create(\"test_func\")\n", + "\n", + "@registry.test_func.register(\"hello\")\n", + "def test():\n", + " return lambda: \"hello world\"\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "from torch_snippets.registry import parse_and_resolve\n", + "config = parse_and_resolve(\"/tmp/config.ini\")\n", + "assert config.test() == \"hello world\"\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "#| echo: false\n", + "#| output: asis\n", + "from nbdev import show_doc\n", + "from torch_snippets import AttrDict\n", + "show_doc(AttrDict)\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "from sklearn.datasets import load_iris\n", + "from sklearn.model_selection import train_test_split\n", + "\n", + "data = load_iris()\n", + "X, y = data.data, data.target\n", + "X_trn, X_val, y_trn, y_val = train_test_split(X, y, random_state=42)\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "import numpy as np\n", + "bplot = get_bplot()\n", + "bplot.line(np.arange(100), np.cumsum(np.random.uniform(size=100)))\n", + "bshow(bplot)\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "from torch_snippets.inspector import inspect\n", + "from torch.utils.data import TensorDataset\n", + "\n", + "trn_ds = TensorDataset(*[torch.Tensor(i) for i in [X_trn, y_trn]])\n", + "trn_dl = DataLoader(trn_ds, batch_size=32)\n", + "\n", + "val_ds = TensorDataset(*[torch.Tensor(i) for i in [X_val, y_val]])\n", + "val_dl = DataLoader(val_ds, batch_size=32)\n", + "\n", + "inspect(next(iter(val_dl)))\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py:186: UserWarning: Found cells containing imports and other code. See FAQ.\n", + "---\n", + "from torch_snippets.trainer.capsule import Capsule, train, validate, predict\n", + "\n", + "\n", + "class IrisModel(Capsule):\n", + " def __init__(self):\n", + " super().__init__()\n", + " self.model = nn.Sequential(\n", + " nn.BatchNorm1d(4),\n", + " nn.Linear(4, 16),\n", + " nn.Dropout(0.2),\n", + " nn.BatchNorm1d(16),\n", + " nn.ReLU(inplace=True),\n", + " nn.Linear(16, 8),\n", + " nn.Dropout(0.2),\n", + " nn.BatchNorm1d(8),\n", + " nn.ReLU(inplace=True),\n", + " nn.Linear(8, 3),\n", + " )\n", + " self.loss_fn = nn.CrossEntropyLoss()\n", + " self.optimizer = optim.Adam(self.parameters())\n", + "\n", + " def forward(self, x):\n", + " return self.model(x)\n", + "\n", + " @train\n", + " def train_batch(self, batch):\n", + " x, y = batch\n", + " _y = self.forward(x)\n", + " loss = self.loss_fn(_y, y.long())\n", + " return {\"loss\": loss}\n", + "\n", + " @validate\n", + " def validate_batch(self, batch=None, dl=None):\n", + " if dl is not None:\n", + " output = []\n", + " for batch in dl:\n", + " output.extend(self.predict(batch=batch)[\"val_acc\"])\n", + " return np.mean(output)\n", + " x, y = batch\n", + " _y = self.forward(x)\n", + " loss = self.loss_fn(_y, y.long())\n", + " acc = (y == _y.max(-1)[1]).float().mean()\n", + " return {\"val_loss\": loss, \"val_acc\": acc}\n", + "\n", + " @predict\n", + " def predict(self, batch=None, dl=None):\n", + " if dl is not None:\n", + " output = []\n", + " for batch in dl:\n", + " output.extend(self.predict(batch=batch))\n", + " return output\n", + " x, y = batch\n", + " _y = self.forward(x)\n", + " o = _y.max(-1)[1].cpu().detach().numpy().tolist()\n", + " return o\n", + "---\n", + "\n", + " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n", + "concurrent.futures.process._RemoteTraceback: \n", + "\"\"\"\n", + "Traceback (most recent call last):\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/IPython/core/formatters.py\", line 221, in catch_format_error\n", + " r = method(self, *args, **kwargs)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/IPython/core/formatters.py\", line 342, in __call__\n", + " return method()\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/showdoc.py\", line 168, in _repr_markdown_\n", + " src = NbdevLookup().code(self.fn)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/doclinks.py\", line 200, in __init__\n", + " self.entries = {o.name: _qual_syms(o.resolve()) for o in list(pkg_resources.iter_entry_points(group='nbdev'))\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/doclinks.py\", line 200, in \n", + " self.entries = {o.name: _qual_syms(o.resolve()) for o in list(pkg_resources.iter_entry_points(group='nbdev'))\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 2477, in resolve\n", + " module = __import__(self.module_name, fromlist=['__name__'], level=0)\n", + " File \"/Users/yeshwanth.y/code/cvat-sdk/VDU_cvat_sdk/__init__.py\", line 1, in \n", + " from .login import *\n", + " File \"/Users/yeshwanth.y/code/cvat-sdk/VDU_cvat_sdk/login.py\", line 8, in \n", + " import typer\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/typer/__init__.py\", line 7, in \n", + " from click.exceptions import Abort as Abort\n", + "ModuleNotFoundError: No module named 'click'\n", + "\n", + "The above exception was the direct cause of the following exception:\n", + "\n", + "Traceback (most recent call last):\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/concurrent/futures/process.py\", line 243, in _process_worker\n", + " r = call_item.fn(*call_item.args, **call_item.kwargs)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/concurrent/futures/process.py\", line 202, in _process_chunk\n", + " return [fn(*args) for args in chunk]\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/concurrent/futures/process.py\", line 202, in \n", + " return [fn(*args) for args in chunk]\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/fastcore/parallel.py\", line 46, in _call\n", + " return g(item)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/serve_drv.py\", line 22, in main\n", + " if src.suffix=='.ipynb': exec_nb(src, dst, x)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/serve_drv.py\", line 16, in exec_nb\n", + " cb()(nb)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py\", line 243, in __call__\n", + " def __call__(self, nb): return self.nb_proc(nb).process()\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/process.py\", line 126, in process\n", + " for proc in self.procs: self._proc(proc)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/process.py\", line 119, in _proc\n", + " for cell in self.nb.cells: self._process_cell(proc, cell)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/process.py\", line 110, in _process_cell\n", + " if callable(proc) and not _is_direc(proc): cell = opt_set(cell, proc(cell))\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/processors.py\", line 205, in __call__\n", + " raise Exception(f\"Error{' in notebook: '+title if title else ''} in cell {cell.idx_} :\\n{cell.source}\") from self.k.exc[1]\n", + "Exception: Error in notebook: Decorator Utilites in cell 5 :\n", + "#| echo: false\n", + "#| output: asis\n", + "show_doc(check_kwargs_not_none)\n", + "\"\"\"\n", + "\n", + "The above exception was the direct cause of the following exception:\n", + "\n", + "Traceback (most recent call last):\n", + " File \"/Users/yeshwanth.y/miniconda3/bin/nbdev_docs\", line 8, in \n", + " sys.exit(nbdev_docs())\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/fastcore/script.py\", line 119, in _f\n", + " return tfunc(**merge(args, args_from_prog(func, xtra)))\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/quarto.py\", line 245, in nbdev_docs\n", + " cache,cfg,path = _pre_docs(path, n_workers=n_workers, **kwargs)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/quarto.py\", line 174, in _pre_docs\n", + " cache = proc_nbs(path, n_workers=n_workers, **kwargs)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/nbdev/serve.py\", line 77, in proc_nbs\n", + " parallel(nbdev.serve_drv.main, files, n_workers=n_workers, pause=0.01, **kw)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/fastcore/parallel.py\", line 117, in parallel\n", + " return L(r)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/fastcore/foundation.py\", line 98, in __call__\n", + " return super().__call__(x, *args, **kwargs)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/fastcore/foundation.py\", line 106, in __init__\n", + " items = listify(items, *rest, use_list=use_list, match=match)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages/fastcore/basics.py\", line 66, in listify\n", + " elif is_iter(o): res = list(o)\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/concurrent/futures/process.py\", line 559, in _chain_from_iterable_of_lists\n", + " for element in iterable:\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/concurrent/futures/_base.py\", line 608, in result_iterator\n", + " yield fs.pop().result()\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/concurrent/futures/_base.py\", line 445, in result\n", + " return self.__get_result()\n", + " File \"/Users/yeshwanth.y/miniconda3/lib/python3.9/concurrent/futures/_base.py\", line 390, in __get_result\n", + " raise self._exception\n", + "Exception: Error in notebook: Decorator Utilites in cell 5 :\n", + "#| echo: false\n", + "#| output: asis\n", + "show_doc(check_kwargs_not_none)\n" ] } ], @@ -68,7 +307,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -77,109 +316,106 @@ "text": [ "Obtaining file:///Users/yeshwanth.y/code/torch_snippets\n", " Preparing metadata (setup.py) ... \u001b[?25ldone\n", - "\u001b[?25hRequirement already satisfied: fastcore in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (1.5.27)\n", - "Requirement already satisfied: matplotlib in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (3.5.1)\n", - "Requirement already satisfied: Pillow in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (9.0.0)\n", - "Requirement already satisfied: altair in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (4.2.0)\n", - "Requirement already satisfied: dill in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.3.5.1)\n", - "Requirement already satisfied: ipython in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (7.30.1)\n", - "Requirement already satisfied: loguru in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.5.3)\n", - "Requirement already satisfied: numpy in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (1.19.5)\n", - "Requirement already satisfied: pandas in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (1.1.5)\n", - "Requirement already satisfied: tqdm in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (4.64.1)\n", - "Requirement already satisfied: rich in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (13.0.1)\n", - "Requirement already satisfied: PyYAML in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (5.4.1)\n", - "Requirement already satisfied: catalogue in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (2.0.7)\n", - "Requirement already satisfied: confection in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.0.3)\n", - "Requirement already satisfied: pydantic in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (1.8.2)\n", - "Requirement already satisfied: typing in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (3.7.4.3)\n", - "Requirement already satisfied: srsly in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (2.4.5)\n", - "Requirement already satisfied: typing_extensions in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (4.3.0)\n", - "Requirement already satisfied: wasabi in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.10.1)\n", - "Requirement already satisfied: jsonlines in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (3.0.0)\n", - "Requirement already satisfied: imgaug>=0.4.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.4.0)\n", - "Requirement already satisfied: xmltodict in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.12.0)\n", - "Requirement already satisfied: fuzzywuzzy in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.18.0)\n", - "Requirement already satisfied: scikit-learn in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.24.2)\n", - "Requirement already satisfied: nltk in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (3.6.7)\n", - "Requirement already satisfied: python-Levenshtein in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.12.2)\n", - "Requirement already satisfied: lovely_tensors in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (0.1.14)\n", - "Requirement already satisfied: pre-commit in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (2.21.0)\n", - "Requirement already satisfied: pymupdf in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (1.21.1)\n", - "Requirement already satisfied: nbconvert in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (6.5.0)\n", - "Requirement already satisfied: nbformat in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.30) (5.8.0)\n", - "Requirement already satisfied: six in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.30) (1.16.0)\n", - "Requirement already satisfied: scipy in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.30) (1.7.3)\n", - "Requirement already satisfied: scikit-image>=0.14.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.30) (0.19.1)\n", - "Requirement already satisfied: opencv-python in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.30) (4.5.4.60)\n", - "Requirement already satisfied: imageio in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.30) (2.9.0)\n", - "Requirement already satisfied: Shapely in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.30) (1.8.0)\n", - "Requirement already satisfied: entrypoints in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.30) (0.3)\n", - "Requirement already satisfied: jinja2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.30) (3.1.2)\n", - "Requirement already satisfied: jsonschema>=3.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.30) (4.17.3)\n", - "Requirement already satisfied: toolz in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.30) (0.12.0)\n", - "Requirement already satisfied: python-dateutil>=2.7.3 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pandas->torch-snippets==0.499.30) (2.8.2)\n", - "Requirement already satisfied: pytz>=2017.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pandas->torch-snippets==0.499.30) (2023.3)\n", - "Requirement already satisfied: pip in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from fastcore->torch-snippets==0.499.30) (22.3.1)\n", - "Requirement already satisfied: packaging in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from fastcore->torch-snippets==0.499.30) (22.0)\n", - "Requirement already satisfied: setuptools>=18.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (65.6.3)\n", - "Requirement already satisfied: jedi>=0.16 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (0.18.1)\n", - "Requirement already satisfied: decorator in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (5.1.0)\n", - "Requirement already satisfied: pickleshare in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (0.7.5)\n", - "Requirement already satisfied: traitlets>=4.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (5.7.1)\n", - "Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (3.0.24)\n", - "Requirement already satisfied: pygments in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (2.11.1)\n", - "Requirement already satisfied: backcall in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (0.2.0)\n", - "Requirement already satisfied: matplotlib-inline in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (0.1.3)\n", - "Requirement already satisfied: pexpect>4.3 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (4.8.0)\n", - "Requirement already satisfied: appnope in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.30) (0.1.2)\n", - "Requirement already satisfied: attrs>=19.2.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jsonlines->torch-snippets==0.499.30) (22.2.0)\n", - "Requirement already satisfied: lovely-numpy>=0.2.8 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from lovely_tensors->torch-snippets==0.499.30) (0.2.8)\n", - "Requirement already satisfied: torch in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from lovely_tensors->torch-snippets==0.499.30) (1.12.1)\n", - "Requirement already satisfied: cycler>=0.10 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.30) (0.11.0)\n", - "Requirement already satisfied: fonttools>=4.22.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.30) (4.28.5)\n", - "Requirement already satisfied: kiwisolver>=1.0.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.30) (1.3.2)\n", - "Requirement already satisfied: pyparsing>=2.2.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.30) (3.0.9)\n", - "Requirement already satisfied: beautifulsoup4 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (4.6.3)\n", - "Requirement already satisfied: bleach in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (4.1.0)\n", - "Requirement already satisfied: defusedxml in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (0.7.1)\n", - "Requirement already satisfied: jupyter-core>=4.7 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (5.3.0)\n", - "Requirement already satisfied: jupyterlab-pygments in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (0.1.2)\n", - "Requirement already satisfied: MarkupSafe>=2.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (2.1.1)\n", - "Requirement already satisfied: mistune<2,>=0.8.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (0.8.4)\n", - "Requirement already satisfied: nbclient>=0.5.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (0.5.9)\n", - "Requirement already satisfied: pandocfilters>=1.4.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (1.5.0)\n", - "Requirement already satisfied: tinycss2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.30) (1.1.1)\n", - "Requirement already satisfied: fastjsonschema in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbformat->torch-snippets==0.499.30) (2.16.3)\n", - "Requirement already satisfied: click in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nltk->torch-snippets==0.499.30) (8.1.3)\n", - "Requirement already satisfied: joblib in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nltk->torch-snippets==0.499.30) (1.1.0)\n", - "Requirement already satisfied: regex>=2021.8.3 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nltk->torch-snippets==0.499.30) (2022.10.31)\n", - "Requirement already satisfied: cfgv>=2.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.30) (3.3.1)\n", - "Requirement already satisfied: identify>=1.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.30) (2.5.13)\n", - "Requirement already satisfied: nodeenv>=0.11.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.30) (1.7.0)\n", - "Requirement already satisfied: virtualenv>=20.10.0 in /Users/yeshwanth.y/.local/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.30) (20.13.1)\n", - "Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from rich->torch-snippets==0.499.30) (0.9.1)\n", - "Requirement already satisfied: threadpoolctl>=2.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-learn->torch-snippets==0.499.30) (3.0.0)\n", - "Requirement already satisfied: parso<0.9.0,>=0.8.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jedi>=0.16->ipython->torch-snippets==0.499.30) (0.8.3)\n", - "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jsonschema>=3.0->altair->torch-snippets==0.499.30) (0.18.0)\n", - "Requirement already satisfied: platformdirs>=2.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jupyter-core>=4.7->nbconvert->torch-snippets==0.499.30) (2.5.2)\n", - "Requirement already satisfied: jupyter-client>=6.1.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbclient>=0.5.0->nbconvert->torch-snippets==0.499.30) (7.4.9)\n", - "Requirement already satisfied: nest-asyncio in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbclient>=0.5.0->nbconvert->torch-snippets==0.499.30) (1.5.4)\n", - "Requirement already satisfied: ptyprocess>=0.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pexpect>4.3->ipython->torch-snippets==0.499.30) (0.7.0)\n", - "Requirement already satisfied: wcwidth in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython->torch-snippets==0.499.30) (0.2.5)\n", - "Requirement already satisfied: networkx>=2.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch-snippets==0.499.30) (2.8.8)\n", - "Requirement already satisfied: tifffile>=2019.7.26 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch-snippets==0.499.30) (2021.11.2)\n", - "Requirement already satisfied: PyWavelets>=1.1.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch-snippets==0.499.30) (1.2.0)\n", - "Requirement already satisfied: distlib<1,>=0.3.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from virtualenv>=20.10.0->pre-commit->torch-snippets==0.499.30) (0.3.6)\n", - "Requirement already satisfied: filelock<4,>=3.2 in /Users/yeshwanth.y/.local/lib/python3.9/site-packages (from virtualenv>=20.10.0->pre-commit->torch-snippets==0.499.30) (3.4.2)\n", - "Requirement already satisfied: webencodings in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from bleach->nbconvert->torch-snippets==0.499.30) (0.5.1)\n", - "Requirement already satisfied: pyzmq>=23.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jupyter-client>=6.1.5->nbclient>=0.5.0->nbconvert->torch-snippets==0.499.30) (25.1.0)\n", - "Requirement already satisfied: tornado>=6.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jupyter-client>=6.1.5->nbclient>=0.5.0->nbconvert->torch-snippets==0.499.30) (6.2)\n", + "\u001b[?25hRequirement already satisfied: fastcore in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (1.5.27)\n", + "Requirement already satisfied: matplotlib in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (3.5.1)\n", + "Requirement already satisfied: Pillow in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (9.0.0)\n", + "Requirement already satisfied: altair in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (4.2.0)\n", + "Requirement already satisfied: dill in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.3.5.1)\n", + "Requirement already satisfied: ipython in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (7.30.1)\n", + "Requirement already satisfied: loguru in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.5.3)\n", + "Requirement already satisfied: numpy in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (1.19.5)\n", + "Requirement already satisfied: pandas in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (1.1.5)\n", + "Requirement already satisfied: tqdm in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (4.64.1)\n", + "Requirement already satisfied: rich in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (13.0.1)\n", + "Requirement already satisfied: PyYAML in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (5.4.1)\n", + "Requirement already satisfied: catalogue in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (2.0.7)\n", + "Requirement already satisfied: confection in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.0.3)\n", + "Requirement already satisfied: pydantic in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (1.8.2)\n", + "Requirement already satisfied: typing in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (3.7.4.3)\n", + "Requirement already satisfied: srsly in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (2.4.5)\n", + "Requirement already satisfied: typing_extensions in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (4.3.0)\n", + "Requirement already satisfied: wasabi in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.10.1)\n", + "Requirement already satisfied: jsonlines in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (3.0.0)\n", + "Requirement already satisfied: imgaug>=0.4.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.4.0)\n", + "Requirement already satisfied: xmltodict in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.12.0)\n", + "Requirement already satisfied: fuzzywuzzy in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.18.0)\n", + "Requirement already satisfied: scikit-learn in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.24.2)\n", + "Requirement already satisfied: nltk in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (3.6.7)\n", + "Requirement already satisfied: python-Levenshtein in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (0.12.2)\n", + "Requirement already satisfied: pre-commit in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (2.21.0)\n", + "Requirement already satisfied: pymupdf in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (1.21.1)\n", + "Requirement already satisfied: nbconvert in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (6.5.0)\n", + "Requirement already satisfied: nbformat in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from torch-snippets==0.499.33) (5.8.0)\n", + "Requirement already satisfied: six in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.33) (1.16.0)\n", + "Requirement already satisfied: scipy in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.33) (1.7.3)\n", + "Requirement already satisfied: scikit-image>=0.14.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.33) (0.19.1)\n", + "Requirement already satisfied: opencv-python in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.33) (4.5.4.60)\n", + "Requirement already satisfied: imageio in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.33) (2.9.0)\n", + "Requirement already satisfied: Shapely in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from imgaug>=0.4.0->torch-snippets==0.499.33) (1.8.0)\n", + "Requirement already satisfied: entrypoints in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.33) (0.3)\n", + "Requirement already satisfied: jinja2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.33) (3.1.2)\n", + "Requirement already satisfied: jsonschema>=3.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.33) (4.17.3)\n", + "Requirement already satisfied: toolz in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from altair->torch-snippets==0.499.33) (0.12.0)\n", + "Requirement already satisfied: python-dateutil>=2.7.3 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pandas->torch-snippets==0.499.33) (2.8.2)\n", + "Requirement already satisfied: pytz>=2017.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pandas->torch-snippets==0.499.33) (2023.3)\n", + "Requirement already satisfied: pip in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from fastcore->torch-snippets==0.499.33) (22.3.1)\n", + "Requirement already satisfied: packaging in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from fastcore->torch-snippets==0.499.33) (22.0)\n", + "Requirement already satisfied: setuptools>=18.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (65.6.3)\n", + "Requirement already satisfied: jedi>=0.16 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (0.18.1)\n", + "Requirement already satisfied: decorator in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (5.1.0)\n", + "Requirement already satisfied: pickleshare in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (0.7.5)\n", + "Requirement already satisfied: traitlets>=4.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (5.7.1)\n", + "Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (3.0.24)\n", + "Requirement already satisfied: pygments in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (2.11.1)\n", + "Requirement already satisfied: backcall in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (0.2.0)\n", + "Requirement already satisfied: matplotlib-inline in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (0.1.3)\n", + "Requirement already satisfied: pexpect>4.3 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (4.8.0)\n", + "Requirement already satisfied: appnope in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from ipython->torch-snippets==0.499.33) (0.1.2)\n", + "Requirement already satisfied: attrs>=19.2.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jsonlines->torch-snippets==0.499.33) (22.2.0)\n", + "Requirement already satisfied: cycler>=0.10 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.33) (0.11.0)\n", + "Requirement already satisfied: fonttools>=4.22.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.33) (4.28.5)\n", + "Requirement already satisfied: kiwisolver>=1.0.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.33) (1.3.2)\n", + "Requirement already satisfied: pyparsing>=2.2.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from matplotlib->torch-snippets==0.499.33) (3.0.9)\n", + "Requirement already satisfied: beautifulsoup4 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (4.6.3)\n", + "Requirement already satisfied: bleach in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (4.1.0)\n", + "Requirement already satisfied: defusedxml in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (0.7.1)\n", + "Requirement already satisfied: jupyter-core>=4.7 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (5.3.0)\n", + "Requirement already satisfied: jupyterlab-pygments in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (0.1.2)\n", + "Requirement already satisfied: MarkupSafe>=2.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (2.1.1)\n", + "Requirement already satisfied: mistune<2,>=0.8.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (0.8.4)\n", + "Requirement already satisfied: nbclient>=0.5.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (0.5.9)\n", + "Requirement already satisfied: pandocfilters>=1.4.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (1.5.0)\n", + "Requirement already satisfied: tinycss2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbconvert->torch-snippets==0.499.33) (1.1.1)\n", + "Requirement already satisfied: fastjsonschema in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbformat->torch-snippets==0.499.33) (2.16.3)\n", + "Requirement already satisfied: click in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nltk->torch-snippets==0.499.33) (8.1.3)\n", + "Requirement already satisfied: joblib in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nltk->torch-snippets==0.499.33) (1.1.0)\n", + "Requirement already satisfied: regex>=2021.8.3 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nltk->torch-snippets==0.499.33) (2022.10.31)\n", + "Requirement already satisfied: cfgv>=2.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.33) (3.3.1)\n", + "Requirement already satisfied: identify>=1.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.33) (2.5.13)\n", + "Requirement already satisfied: nodeenv>=0.11.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.33) (1.7.0)\n", + "Requirement already satisfied: virtualenv>=20.10.0 in /Users/yeshwanth.y/.local/lib/python3.9/site-packages (from pre-commit->torch-snippets==0.499.33) (20.13.1)\n", + "Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from rich->torch-snippets==0.499.33) (0.9.1)\n", + "Requirement already satisfied: threadpoolctl>=2.0.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-learn->torch-snippets==0.499.33) (3.0.0)\n", + "Requirement already satisfied: parso<0.9.0,>=0.8.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jedi>=0.16->ipython->torch-snippets==0.499.33) (0.8.3)\n", + "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jsonschema>=3.0->altair->torch-snippets==0.499.33) (0.18.0)\n", + "Requirement already satisfied: platformdirs>=2.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jupyter-core>=4.7->nbconvert->torch-snippets==0.499.33) (2.5.2)\n", + "Requirement already satisfied: jupyter-client>=6.1.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbclient>=0.5.0->nbconvert->torch-snippets==0.499.33) (7.4.9)\n", + "Requirement already satisfied: nest-asyncio in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from nbclient>=0.5.0->nbconvert->torch-snippets==0.499.33) (1.5.4)\n", + "Requirement already satisfied: ptyprocess>=0.5 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from pexpect>4.3->ipython->torch-snippets==0.499.33) (0.7.0)\n", + "Requirement already satisfied: wcwidth in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython->torch-snippets==0.499.33) (0.2.5)\n", + "Requirement already satisfied: networkx>=2.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch-snippets==0.499.33) (2.8.8)\n", + "Requirement already satisfied: tifffile>=2019.7.26 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch-snippets==0.499.33) (2021.11.2)\n", + "Requirement already satisfied: PyWavelets>=1.1.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch-snippets==0.499.33) (1.2.0)\n", + "Requirement already satisfied: distlib<1,>=0.3.1 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from virtualenv>=20.10.0->pre-commit->torch-snippets==0.499.33) (0.3.6)\n", + "Requirement already satisfied: filelock<4,>=3.2 in /Users/yeshwanth.y/.local/lib/python3.9/site-packages (from virtualenv>=20.10.0->pre-commit->torch-snippets==0.499.33) (3.4.2)\n", + "Requirement already satisfied: webencodings in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from bleach->nbconvert->torch-snippets==0.499.33) (0.5.1)\n", + "Requirement already satisfied: pyzmq>=23.0 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jupyter-client>=6.1.5->nbclient>=0.5.0->nbconvert->torch-snippets==0.499.33) (25.1.0)\n", + "Requirement already satisfied: tornado>=6.2 in /Users/yeshwanth.y/miniconda3/lib/python3.9/site-packages (from jupyter-client>=6.1.5->nbclient>=0.5.0->nbconvert->torch-snippets==0.499.33) (6.2)\n", "Installing collected packages: torch-snippets\n", " Attempting uninstall: torch-snippets\n", - " Found existing installation: torch-snippets 0.499.30\n", - " Uninstalling torch-snippets-0.499.30:\n", - " Successfully uninstalled torch-snippets-0.499.30\n", + " Found existing installation: torch-snippets 0.499.32\n", + " Uninstalling torch-snippets-0.499.32:\n", + " Successfully uninstalled torch-snippets-0.499.32\n", " Running setup.py develop for torch-snippets\n", "Successfully installed torch-snippets\n", "Note: you may need to restart the kernel to use updated packages.\n" @@ -193,7 +429,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 9, "metadata": {}, "outputs": [ { @@ -216,57 +452,57 @@ "adding license file 'LICENSE.txt'\n", "writing manifest file 'torch_snippets.egg-info/SOURCES.txt'\n", "running check\n", - "creating torch_snippets-0.499.32\n", - "creating torch_snippets-0.499.32/torch_snippets\n", - "creating torch_snippets-0.499.32/torch_snippets.egg-info\n", - "creating torch_snippets-0.499.32/torch_snippets/thinc_parser\n", - "creating torch_snippets-0.499.32/torch_snippets/trainer\n", - "copying files to torch_snippets-0.499.32...\n", - "copying LICENSE -> torch_snippets-0.499.32\n", - "copying LICENSE.txt -> torch_snippets-0.499.32\n", - "copying MANIFEST.in -> torch_snippets-0.499.32\n", - "copying README.md -> torch_snippets-0.499.32\n", - "copying settings.ini -> torch_snippets-0.499.32\n", - "copying setup.cfg -> torch_snippets-0.499.32\n", - "copying setup.py -> torch_snippets-0.499.32\n", - "copying torch_snippets/__init__.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/_modidx.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/_nbdev.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/adapters.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/bb_utils.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/bokeh_loader.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/charts.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/decorators.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/fastcores.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/imgaug_loader.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/inspector.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/interactive_show.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/ipython.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/load_defaults.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/loader.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/logger.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/markup.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/misc.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/paths.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/pdf_loader.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/registry.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/sklegos.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/text_utils.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets/torch_loader.py -> torch_snippets-0.499.32/torch_snippets\n", - "copying torch_snippets.egg-info/PKG-INFO -> torch_snippets-0.499.32/torch_snippets.egg-info\n", - "copying torch_snippets.egg-info/SOURCES.txt -> torch_snippets-0.499.32/torch_snippets.egg-info\n", - "copying torch_snippets.egg-info/dependency_links.txt -> torch_snippets-0.499.32/torch_snippets.egg-info\n", - "copying torch_snippets.egg-info/not-zip-safe -> torch_snippets-0.499.32/torch_snippets.egg-info\n", - "copying torch_snippets.egg-info/requires.txt -> torch_snippets-0.499.32/torch_snippets.egg-info\n", - "copying torch_snippets.egg-info/top_level.txt -> torch_snippets-0.499.32/torch_snippets.egg-info\n", - "copying torch_snippets/thinc_parser/__init__.py -> torch_snippets-0.499.32/torch_snippets/thinc_parser\n", - "copying torch_snippets/thinc_parser/parser.py -> torch_snippets-0.499.32/torch_snippets/thinc_parser\n", - "copying torch_snippets/trainer/__init__.py -> torch_snippets-0.499.32/torch_snippets/trainer\n", - "copying torch_snippets/trainer/capsule.py -> torch_snippets-0.499.32/torch_snippets/trainer\n", - "Writing torch_snippets-0.499.32/setup.cfg\n", + "creating torch_snippets-0.499.33\n", + "creating torch_snippets-0.499.33/torch_snippets\n", + "creating torch_snippets-0.499.33/torch_snippets.egg-info\n", + "creating torch_snippets-0.499.33/torch_snippets/thinc_parser\n", + "creating torch_snippets-0.499.33/torch_snippets/trainer\n", + "copying files to torch_snippets-0.499.33...\n", + "copying LICENSE -> torch_snippets-0.499.33\n", + "copying LICENSE.txt -> torch_snippets-0.499.33\n", + "copying MANIFEST.in -> torch_snippets-0.499.33\n", + "copying README.md -> torch_snippets-0.499.33\n", + "copying settings.ini -> torch_snippets-0.499.33\n", + "copying setup.cfg -> torch_snippets-0.499.33\n", + "copying setup.py -> torch_snippets-0.499.33\n", + "copying torch_snippets/__init__.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/_modidx.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/_nbdev.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/adapters.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/bb_utils.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/bokeh_loader.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/charts.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/decorators.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/fastcores.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/imgaug_loader.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/inspector.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/interactive_show.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/ipython.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/load_defaults.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/loader.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/logger.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/markup.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/misc.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/paths.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/pdf_loader.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/registry.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/sklegos.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/text_utils.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets/torch_loader.py -> torch_snippets-0.499.33/torch_snippets\n", + "copying torch_snippets.egg-info/PKG-INFO -> torch_snippets-0.499.33/torch_snippets.egg-info\n", + "copying torch_snippets.egg-info/SOURCES.txt -> torch_snippets-0.499.33/torch_snippets.egg-info\n", + "copying torch_snippets.egg-info/dependency_links.txt -> torch_snippets-0.499.33/torch_snippets.egg-info\n", + "copying torch_snippets.egg-info/not-zip-safe -> torch_snippets-0.499.33/torch_snippets.egg-info\n", + "copying torch_snippets.egg-info/requires.txt -> torch_snippets-0.499.33/torch_snippets.egg-info\n", + "copying torch_snippets.egg-info/top_level.txt -> torch_snippets-0.499.33/torch_snippets.egg-info\n", + "copying torch_snippets/thinc_parser/__init__.py -> torch_snippets-0.499.33/torch_snippets/thinc_parser\n", + "copying torch_snippets/thinc_parser/parser.py -> torch_snippets-0.499.33/torch_snippets/thinc_parser\n", + "copying torch_snippets/trainer/__init__.py -> torch_snippets-0.499.33/torch_snippets/trainer\n", + "copying torch_snippets/trainer/capsule.py -> torch_snippets-0.499.33/torch_snippets/trainer\n", + "Writing torch_snippets-0.499.33/setup.cfg\n", "creating dist\n", "Creating tar archive\n", - "removing 'torch_snippets-0.499.32' (and everything under it)\n", + "removing 'torch_snippets-0.499.33' (and everything under it)\n", "running bdist_wheel\n", "running build\n", "running build_py\n", @@ -342,12 +578,12 @@ "copying build/lib/torch_snippets/adapters.py -> build/bdist.macosx-10.9-x86_64/wheel/torch_snippets\n", "copying build/lib/torch_snippets/decorators.py -> build/bdist.macosx-10.9-x86_64/wheel/torch_snippets\n", "running install_egg_info\n", - "Copying torch_snippets.egg-info to build/bdist.macosx-10.9-x86_64/wheel/torch_snippets-0.499.32-py3.9.egg-info\n", + "Copying torch_snippets.egg-info to build/bdist.macosx-10.9-x86_64/wheel/torch_snippets-0.499.33-py3.9.egg-info\n", "running install_scripts\n", "adding license file \"LICENSE\" (matched pattern \"LICEN[CS]E*\")\n", "adding license file \"LICENSE.txt\" (matched pattern \"LICEN[CS]E*\")\n", - "creating build/bdist.macosx-10.9-x86_64/wheel/torch_snippets-0.499.32.dist-info/WHEEL\n", - "creating 'dist/torch_snippets-0.499.32-py3-none-any.whl' and adding 'build/bdist.macosx-10.9-x86_64/wheel' to it\n", + "creating build/bdist.macosx-10.9-x86_64/wheel/torch_snippets-0.499.33.dist-info/WHEEL\n", + "creating 'dist/torch_snippets-0.499.33-py3-none-any.whl' and adding 'build/bdist.macosx-10.9-x86_64/wheel' to it\n", "adding 'torch_snippets/__init__.py'\n", "adding 'torch_snippets/_modidx.py'\n", "adding 'torch_snippets/_nbdev.py'\n", @@ -376,21 +612,21 @@ "adding 'torch_snippets/thinc_parser/parser.py'\n", "adding 'torch_snippets/trainer/__init__.py'\n", "adding 'torch_snippets/trainer/capsule.py'\n", - "adding 'torch_snippets-0.499.32.dist-info/LICENSE'\n", - "adding 'torch_snippets-0.499.32.dist-info/LICENSE.txt'\n", - "adding 'torch_snippets-0.499.32.dist-info/METADATA'\n", - "adding 'torch_snippets-0.499.32.dist-info/WHEEL'\n", - "adding 'torch_snippets-0.499.32.dist-info/top_level.txt'\n", - "adding 'torch_snippets-0.499.32.dist-info/RECORD'\n", + "adding 'torch_snippets-0.499.33.dist-info/LICENSE'\n", + "adding 'torch_snippets-0.499.33.dist-info/LICENSE.txt'\n", + "adding 'torch_snippets-0.499.33.dist-info/METADATA'\n", + "adding 'torch_snippets-0.499.33.dist-info/WHEEL'\n", + "adding 'torch_snippets-0.499.33.dist-info/top_level.txt'\n", + "adding 'torch_snippets-0.499.33.dist-info/RECORD'\n", "removing build/bdist.macosx-10.9-x86_64/wheel\n", "Uploading distributions to https://upload.pypi.org/legacy/\n", - "Uploading torch_snippets-0.499.32-py3-none-any.whl\n", - "100%|██████████████████████████████████████| 69.3k/69.3k [00:03<00:00, 18.2kB/s]\n", - "Uploading torch_snippets-0.499.32.tar.gz\n", - "100%|██████████████████████████████████████| 59.8k/59.8k [00:02<00:00, 25.7kB/s]\n", + "Uploading torch_snippets-0.499.33-py3-none-any.whl\n", + "100%|██████████████████████████████████████| 69.2k/69.2k [00:04<00:00, 17.0kB/s]\n", + "Uploading torch_snippets-0.499.33.tar.gz\n", + "100%|██████████████████████████████████████| 59.8k/59.8k [00:02<00:00, 30.6kB/s]\n", "\n", "View at:\n", - "https://pypi.org/project/torch-snippets/0.499.32/\n", + "https://pypi.org/project/torch-snippets/0.499.33/\n", "conda build --output-folder out --no-anaconda-upload torch_snippets\n", "\n", "CommandNotFoundError: To use 'conda build', install conda-build.\n", @@ -417,7 +653,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -427,38 +663,38 @@ "Fix End of Files.........................................................\u001b[42mPassed\u001b[m\n", "Trim Trailing Whitespace.................................................\u001b[42mPassed\u001b[m\n", "black....................................................................\u001b[42mPassed\u001b[m\n", - "[master f3db8ae] {VERSION}\n", - " 34 files changed, 8564 insertions(+), 527 deletions(-)\n", - " create mode 100644 _proc/adapters.ipynb\n", - " create mode 100644 _proc/capsule.ipynb\n", - " create mode 100644 _proc/charts.ipynb\n", - " create mode 100644 _proc/decorators.ipynb\n", - " create mode 100644 _proc/imgaug_loader.ipynb\n", - " create mode 100644 _proc/index.ipynb\n", - " create mode 100644 _proc/inspector.ipynb\n", - " create mode 100644 _proc/jupyter_notebook.ipynb\n", - " create mode 100644 _proc/load_defautls.ipynb\n", - " create mode 100644 _proc/logging.ipynb\n", - " create mode 100644 _proc/markups.ipynb\n", - " create mode 100644 _proc/misc.ipynb\n", - " create mode 100644 _proc/paths.ipynb\n", - " create mode 100644 _proc/pdf.ipynb\n", - " create mode 100644 _proc/registry.ipynb\n", - " create mode 100644 _proc/report.ipynb\n", - " create mode 100644 _proc/show.ipynb\n", - "Enumerating objects: 64, done.\n", - "Counting objects: 100% (64/64), done.\n", + "[master 1b1da3a] 0.499.33\n", + " 30 files changed, 158 insertions(+), 8303 deletions(-)\n", + " delete mode 100644 _proc/adapters.ipynb\n", + " delete mode 100644 _proc/capsule.ipynb\n", + " delete mode 100644 _proc/charts.ipynb\n", + " delete mode 100644 _proc/decorators.ipynb\n", + " delete mode 100644 _proc/imgaug_loader.ipynb\n", + " delete mode 100644 _proc/index.ipynb\n", + " delete mode 100644 _proc/inspector.ipynb\n", + " delete mode 100644 _proc/jupyter_notebook.ipynb\n", + " delete mode 100644 _proc/load_defautls.ipynb\n", + " delete mode 100644 _proc/logging.ipynb\n", + " delete mode 100644 _proc/markups.ipynb\n", + " delete mode 100644 _proc/misc.ipynb\n", + " delete mode 100644 _proc/paths.ipynb\n", + " delete mode 100644 _proc/pdf.ipynb\n", + " delete mode 100644 _proc/registry.ipynb\n", + " delete mode 100644 _proc/report.ipynb\n", + " delete mode 100644 _proc/show.ipynb\n", + "Enumerating objects: 41, done.\n", + "Counting objects: 100% (41/41), done.\n", "Delta compression using up to 12 threads\n", - "Compressing objects: 100% (40/40), done.\n", - "Writing objects: 100% (42/42), 3.20 MiB | 1.23 MiB/s, done.\n", - "Total 42 (delta 28), reused 0 (delta 0), pack-reused 0\n", - "remote: Resolving deltas: 100% (28/28), completed with 19 local objects.\u001b[K\n", + "Compressing objects: 100% (19/19), done.\n", + "Writing objects: 100% (21/21), 3.50 KiB | 1.75 MiB/s, done.\n", + "Total 21 (delta 18), reused 0 (delta 0), pack-reused 0\n", + "remote: Resolving deltas: 100% (18/18), completed with 18 local objects.\u001b[K\n", "remote: \n", "remote: GitHub found 11 vulnerabilities on sizhky/torch_snippets's default branch (4 high, 6 moderate, 1 low). To find out more, visit:\u001b[K\n", "remote: https://github.com/sizhky/torch_snippets/security/dependabot\u001b[K\n", "remote: \n", "To github.com:sizhky/torch_snippets.git\n", - " bf9a93c..f3db8ae master -> master\n" + " f3db8ae..1b1da3a master -> master\n" ] } ], diff --git a/settings.ini b/settings.ini index 5afe4a1..7537ecb 100644 --- a/settings.ini +++ b/settings.ini @@ -8,7 +8,7 @@ author = Yeshwanth Reddy author_email = 1992chinna@gmail.com copyright = sizhky branch = master -version = 0.499.33 +version = 0.499.34 min_python = 3.7 audience = Developers language = English diff --git a/torch_snippets.egg-info/PKG-INFO b/torch_snippets.egg-info/PKG-INFO index 25891e0..46a6c34 100644 --- a/torch_snippets.egg-info/PKG-INFO +++ b/torch_snippets.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: torch-snippets -Version: 0.499.33 +Version: 0.499.34 Summary: One line functions for common tasks Home-page: https://github.com/sizhky/torch_snippets/tree/master/ Author: Yeshwanth Reddy diff --git a/torch_snippets/__init__.py b/torch_snippets/__init__.py index 9b76443..ad4269a 100644 --- a/torch_snippets/__init__.py +++ b/torch_snippets/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.499.33" +__version__ = "0.499.34" from .loader import * from .paths import * from .markup import * diff --git a/torch_snippets/adapters.py b/torch_snippets/adapters.py index 754705e..833b2f9 100644 --- a/torch_snippets/adapters.py +++ b/torch_snippets/adapters.py @@ -1,7 +1,15 @@ # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/adapters.ipynb. # %% auto 0 -__all__ = ['np_2_b64', 'b64_2_np', 'b64_2_file', 'bytes_2_file', 'file_2_bytes', 'csvs_2_cvat', 'cvat_2_csvs'] +__all__ = [ + "np_2_b64", + "b64_2_np", + "b64_2_file", + "bytes_2_file", + "file_2_bytes", + "csvs_2_cvat", + "cvat_2_csvs", +] # %% ../nbs/adapters.ipynb 2 import base64, cv2, numpy as np @@ -28,9 +36,9 @@ def b64_2_np(input: str) -> np.ndarray: def b64_2_file( - input: str, # base64 encoded string - fpath: Union[str, P] # Place where you want to save the file - ) -> None: + input: str, # base64 encoded string + fpath: Union[str, P], # Place where you want to save the file +) -> None: """Save a file encoded as a base64 `input` at given `fpath`""" with open(fpath, "wb") as pdf_file: input = bytes(input, "utf-8") @@ -42,7 +50,7 @@ def b64_2_file( def bytes_2_file( input: bytes, # bytes fpath: Union[str, P], # Place where you want to save the file - silent: bool = False + silent: bool = False, ) -> None: """Save bytes `input` at given `fpath`""" with open(fpath, "wb") as file_to_write: @@ -56,6 +64,7 @@ def file_2_bytes(fpath): output = f.read() return output + # %% ../nbs/adapters.ipynb 4 def _process( df: pd.DataFrame, label_column="readable_label", default_label="Background" @@ -69,7 +78,10 @@ def _process( df["@source"] = "manual" df["@z_order"] = "0" if "text" in df.columns: - df["attribute"] = [[{"@name": "OCR", "#text": text}] for text in df["text"]] + df["attribute"] = [ + [{"@name": "OCR", "#text": text if text == text else ""}] + for text in df["text"] + ] df.drop( [ c @@ -104,7 +116,7 @@ def csvs_2_cvat( parquet=False, relative_df=True, default_label="Background", - extension='jpg' + extension="jpg", ): images_folder, csvs_folder = [P(_) for _ in [images_folder, csvs_folder]] data = AttrDict({"annotations": {"image": []}}) @@ -161,7 +173,7 @@ def _get_attribute_data(item, column_name): def _cvat_ann_2_csv(ann): - if 'box' not in ann: + if "box" not in ann: return pd.DataFrame() if isinstance(ann.box, AttrDict): rows = [a.to_dict() for a in [ann.box]] @@ -203,5 +215,3 @@ def cvat_2_csvs(xmlfile, csvs_folder): df.to_csv(save_at, index=False) except Exception as e: Warn(f'{e} @ {item["@name"]}') - - diff --git a/torch_snippets/loader.py b/torch_snippets/loader.py index 3616c71..39290cb 100755 --- a/torch_snippets/loader.py +++ b/torch_snippets/loader.py @@ -95,6 +95,10 @@ __all__ += ["torch", "nn", "F", "Dataset", "DataLoader", "optim"] except: + Warn( + "Unable to load torch and dependent libraries from torch-snippets. \n" + "Functionalities might be limited. pip install lovely-tensors in case there are torch related errors" + ) ... import matplotlib # ; matplotlib.use('Agg') import matplotlib.pyplot as plt @@ -318,7 +322,6 @@ def show( try: if isinstance(img, (str, Path)): img = read(str(img), 1) - if isinstance(img, torch.Tensor): img = img.cpu().detach().numpy().copy() if isinstance(img, PIL.Image.Image): img = np.array(img)