describealign 1.1.1__py3-none-any.whl → 1.1.2__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: describealign
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: Combines videos with matching audio files (e.g. audio descriptions)
5
5
  Author-email: Julian Brown <julbean@proton.me>
6
6
  Project-URL: Homepage, https://github.com/julbean/describealign
@@ -22,6 +22,7 @@ Requires-Dist: pytsmod~=0.3.7
22
22
  Requires-Dist: PySimpleGUIWx~=0.17.2; platform_system == "Windows"
23
23
  Requires-Dist: PySimpleGUIQt~=0.35.0; platform_system != "Windows"
24
24
  Requires-Dist: PySide2~=5.15; platform_system != "Windows"
25
+ Dynamic: license-file
25
26
 
26
27
  For usage help, simply run the script directly.
27
28
  If the Scripts folder has been added to PATH, can be run
@@ -0,0 +1,7 @@
1
+ describealign.py,sha256=d_FI6sjNtUheWmo5GcO28TkqboBAyBau_00162my3VY,69899
2
+ describealign-1.1.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
+ describealign-1.1.2.dist-info/METADATA,sha256=L_BeZa79bhZNEUbMjkuE35IbRzgIu6R7LEKjl2Jqc7I,1295
4
+ describealign-1.1.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
+ describealign-1.1.2.dist-info/entry_points.txt,sha256=7o7N6v3r4vFIH_XBdgk7WWhr-vZ_YitY8JWMdzN5xU0,71
6
+ describealign-1.1.2.dist-info/top_level.txt,sha256=VYHWy4TeimBAF5BQAuDj4adGdLaWs2AoYx6qQjGPJ4M,14
7
+ describealign-1.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
describealign.py CHANGED
@@ -380,7 +380,10 @@ def smooth_align(path, quals, smoothness):
380
380
  -scipy.sparse.eye(num_fit_points)])
381
381
  b_eq = y_diffs[1: ] / x_diffs[1: ] - \
382
382
  y_diffs[ :-1] / x_diffs[ :-1]
383
- fit = scipy.optimize.linprog(c, A_eq=A_eq, b_eq=b_eq)
383
+ fit = scipy.optimize.linprog(c, A_eq=A_eq, b_eq=b_eq, method='highs-ds')
384
+ # if dual simplex solver encounters numerical problems, retry with interior point solver
385
+ if not fit.success and fit.status == 4:
386
+ fit = scipy.optimize.linprog(c, A_eq=A_eq, b_eq=b_eq, method='highs-ipm')
384
387
  if not fit.success:
385
388
  print(fit)
386
389
  raise RuntimeError("Smooth Alignment L1-Min Optimization Failed!")
@@ -668,7 +671,10 @@ def detect_describer(video_arr, video_spec, video_spec_raw, video_timings,
668
671
  scipy.sparse.eye(num_fit_points-1),
669
672
  -scipy.sparse.eye(num_fit_points-1)])
670
673
  b_eq = y_diffs
671
- fit = scipy.optimize.linprog(c, A_eq=A_eq, b_eq=b_eq)
674
+ fit = scipy.optimize.linprog(c, A_eq=A_eq, b_eq=b_eq, method='highs-ds')
675
+ # if dual simplex solver encounters numerical problems, retry with interior point solver
676
+ if not fit.success and fit.status == 4:
677
+ fit = scipy.optimize.linprog(c, A_eq=A_eq, b_eq=b_eq, method='highs-ipm')
672
678
  if not fit.success:
673
679
  print(fit)
674
680
  raise RuntimeError("Describer Voice Detection L1-Min Optimization Failed!")
@@ -1,7 +0,0 @@
1
- describealign.py,sha256=pn7vyyQaq6D-xanF9YL3-phYaeGHQMHHH9wiNWC8M6A,69439
2
- describealign-1.1.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
- describealign-1.1.1.dist-info/METADATA,sha256=0p6pNV7U1JmkNqTypD4UIXl-pYljMoVzK-2efKA5AqI,1272
4
- describealign-1.1.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
5
- describealign-1.1.1.dist-info/entry_points.txt,sha256=7o7N6v3r4vFIH_XBdgk7WWhr-vZ_YitY8JWMdzN5xU0,71
6
- describealign-1.1.1.dist-info/top_level.txt,sha256=VYHWy4TeimBAF5BQAuDj4adGdLaWs2AoYx6qQjGPJ4M,14
7
- describealign-1.1.1.dist-info/RECORD,,