Diwank Singh Tomer commited on
Commit
199bd97
β€’
1 Parent(s): 6117d42

redo: Script files

Browse files

Signed-off-by: Diwank Singh Tomer <diwank.singh@gmail.com>

.gitignore CHANGED
@@ -1,6 +1,5 @@
1
  # raw data
2
  raw/
3
- data/
4
 
5
  # Byte-compiled / optimized / DLL files
6
  __pycache__/
1
  # raw data
2
  raw/
 
3
 
4
  # Byte-compiled / optimized / DLL files
5
  __pycache__/
lld_logos.py β†’ lld.py RENAMED
@@ -26,8 +26,6 @@ class LLD(ds.GeneratorBasedBuilder):
26
  """LLD Images dataset."""
27
 
28
  def _info(self):
29
- print("_info(self):")
30
- import pdb; pdb.set_trace()
31
  return ds.DatasetInfo(
32
  description=_DESCRIPTION,
33
  features=ds.Features(
@@ -43,8 +41,6 @@ class LLD(ds.GeneratorBasedBuilder):
43
  )
44
 
45
  def _split_generators(self, dl_manager):
46
- print("_split_generators(self, dl_manager):")
47
- import pdb; pdb.set_trace()
48
  # Load dataframe
49
  use_local = os.environ.get("USE_LOCAL")
50
  archive_path = (
@@ -74,8 +70,6 @@ class LLD(ds.GeneratorBasedBuilder):
74
  ]
75
 
76
  def _generate_examples(self, description, images):
77
- print("_generate_examples(self, description, images):")
78
- import pdb; pdb.set_trace()
79
  """Generate images and description splits."""
80
 
81
  for i, (desc, imgs) in enumerate(zip(description.values, images.values)):
26
  """LLD Images dataset."""
27
 
28
  def _info(self):
 
 
29
  return ds.DatasetInfo(
30
  description=_DESCRIPTION,
31
  features=ds.Features(
41
  )
42
 
43
  def _split_generators(self, dl_manager):
 
 
44
  # Load dataframe
45
  use_local = os.environ.get("USE_LOCAL")
46
  archive_path = (
70
  ]
71
 
72
  def _generate_examples(self, description, images):
 
 
73
  """Generate images and description splits."""
74
 
75
  for i, (desc, imgs) in enumerate(zip(description.values, images.values)):
{lld β†’ lld_data}/__init__.py RENAMED
@@ -1,2 +1 @@
1
  # /usr/bin/env python3
2
- # llg/__init__.py
1
  # /usr/bin/env python3
 
{lld β†’ lld_data}/crawler.py RENAMED
File without changes
{lld β†’ lld_data}/loader.py RENAMED
File without changes
{lld β†’ lld_data}/preprocess.py RENAMED
File without changes
poetry.lock CHANGED
@@ -1028,6 +1028,35 @@ category = "main"
1028
  optional = false
1029
  python-versions = ">=3.5"
1030
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1031
  [[package]]
1032
  name = "tornado"
1033
  version = "6.2"
@@ -1135,7 +1164,7 @@ heapdict = "*"
1135
  [metadata]
1136
  lock-version = "1.1"
1137
  python-versions = ">=3.10,<3.11"
1138
- content-hash = "ebfc659f0dac7f7b70f1533416f7e76ea3e1b56ce81bc072fe196357c22d82c5"
1139
 
1140
  [metadata.files]
1141
  aiodns = []
@@ -1639,6 +1668,29 @@ tblib = []
1639
  threadpoolctl = []
1640
  tomli = []
1641
  toolz = []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1642
  tornado = []
1643
  tqdm = [
1644
  {file = "tqdm-4.64.0-py2.py3-none-any.whl", hash = "sha256:74a2cdefe14d11442cedf3ba4e21a3b84ff9a2dbdc6cfae2c34addb2a14a5ea6"},
1028
  optional = false
1029
  python-versions = ">=3.5"
1030
 
1031
+ [[package]]
1032
+ name = "torch"
1033
+ version = "1.12.0"
1034
+ description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
1035
+ category = "main"
1036
+ optional = false
1037
+ python-versions = ">=3.7.0"
1038
+
1039
+ [package.dependencies]
1040
+ typing-extensions = "*"
1041
+
1042
+ [[package]]
1043
+ name = "torchvision"
1044
+ version = "0.13.0"
1045
+ description = "image and video datasets and models for torch deep learning"
1046
+ category = "main"
1047
+ optional = false
1048
+ python-versions = ">=3.7"
1049
+
1050
+ [package.dependencies]
1051
+ numpy = "*"
1052
+ pillow = ">=5.3.0,<8.3.0 || >=8.4.0"
1053
+ requests = "*"
1054
+ torch = "1.12.0"
1055
+ typing-extensions = "*"
1056
+
1057
+ [package.extras]
1058
+ scipy = ["scipy"]
1059
+
1060
  [[package]]
1061
  name = "tornado"
1062
  version = "6.2"
1164
  [metadata]
1165
  lock-version = "1.1"
1166
  python-versions = ">=3.10,<3.11"
1167
+ content-hash = "bb04526237f443633a3a435efac16927d98c1191b9924624123166c4b74213ba"
1168
 
1169
  [metadata.files]
1170
  aiodns = []
1668
  threadpoolctl = []
1669
  tomli = []
1670
  toolz = []
1671
+ torch = [
1672
+ {file = "torch-1.12.0-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:3322d33a06e440d715bb214334bd41314c94632d9a2f07d22006bf21da3a2be4"},
1673
+ {file = "torch-1.12.0-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:2568f011dddeb5990d8698cc375d237f14568ffa8489854e3b94113b4b6b7c8b"},
1674
+ {file = "torch-1.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:e3e8348edca3e3cee5a67a2b452b85c57712efe1cc3ffdb87c128b3dde54534e"},
1675
+ {file = "torch-1.12.0-cp310-none-macosx_10_9_x86_64.whl", hash = "sha256:349ea3ba0c0e789e0507876c023181f13b35307aebc2e771efd0e045b8e03e84"},
1676
+ {file = "torch-1.12.0-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:13c7cca6b2ea3704d775444f02af53c5f072d145247e17b8cd7813ac57869f03"},
1677
+ {file = "torch-1.12.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:60d06ee2abfa85f10582d205404d52889d69bcbb71f7e211cfc37e3957ac19ca"},
1678
+ {file = "torch-1.12.0-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:a1325c9c28823af497cbf443369bddac9ac59f67f1e600f8ab9b754958e55b76"},
1679
+ {file = "torch-1.12.0-cp37-cp37m-win_amd64.whl", hash = "sha256:fb47291596677570246d723ee6abbcbac07eeba89d8f83de31e3954f21f44879"},
1680
+ {file = "torch-1.12.0-cp37-none-macosx_10_9_x86_64.whl", hash = "sha256:abbdc5483359b9495dc76e3bd7911ccd2ddc57706c117f8316832e31590af871"},
1681
+ {file = "torch-1.12.0-cp37-none-macosx_11_0_arm64.whl", hash = "sha256:72207b8733523388c49d43ffcc4416d1d8cd64c40f7826332e714605ace9b1d2"},
1682
+ {file = "torch-1.12.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:0986685f2ec8b7c4d3593e8cfe96be85d462943f1a8f54112fc48d4d9fbbe903"},
1683
+ {file = "torch-1.12.0-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:0399746f83b4541bcb5b219a18dbe8cade760aba1c660d2748a38c6dc338ebc7"},
1684
+ {file = "torch-1.12.0-cp38-cp38-win_amd64.whl", hash = "sha256:7ddb167827170c4e3ff6a27157414a00b9fef93dea175da04caf92a0619b7aee"},
1685
+ {file = "torch-1.12.0-cp38-none-macosx_10_9_x86_64.whl", hash = "sha256:2143d5fe192fd908b70b494349de5b1ac02854a8a902bd5f47d13d85b410e430"},
1686
+ {file = "torch-1.12.0-cp38-none-macosx_11_0_arm64.whl", hash = "sha256:44a3804e9bb189574f5d02ccc2dc6e32e26a81b3e095463b7067b786048c6072"},
1687
+ {file = "torch-1.12.0-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:844f1db41173b53fe40c44b3e04fcca23a6ce00ac328b7099f2800e611766845"},
1688
+ {file = "torch-1.12.0-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:63341f96840a223f277e498d2737b39da30d9f57c7a1ef88857b920096317739"},
1689
+ {file = "torch-1.12.0-cp39-cp39-win_amd64.whl", hash = "sha256:201abf43a99bb4980cc827dd4b38ac28f35e4dddac7832718be3d5479cafd2c1"},
1690
+ {file = "torch-1.12.0-cp39-none-macosx_10_9_x86_64.whl", hash = "sha256:c0313438bc36448ffd209f5fb4e5f325b3af158cdf61c8829b8ddaf128c57816"},
1691
+ {file = "torch-1.12.0-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:5ed69d5af232c5c3287d44cef998880dadcc9721cd020e9ae02f42e56b79c2e4"},
1692
+ ]
1693
+ torchvision = []
1694
  tornado = []
1695
  tqdm = [
1696
  {file = "tqdm-4.64.0-py2.py3-none-any.whl", hash = "sha256:74a2cdefe14d11442cedf3ba4e21a3b84ff9a2dbdc6cfae2c34addb2a14a5ea6"},
pyproject.toml CHANGED
@@ -24,6 +24,8 @@ modin = {extras = ["dask"], version = "^0.15.2"}
24
  aiostream = "^0.4.4"
25
  scipy = "^1.8.1"
26
  scikit-learn = "^1.1.1"
 
 
27
 
28
  [tool.poetry.dev-dependencies]
29
  ipython = "^8.4.0"
24
  aiostream = "^0.4.4"
25
  scipy = "^1.8.1"
26
  scikit-learn = "^1.1.1"
27
+ huggingface-hub = "^0.8.1"
28
+ torchvision = "^0.13.0"
29
 
30
  [tool.poetry.dev-dependencies]
31
  ipython = "^8.4.0"