halib 0.1.91__py3-none-any.whl → 0.1.99__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- halib/common.py +53 -10
- halib/filetype/ipynb.py +63 -0
- halib/filetype/yamlfile.py +23 -0
- halib/research/dataset.py +6 -7
- halib/research/flop_csv.py +34 -0
- halib/research/flops.py +156 -0
- halib/research/mics.py +52 -0
- halib/research/perfcalc.py +3 -3
- halib/research/perftb.py +2 -1
- halib/research/plot.py +480 -218
- halib/utils/video.py +6 -0
- {halib-0.1.91.dist-info → halib-0.1.99.dist-info}/METADATA +10 -2
- {halib-0.1.91.dist-info → halib-0.1.99.dist-info}/RECORD +16 -13
- {halib-0.1.91.dist-info → halib-0.1.99.dist-info}/WHEEL +0 -0
- {halib-0.1.91.dist-info → halib-0.1.99.dist-info}/licenses/LICENSE.txt +0 -0
- {halib-0.1.91.dist-info → halib-0.1.99.dist-info}/top_level.txt +0 -0
halib/utils/video.py
CHANGED
|
@@ -23,11 +23,17 @@ class VideoUtils:
|
|
|
23
23
|
# Get the FPS
|
|
24
24
|
fps = cap.get(cv2.CAP_PROP_FPS)
|
|
25
25
|
|
|
26
|
+
# get frame size
|
|
27
|
+
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
|
|
28
|
+
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
|
29
|
+
|
|
26
30
|
# Release the video capture object
|
|
27
31
|
cap.release()
|
|
28
32
|
|
|
29
33
|
meta_dict = {
|
|
30
34
|
"video_path": video_path,
|
|
35
|
+
"width": width,
|
|
36
|
+
"height": height,
|
|
31
37
|
"frame_count": frame_count,
|
|
32
38
|
"fps": fps
|
|
33
39
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: halib
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.99
|
|
4
4
|
Summary: Small library for common tasks
|
|
5
5
|
Author: Hoang Van Ha
|
|
6
6
|
Author-email: hoangvanhauit@gmail.com
|
|
@@ -40,6 +40,7 @@ Requires-Dist: timebudget
|
|
|
40
40
|
Requires-Dist: tqdm
|
|
41
41
|
Requires-Dist: tube_dl
|
|
42
42
|
Requires-Dist: wandb
|
|
43
|
+
Requires-Dist: ipynbname
|
|
43
44
|
Dynamic: author
|
|
44
45
|
Dynamic: author-email
|
|
45
46
|
Dynamic: classifier
|
|
@@ -50,7 +51,14 @@ Dynamic: requires-dist
|
|
|
50
51
|
Dynamic: requires-python
|
|
51
52
|
Dynamic: summary
|
|
52
53
|
|
|
53
|
-
Helper package for coding and automation
|
|
54
|
+
# Helper package for coding and automation
|
|
55
|
+
|
|
56
|
+
**Version 0.1.99**
|
|
57
|
+
+ `filetype/ipynb`: add `gen_ipynb_name` generator to create file name based on current notebook name as prefix (with optional timestamp)
|
|
58
|
+
|
|
59
|
+
**Version 0.1.96**
|
|
60
|
+
+ `research/plot`: add `PlotHelper` class to plot train history + plot grid of images (e.g., image samples from dataset or model outputs)
|
|
61
|
+
|
|
54
62
|
|
|
55
63
|
**Version 0.1.91**
|
|
56
64
|
+ `research/param_gen`: add `ParamGen` class to generate parameter list from yaml file for hyperparameter search (grid search, random search, etc.)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
halib/__init__.py,sha256=dHuxmYnZjeFT2VXuZU5yKX7c81XqcXX5tsKFtcaxkqI,1657
|
|
2
|
-
halib/common.py,sha256=
|
|
2
|
+
halib/common.py,sha256=9hn-IXOlGZODoBHy8U2A0aLgmPEnTeQjbzAVGwXAjwo,4242
|
|
3
3
|
halib/csvfile.py,sha256=Eoeni0NIbNG3mB5ESWAvNwhJxOjmCaPd1qqYRHImbvk,1567
|
|
4
4
|
halib/cuda.py,sha256=1bvtBY8QvTWdLaxalzK9wqXPl0Ft3AfhcrebupxGzEA,1010
|
|
5
5
|
halib/dataset.py,sha256=QU0Hr5QFb8_XlvnOMgC9QJGIpwXAZ9lDd0RdQi_QRec,6743
|
|
@@ -18,10 +18,11 @@ halib/torchloader.py,sha256=-q9YE-AoHZE1xQX2dgNxdqtucEXYs4sQ22WXdl6EGfI,6500
|
|
|
18
18
|
halib/videofile.py,sha256=NTLTZ-j6YD47duw2LN2p-lDQDglYFP1LpEU_0gzHLdI,4737
|
|
19
19
|
halib/filetype/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
halib/filetype/csvfile.py,sha256=4Klf8YNzY1MaCD3o5Wp5GG3KMfQIBOEVzHV_7DO5XBo,6604
|
|
21
|
+
halib/filetype/ipynb.py,sha256=hd1IxQmSdNyCT1WwteSmy6e_xFVpdEPC1jM0drr6ag4,1663
|
|
21
22
|
halib/filetype/jsonfile.py,sha256=9LBdM7LV9QgJA1bzJRkq69qpWOP22HDXPGirqXTgSCw,480
|
|
22
23
|
halib/filetype/textfile.py,sha256=QtuI5PdLxu4hAqSeafr3S8vCXwtvgipWV4Nkl7AzDYM,399
|
|
23
24
|
halib/filetype/videofile.py,sha256=4nfVAYYtoT76y8P4WYyxNna4Iv1o2iV6xaMcUzNPC4s,4736
|
|
24
|
-
halib/filetype/yamlfile.py,sha256=
|
|
25
|
+
halib/filetype/yamlfile.py,sha256=59P9cdqTx655XXeQtkmAJoR_UhhVN4L8Tro-kd8Ri5g,2741
|
|
25
26
|
halib/online/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
27
|
halib/online/gdrive.py,sha256=RmF4y6UPxektkKIctmfT-pKWZsBM9FVUeld6zZmJkp0,7787
|
|
27
28
|
halib/online/gdrive_mkdir.py,sha256=wSJkQMJCDuS1gxQ2lHQHq_IrJ4xR_SEoPSo9n_2WNFU,1474
|
|
@@ -31,13 +32,15 @@ halib/research/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
31
32
|
halib/research/base_config.py,sha256=AqZHZ0NNQ3WmUOfRzs36lf3o0FrehSdVLbdmgNpbV7A,2833
|
|
32
33
|
halib/research/base_exp.py,sha256=hiO2flt_I0iJJ4bWcQwyh2ISezoC8t2k3PtxHeVr0eI,3278
|
|
33
34
|
halib/research/benchquery.py,sha256=FuKnbWQtCEoRRtJAfN-zaN-jPiO_EzsakmTOMiqi7GQ,4626
|
|
34
|
-
halib/research/dataset.py,sha256=
|
|
35
|
+
halib/research/dataset.py,sha256=avMRM9Jk3tq0P7iX1Jq-kq5d_3en3lcUlAy1dAtGSEU,6734
|
|
36
|
+
halib/research/flop_csv.py,sha256=JeIUWgPFmhkPqvmhe-MLwwvAu9yR5F2k3qaViJCJJD4,1148
|
|
37
|
+
halib/research/flops.py,sha256=Us0VudX8QMOm7YenICGf-Tq57C_l9x9hj-MUGA8_hCg,5773
|
|
35
38
|
halib/research/metrics.py,sha256=PXPCy8r1_0lpMKfjc5SjIpRHnX80gHmeZ1C4eVj9U_s,5200
|
|
36
|
-
halib/research/mics.py,sha256=
|
|
39
|
+
halib/research/mics.py,sha256=nZyric8d0yKP5HrwwLsN4AjszrdxAhpJCRo1oy-EKJI,2612
|
|
37
40
|
halib/research/params_gen.py,sha256=GcTMlniL0iE3HalJY-gVRiYa8Qy8u6nX4LkKZeMkct8,4262
|
|
38
|
-
halib/research/perfcalc.py,sha256=
|
|
39
|
-
halib/research/perftb.py,sha256=
|
|
40
|
-
halib/research/plot.py,sha256=
|
|
41
|
+
halib/research/perfcalc.py,sha256=G8WpGB95AY5KQCt0__bPK1yUa2M1onNhXLM7twkElxg,15904
|
|
42
|
+
halib/research/perftb.py,sha256=YlBXMeWn8S0LhsgxONEQZrKomRTju2T8QGGspUOy_6Y,31100
|
|
43
|
+
halib/research/plot.py,sha256=GBCXP1QnzRlNqjAl9UvGvW3I9II61DBStJNQThrLy38,28578
|
|
41
44
|
halib/research/profiler.py,sha256=GRAewTo0jGkOputjmRwtYVfJYBze_ivsOnrW9exWkPQ,11772
|
|
42
45
|
halib/research/torchloader.py,sha256=yqUjcSiME6H5W210363HyRUrOi3ISpUFAFkTr1w4DCw,6503
|
|
43
46
|
halib/research/wandb_op.py,sha256=YzLEqME5kIRxi3VvjFkW83wnFrsn92oYeqYuNwtYRkY,4188
|
|
@@ -53,9 +56,9 @@ halib/utils/dict_op.py,sha256=wYE6Iw-_CnCWdMg9tpJ2Y2-e2ESkW9FxmdBkZkbUh80,299
|
|
|
53
56
|
halib/utils/gpu_mon.py,sha256=vD41_ZnmPLKguuq9X44SB_vwd9JrblO4BDzHLXZhhFY,2233
|
|
54
57
|
halib/utils/listop.py,sha256=Vpa8_2fI0wySpB2-8sfTBkyi_A4FhoFVVvFiuvW8N64,339
|
|
55
58
|
halib/utils/tele_noti.py,sha256=-4WXZelCA4W9BroapkRyIdUu9cUVrcJJhegnMs_WpGU,5928
|
|
56
|
-
halib/utils/video.py,sha256=
|
|
57
|
-
halib-0.1.
|
|
58
|
-
halib-0.1.
|
|
59
|
-
halib-0.1.
|
|
60
|
-
halib-0.1.
|
|
61
|
-
halib-0.1.
|
|
59
|
+
halib/utils/video.py,sha256=zLoj5EHk4SmP9OnoHjO8mLbzPdtq6gQPzTQisOEDdO8,3261
|
|
60
|
+
halib-0.1.99.dist-info/licenses/LICENSE.txt,sha256=qZssdna4aETiR8znYsShUjidu-U4jUT9Q-EWNlZ9yBQ,1100
|
|
61
|
+
halib-0.1.99.dist-info/METADATA,sha256=1v3WnxBK6Aj36jA7tIycuFGQwJs19uLMi_EhSMpvmaU,6387
|
|
62
|
+
halib-0.1.99.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
63
|
+
halib-0.1.99.dist-info/top_level.txt,sha256=7AD6PLaQTreE0Fn44mdZsoHBe_Zdd7GUmjsWPyQ7I-k,6
|
|
64
|
+
halib-0.1.99.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|