Spaces:
Sleeping
Sleeping
Sean Carnahan
commited on
Commit
·
f20fe1f
1
Parent(s):
376ee7c
Patch for Hugging Face Spaces: fix matplotlib config, check .gitignore, prep for model file inclusion
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .DS_Store +0 -0
- .venv/bin/Activate.ps1 +247 -0
- .venv/bin/activate +69 -0
- .venv/bin/activate.csh +26 -0
- .venv/bin/activate.fish +69 -0
- .venv/bin/f2py +8 -0
- .venv/bin/flask +8 -0
- .venv/bin/fonttools +8 -0
- .venv/bin/futurize +8 -0
- .venv/bin/import_pb_to_tensorboard +8 -0
- .venv/bin/isympy +8 -0
- .venv/bin/markdown-it +8 -0
- .venv/bin/markdown_py +8 -0
- .venv/bin/normalizer +8 -0
- .venv/bin/pasteurize +8 -0
- .venv/bin/pip +8 -0
- .venv/bin/pip3 +8 -0
- .venv/bin/pip3.10 +8 -0
- .venv/bin/pyftmerge +8 -0
- .venv/bin/pyftsubset +8 -0
- .venv/bin/pygmentize +8 -0
- .venv/bin/python +1 -0
- .venv/bin/python3 +1 -0
- .venv/bin/python3.10 +1 -0
- .venv/bin/saved_model_cli +8 -0
- .venv/bin/tensorboard +8 -0
- .venv/bin/tf_upgrade_v2 +8 -0
- .venv/bin/tflite_convert +8 -0
- .venv/bin/toco +8 -0
- .venv/bin/torchfrtrace +8 -0
- .venv/bin/torchrun +8 -0
- .venv/bin/tqdm +8 -0
- .venv/bin/ttx +8 -0
- .venv/bin/wheel +8 -0
- .venv/bin/yt-dlp +8 -0
- .venv/pyvenv.cfg +3 -0
- .venv/share/bash-completion/completions/yt-dlp +29 -0
- .venv/share/doc/yt_dlp/README.txt +0 -0
- .venv/share/fish/vendor_completions.d/yt-dlp.fish +315 -0
- .venv/share/man/man1/isympy.1 +188 -0
- .venv/share/man/man1/ttx.1 +225 -0
- .venv/share/man/man1/yt-dlp.1 +0 -0
- .venv/share/zsh/site-functions/_yt-dlp +30 -0
- HF_Deploy/.DS_Store +0 -0
- HF_Deploy/README.md +35 -0
- HF_Deploy/app.py +272 -0
- HF_Deploy/bodybuilding_pose_analyzer/.DS_Store +0 -0
- HF_Deploy/bodybuilding_pose_analyzer/README.md +63 -0
- HF_Deploy/bodybuilding_pose_analyzer/requirements.txt +8 -0
- HF_Deploy/bodybuilding_pose_analyzer/src/demo.py +80 -0
.DS_Store
ADDED
Binary file (8.2 kB). View file
|
|
.venv/bin/Activate.ps1
ADDED
@@ -0,0 +1,247 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<#
|
2 |
+
.Synopsis
|
3 |
+
Activate a Python virtual environment for the current PowerShell session.
|
4 |
+
|
5 |
+
.Description
|
6 |
+
Pushes the python executable for a virtual environment to the front of the
|
7 |
+
$Env:PATH environment variable and sets the prompt to signify that you are
|
8 |
+
in a Python virtual environment. Makes use of the command line switches as
|
9 |
+
well as the `pyvenv.cfg` file values present in the virtual environment.
|
10 |
+
|
11 |
+
.Parameter VenvDir
|
12 |
+
Path to the directory that contains the virtual environment to activate. The
|
13 |
+
default value for this is the parent of the directory that the Activate.ps1
|
14 |
+
script is located within.
|
15 |
+
|
16 |
+
.Parameter Prompt
|
17 |
+
The prompt prefix to display when this virtual environment is activated. By
|
18 |
+
default, this prompt is the name of the virtual environment folder (VenvDir)
|
19 |
+
surrounded by parentheses and followed by a single space (ie. '(.venv) ').
|
20 |
+
|
21 |
+
.Example
|
22 |
+
Activate.ps1
|
23 |
+
Activates the Python virtual environment that contains the Activate.ps1 script.
|
24 |
+
|
25 |
+
.Example
|
26 |
+
Activate.ps1 -Verbose
|
27 |
+
Activates the Python virtual environment that contains the Activate.ps1 script,
|
28 |
+
and shows extra information about the activation as it executes.
|
29 |
+
|
30 |
+
.Example
|
31 |
+
Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
|
32 |
+
Activates the Python virtual environment located in the specified location.
|
33 |
+
|
34 |
+
.Example
|
35 |
+
Activate.ps1 -Prompt "MyPython"
|
36 |
+
Activates the Python virtual environment that contains the Activate.ps1 script,
|
37 |
+
and prefixes the current prompt with the specified string (surrounded in
|
38 |
+
parentheses) while the virtual environment is active.
|
39 |
+
|
40 |
+
.Notes
|
41 |
+
On Windows, it may be required to enable this Activate.ps1 script by setting the
|
42 |
+
execution policy for the user. You can do this by issuing the following PowerShell
|
43 |
+
command:
|
44 |
+
|
45 |
+
PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
46 |
+
|
47 |
+
For more information on Execution Policies:
|
48 |
+
https://go.microsoft.com/fwlink/?LinkID=135170
|
49 |
+
|
50 |
+
#>
|
51 |
+
Param(
|
52 |
+
[Parameter(Mandatory = $false)]
|
53 |
+
[String]
|
54 |
+
$VenvDir,
|
55 |
+
[Parameter(Mandatory = $false)]
|
56 |
+
[String]
|
57 |
+
$Prompt
|
58 |
+
)
|
59 |
+
|
60 |
+
<# Function declarations --------------------------------------------------- #>
|
61 |
+
|
62 |
+
<#
|
63 |
+
.Synopsis
|
64 |
+
Remove all shell session elements added by the Activate script, including the
|
65 |
+
addition of the virtual environment's Python executable from the beginning of
|
66 |
+
the PATH variable.
|
67 |
+
|
68 |
+
.Parameter NonDestructive
|
69 |
+
If present, do not remove this function from the global namespace for the
|
70 |
+
session.
|
71 |
+
|
72 |
+
#>
|
73 |
+
function global:deactivate ([switch]$NonDestructive) {
|
74 |
+
# Revert to original values
|
75 |
+
|
76 |
+
# The prior prompt:
|
77 |
+
if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
|
78 |
+
Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
|
79 |
+
Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
|
80 |
+
}
|
81 |
+
|
82 |
+
# The prior PYTHONHOME:
|
83 |
+
if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
|
84 |
+
Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
|
85 |
+
Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
|
86 |
+
}
|
87 |
+
|
88 |
+
# The prior PATH:
|
89 |
+
if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
|
90 |
+
Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
|
91 |
+
Remove-Item -Path Env:_OLD_VIRTUAL_PATH
|
92 |
+
}
|
93 |
+
|
94 |
+
# Just remove the VIRTUAL_ENV altogether:
|
95 |
+
if (Test-Path -Path Env:VIRTUAL_ENV) {
|
96 |
+
Remove-Item -Path env:VIRTUAL_ENV
|
97 |
+
}
|
98 |
+
|
99 |
+
# Just remove VIRTUAL_ENV_PROMPT altogether.
|
100 |
+
if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {
|
101 |
+
Remove-Item -Path env:VIRTUAL_ENV_PROMPT
|
102 |
+
}
|
103 |
+
|
104 |
+
# Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
|
105 |
+
if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
|
106 |
+
Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
|
107 |
+
}
|
108 |
+
|
109 |
+
# Leave deactivate function in the global namespace if requested:
|
110 |
+
if (-not $NonDestructive) {
|
111 |
+
Remove-Item -Path function:deactivate
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
+
<#
|
116 |
+
.Description
|
117 |
+
Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
|
118 |
+
given folder, and returns them in a map.
|
119 |
+
|
120 |
+
For each line in the pyvenv.cfg file, if that line can be parsed into exactly
|
121 |
+
two strings separated by `=` (with any amount of whitespace surrounding the =)
|
122 |
+
then it is considered a `key = value` line. The left hand string is the key,
|
123 |
+
the right hand is the value.
|
124 |
+
|
125 |
+
If the value starts with a `'` or a `"` then the first and last character is
|
126 |
+
stripped from the value before being captured.
|
127 |
+
|
128 |
+
.Parameter ConfigDir
|
129 |
+
Path to the directory that contains the `pyvenv.cfg` file.
|
130 |
+
#>
|
131 |
+
function Get-PyVenvConfig(
|
132 |
+
[String]
|
133 |
+
$ConfigDir
|
134 |
+
) {
|
135 |
+
Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
|
136 |
+
|
137 |
+
# Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
|
138 |
+
$pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
|
139 |
+
|
140 |
+
# An empty map will be returned if no config file is found.
|
141 |
+
$pyvenvConfig = @{ }
|
142 |
+
|
143 |
+
if ($pyvenvConfigPath) {
|
144 |
+
|
145 |
+
Write-Verbose "File exists, parse `key = value` lines"
|
146 |
+
$pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
|
147 |
+
|
148 |
+
$pyvenvConfigContent | ForEach-Object {
|
149 |
+
$keyval = $PSItem -split "\s*=\s*", 2
|
150 |
+
if ($keyval[0] -and $keyval[1]) {
|
151 |
+
$val = $keyval[1]
|
152 |
+
|
153 |
+
# Remove extraneous quotations around a string value.
|
154 |
+
if ("'""".Contains($val.Substring(0, 1))) {
|
155 |
+
$val = $val.Substring(1, $val.Length - 2)
|
156 |
+
}
|
157 |
+
|
158 |
+
$pyvenvConfig[$keyval[0]] = $val
|
159 |
+
Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
return $pyvenvConfig
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
<# Begin Activate script --------------------------------------------------- #>
|
168 |
+
|
169 |
+
# Determine the containing directory of this script
|
170 |
+
$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
171 |
+
$VenvExecDir = Get-Item -Path $VenvExecPath
|
172 |
+
|
173 |
+
Write-Verbose "Activation script is located in path: '$VenvExecPath'"
|
174 |
+
Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
|
175 |
+
Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
|
176 |
+
|
177 |
+
# Set values required in priority: CmdLine, ConfigFile, Default
|
178 |
+
# First, get the location of the virtual environment, it might not be
|
179 |
+
# VenvExecDir if specified on the command line.
|
180 |
+
if ($VenvDir) {
|
181 |
+
Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
|
182 |
+
}
|
183 |
+
else {
|
184 |
+
Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
|
185 |
+
$VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
|
186 |
+
Write-Verbose "VenvDir=$VenvDir"
|
187 |
+
}
|
188 |
+
|
189 |
+
# Next, read the `pyvenv.cfg` file to determine any required value such
|
190 |
+
# as `prompt`.
|
191 |
+
$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
|
192 |
+
|
193 |
+
# Next, set the prompt from the command line, or the config file, or
|
194 |
+
# just use the name of the virtual environment folder.
|
195 |
+
if ($Prompt) {
|
196 |
+
Write-Verbose "Prompt specified as argument, using '$Prompt'"
|
197 |
+
}
|
198 |
+
else {
|
199 |
+
Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
|
200 |
+
if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
|
201 |
+
Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
|
202 |
+
$Prompt = $pyvenvCfg['prompt'];
|
203 |
+
}
|
204 |
+
else {
|
205 |
+
Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
|
206 |
+
Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
|
207 |
+
$Prompt = Split-Path -Path $venvDir -Leaf
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
Write-Verbose "Prompt = '$Prompt'"
|
212 |
+
Write-Verbose "VenvDir='$VenvDir'"
|
213 |
+
|
214 |
+
# Deactivate any currently active virtual environment, but leave the
|
215 |
+
# deactivate function in place.
|
216 |
+
deactivate -nondestructive
|
217 |
+
|
218 |
+
# Now set the environment variable VIRTUAL_ENV, used by many tools to determine
|
219 |
+
# that there is an activated venv.
|
220 |
+
$env:VIRTUAL_ENV = $VenvDir
|
221 |
+
|
222 |
+
if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
223 |
+
|
224 |
+
Write-Verbose "Setting prompt to '$Prompt'"
|
225 |
+
|
226 |
+
# Set the prompt to include the env name
|
227 |
+
# Make sure _OLD_VIRTUAL_PROMPT is global
|
228 |
+
function global:_OLD_VIRTUAL_PROMPT { "" }
|
229 |
+
Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
|
230 |
+
New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
|
231 |
+
|
232 |
+
function global:prompt {
|
233 |
+
Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
|
234 |
+
_OLD_VIRTUAL_PROMPT
|
235 |
+
}
|
236 |
+
$env:VIRTUAL_ENV_PROMPT = $Prompt
|
237 |
+
}
|
238 |
+
|
239 |
+
# Clear PYTHONHOME
|
240 |
+
if (Test-Path -Path Env:PYTHONHOME) {
|
241 |
+
Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
|
242 |
+
Remove-Item -Path Env:PYTHONHOME
|
243 |
+
}
|
244 |
+
|
245 |
+
# Add the venv to the PATH
|
246 |
+
Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
|
247 |
+
$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
|
.venv/bin/activate
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used with "source bin/activate" *from bash*
|
2 |
+
# you cannot run it directly
|
3 |
+
|
4 |
+
deactivate () {
|
5 |
+
# reset old environment variables
|
6 |
+
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
|
7 |
+
PATH="${_OLD_VIRTUAL_PATH:-}"
|
8 |
+
export PATH
|
9 |
+
unset _OLD_VIRTUAL_PATH
|
10 |
+
fi
|
11 |
+
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
|
12 |
+
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
|
13 |
+
export PYTHONHOME
|
14 |
+
unset _OLD_VIRTUAL_PYTHONHOME
|
15 |
+
fi
|
16 |
+
|
17 |
+
# This should detect bash and zsh, which have a hash command that must
|
18 |
+
# be called to get it to forget past commands. Without forgetting
|
19 |
+
# past commands the $PATH changes we made may not be respected
|
20 |
+
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
21 |
+
hash -r 2> /dev/null
|
22 |
+
fi
|
23 |
+
|
24 |
+
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
|
25 |
+
PS1="${_OLD_VIRTUAL_PS1:-}"
|
26 |
+
export PS1
|
27 |
+
unset _OLD_VIRTUAL_PS1
|
28 |
+
fi
|
29 |
+
|
30 |
+
unset VIRTUAL_ENV
|
31 |
+
unset VIRTUAL_ENV_PROMPT
|
32 |
+
if [ ! "${1:-}" = "nondestructive" ] ; then
|
33 |
+
# Self destruct!
|
34 |
+
unset -f deactivate
|
35 |
+
fi
|
36 |
+
}
|
37 |
+
|
38 |
+
# unset irrelevant variables
|
39 |
+
deactivate nondestructive
|
40 |
+
|
41 |
+
VIRTUAL_ENV="/Users/sc-gladiator/cv.github.io/.venv"
|
42 |
+
export VIRTUAL_ENV
|
43 |
+
|
44 |
+
_OLD_VIRTUAL_PATH="$PATH"
|
45 |
+
PATH="$VIRTUAL_ENV/bin:$PATH"
|
46 |
+
export PATH
|
47 |
+
|
48 |
+
# unset PYTHONHOME if set
|
49 |
+
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
|
50 |
+
# could use `if (set -u; : $PYTHONHOME) ;` in bash
|
51 |
+
if [ -n "${PYTHONHOME:-}" ] ; then
|
52 |
+
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
|
53 |
+
unset PYTHONHOME
|
54 |
+
fi
|
55 |
+
|
56 |
+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
|
57 |
+
_OLD_VIRTUAL_PS1="${PS1:-}"
|
58 |
+
PS1="(.venv) ${PS1:-}"
|
59 |
+
export PS1
|
60 |
+
VIRTUAL_ENV_PROMPT="(.venv) "
|
61 |
+
export VIRTUAL_ENV_PROMPT
|
62 |
+
fi
|
63 |
+
|
64 |
+
# This should detect bash and zsh, which have a hash command that must
|
65 |
+
# be called to get it to forget past commands. Without forgetting
|
66 |
+
# past commands the $PATH changes we made may not be respected
|
67 |
+
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
68 |
+
hash -r 2> /dev/null
|
69 |
+
fi
|
.venv/bin/activate.csh
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used with "source bin/activate.csh" *from csh*.
|
2 |
+
# You cannot run it directly.
|
3 |
+
# Created by Davide Di Blasi <[email protected]>.
|
4 |
+
# Ported to Python 3.3 venv by Andrew Svetlov <[email protected]>
|
5 |
+
|
6 |
+
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate'
|
7 |
+
|
8 |
+
# Unset irrelevant variables.
|
9 |
+
deactivate nondestructive
|
10 |
+
|
11 |
+
setenv VIRTUAL_ENV "/Users/sc-gladiator/cv.github.io/.venv"
|
12 |
+
|
13 |
+
set _OLD_VIRTUAL_PATH="$PATH"
|
14 |
+
setenv PATH "$VIRTUAL_ENV/bin:$PATH"
|
15 |
+
|
16 |
+
|
17 |
+
set _OLD_VIRTUAL_PROMPT="$prompt"
|
18 |
+
|
19 |
+
if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
|
20 |
+
set prompt = "(.venv) $prompt"
|
21 |
+
setenv VIRTUAL_ENV_PROMPT "(.venv) "
|
22 |
+
endif
|
23 |
+
|
24 |
+
alias pydoc python -m pydoc
|
25 |
+
|
26 |
+
rehash
|
.venv/bin/activate.fish
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used with "source <venv>/bin/activate.fish" *from fish*
|
2 |
+
# (https://fishshell.com/); you cannot run it directly.
|
3 |
+
|
4 |
+
function deactivate -d "Exit virtual environment and return to normal shell environment"
|
5 |
+
# reset old environment variables
|
6 |
+
if test -n "$_OLD_VIRTUAL_PATH"
|
7 |
+
set -gx PATH $_OLD_VIRTUAL_PATH
|
8 |
+
set -e _OLD_VIRTUAL_PATH
|
9 |
+
end
|
10 |
+
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
|
11 |
+
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
|
12 |
+
set -e _OLD_VIRTUAL_PYTHONHOME
|
13 |
+
end
|
14 |
+
|
15 |
+
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
|
16 |
+
set -e _OLD_FISH_PROMPT_OVERRIDE
|
17 |
+
# prevents error when using nested fish instances (Issue #93858)
|
18 |
+
if functions -q _old_fish_prompt
|
19 |
+
functions -e fish_prompt
|
20 |
+
functions -c _old_fish_prompt fish_prompt
|
21 |
+
functions -e _old_fish_prompt
|
22 |
+
end
|
23 |
+
end
|
24 |
+
|
25 |
+
set -e VIRTUAL_ENV
|
26 |
+
set -e VIRTUAL_ENV_PROMPT
|
27 |
+
if test "$argv[1]" != "nondestructive"
|
28 |
+
# Self-destruct!
|
29 |
+
functions -e deactivate
|
30 |
+
end
|
31 |
+
end
|
32 |
+
|
33 |
+
# Unset irrelevant variables.
|
34 |
+
deactivate nondestructive
|
35 |
+
|
36 |
+
set -gx VIRTUAL_ENV "/Users/sc-gladiator/cv.github.io/.venv"
|
37 |
+
|
38 |
+
set -gx _OLD_VIRTUAL_PATH $PATH
|
39 |
+
set -gx PATH "$VIRTUAL_ENV/bin" $PATH
|
40 |
+
|
41 |
+
# Unset PYTHONHOME if set.
|
42 |
+
if set -q PYTHONHOME
|
43 |
+
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
|
44 |
+
set -e PYTHONHOME
|
45 |
+
end
|
46 |
+
|
47 |
+
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
|
48 |
+
# fish uses a function instead of an env var to generate the prompt.
|
49 |
+
|
50 |
+
# Save the current fish_prompt function as the function _old_fish_prompt.
|
51 |
+
functions -c fish_prompt _old_fish_prompt
|
52 |
+
|
53 |
+
# With the original prompt function renamed, we can override with our own.
|
54 |
+
function fish_prompt
|
55 |
+
# Save the return status of the last command.
|
56 |
+
set -l old_status $status
|
57 |
+
|
58 |
+
# Output the venv prompt; color taken from the blue of the Python logo.
|
59 |
+
printf "%s%s%s" (set_color 4B8BBE) "(.venv) " (set_color normal)
|
60 |
+
|
61 |
+
# Restore the return status of the previous command.
|
62 |
+
echo "exit $old_status" | .
|
63 |
+
# Output the original/"old" prompt.
|
64 |
+
_old_fish_prompt
|
65 |
+
end
|
66 |
+
|
67 |
+
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
|
68 |
+
set -gx VIRTUAL_ENV_PROMPT "(.venv) "
|
69 |
+
end
|
.venv/bin/f2py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from numpy.f2py.f2py2e import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/flask
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from flask.cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/fonttools
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.__main__ import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/futurize
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from libfuturize.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/import_pb_to_tensorboard
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tensorflow.python.tools.import_pb_to_tensorboard import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/isympy
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from isympy import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/markdown-it
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from markdown_it.cli.parse import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/markdown_py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from markdown.__main__ import run
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(run())
|
.venv/bin/normalizer
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from charset_normalizer import cli
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(cli.cli_detect())
|
.venv/bin/pasteurize
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from libpasteurize.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/pip
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pip._internal.cli.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/pip3
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pip._internal.cli.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/pip3.10
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pip._internal.cli.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/pyftmerge
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.merge import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/pyftsubset
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.subset import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/pygmentize
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pygments.cmdline import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/python
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
/Users/sc-gladiator/.pyenv/versions/3.10.13/bin/python
|
.venv/bin/python3
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
python
|
.venv/bin/python3.10
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
python
|
.venv/bin/saved_model_cli
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tensorflow.python.tools.saved_model_cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/tensorboard
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tensorboard.main import run_main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(run_main())
|
.venv/bin/tf_upgrade_v2
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tensorflow.tools.compatibility.tf_upgrade_v2_main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/tflite_convert
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tensorflow.lite.python.tflite_convert import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/toco
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tensorflow.lite.python.tflite_convert import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/torchfrtrace
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tools.flight_recorder.fr_trace import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/torchrun
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from torch.distributed.run import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/tqdm
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tqdm.cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/ttx
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.ttx import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/wheel
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from wheel.cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/bin/yt-dlp
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/sc-gladiator/cv.github.io/.venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from yt_dlp import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
.venv/pyvenv.cfg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
home = /Users/sc-gladiator/cv.github.io/.venv/bin
|
2 |
+
include-system-site-packages = false
|
3 |
+
version = 3.10.13
|
.venv/share/bash-completion/completions/yt-dlp
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__yt_dlp()
|
2 |
+
{
|
3 |
+
local cur prev opts fileopts diropts keywords
|
4 |
+
COMPREPLY=()
|
5 |
+
cur="${COMP_WORDS[COMP_CWORD]}"
|
6 |
+
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
7 |
+
opts="--help --version --update --no-update --update-to --ignore-errors --no-abort-on-error --abort-on-error --dump-user-agent --list-extractors --extractor-descriptions --use-extractors --force-generic-extractor --default-search --ignore-config --no-config-locations --config-locations --plugin-dirs --no-plugin-dirs --flat-playlist --no-flat-playlist --live-from-start --no-live-from-start --wait-for-video --no-wait-for-video --mark-watched --no-mark-watched --no-colors --color --compat-options --alias --preset-alias --proxy --socket-timeout --source-address --impersonate --list-impersonate-targets --force-ipv4 --force-ipv6 --enable-file-urls --geo-verification-proxy --cn-verification-proxy --xff --geo-bypass --no-geo-bypass --geo-bypass-country --geo-bypass-ip-block --playlist-start --playlist-end --playlist-items --match-title --reject-title --min-filesize --max-filesize --date --datebefore --dateafter --min-views --max-views --match-filters --no-match-filters --break-match-filters --no-break-match-filters --no-playlist --yes-playlist --age-limit --download-archive --no-download-archive --max-downloads --break-on-existing --no-break-on-existing --break-on-reject --break-per-input --no-break-per-input --skip-playlist-after-errors --include-ads --no-include-ads --concurrent-fragments --limit-rate --throttled-rate --retries --file-access-retries --fragment-retries --retry-sleep --skip-unavailable-fragments --abort-on-unavailable-fragments --keep-fragments --no-keep-fragments --buffer-size --resize-buffer --no-resize-buffer --http-chunk-size --test --playlist-reverse --no-playlist-reverse --playlist-random --lazy-playlist --no-lazy-playlist --xattr-set-filesize --hls-prefer-native --hls-prefer-ffmpeg --hls-use-mpegts --no-hls-use-mpegts --download-sections --downloader --downloader-args --batch-file --no-batch-file --id --paths --output --output-na-placeholder --autonumber-size --autonumber-start --restrict-filenames --no-restrict-filenames --windows-filenames --no-windows-filenames --trim-filenames --no-overwrites --force-overwrites --no-force-overwrites --continue --no-continue --part --no-part --mtime --no-mtime --write-description --no-write-description --write-info-json --no-write-info-json --write-annotations --no-write-annotations --write-playlist-metafiles --no-write-playlist-metafiles --clean-info-json --no-clean-info-json --write-comments --no-write-comments --load-info-json --cookies --no-cookies --cookies-from-browser --no-cookies-from-browser --cache-dir --no-cache-dir --rm-cache-dir --write-thumbnail --no-write-thumbnail --write-all-thumbnails --list-thumbnails --write-link --write-url-link --write-webloc-link --write-desktop-link --quiet --no-quiet --no-warnings --simulate --no-simulate --ignore-no-formats-error --no-ignore-no-formats-error --skip-download --print --print-to-file --get-url --get-title --get-id --get-thumbnail --get-description --get-duration --get-filename --get-format --dump-json --dump-single-json --print-json --force-write-archive --newline --no-progress --progress --console-title --progress-template --progress-delta --verbose --dump-pages --write-pages --load-pages --youtube-print-sig-code --print-traffic --call-home --no-call-home --encoding --legacy-server-connect --no-check-certificates --prefer-insecure --user-agent --referer --add-headers --bidi-workaround --sleep-requests --sleep-interval --max-sleep-interval --sleep-subtitles --format --format-sort --format-sort-force --no-format-sort-force --video-multistreams --no-video-multistreams --audio-multistreams --no-audio-multistreams --all-formats --prefer-free-formats --no-prefer-free-formats --check-formats --check-all-formats --no-check-formats --list-formats --list-formats-as-table --list-formats-old --merge-output-format --allow-unplayable-formats --no-allow-unplayable-formats --write-subs --no-write-subs --write-auto-subs --no-write-auto-subs --all-subs --list-subs --sub-format --sub-langs --username --password --twofactor --netrc --netrc-location --netrc-cmd --video-password --ap-mso --ap-username --ap-password --ap-list-mso --client-certificate --client-certificate-key --client-certificate-password --extract-audio --audio-format --audio-quality --remux-video --recode-video --postprocessor-args --keep-video --no-keep-video --post-overwrites --no-post-overwrites --embed-subs --no-embed-subs --embed-thumbnail --no-embed-thumbnail --embed-metadata --no-embed-metadata --embed-chapters --no-embed-chapters --embed-info-json --no-embed-info-json --metadata-from-title --parse-metadata --replace-in-metadata --xattrs --concat-playlist --fixup --prefer-avconv --prefer-ffmpeg --ffmpeg-location --exec --no-exec --exec-before-download --no-exec-before-download --convert-subs --convert-thumbnails --split-chapters --no-split-chapters --remove-chapters --no-remove-chapters --force-keyframes-at-cuts --no-force-keyframes-at-cuts --use-postprocessor --sponsorblock-mark --sponsorblock-remove --sponsorblock-chapter-title --no-sponsorblock --sponsorblock-api --sponskrub --no-sponskrub --sponskrub-cut --no-sponskrub-cut --sponskrub-force --no-sponskrub-force --sponskrub-location --sponskrub-args --extractor-retries --allow-dynamic-mpd --ignore-dynamic-mpd --hls-split-discontinuity --no-hls-split-discontinuity --extractor-args --youtube-include-dash-manifest --youtube-skip-dash-manifest --youtube-include-hls-manifest --youtube-skip-hls-manifest"
|
8 |
+
keywords=":ytfavorites :ytrecommended :ytsubscriptions :ytwatchlater :ythistory"
|
9 |
+
fileopts="-a|--batch-file|--download-archive|--cookies|--load-info"
|
10 |
+
diropts="--cache-dir"
|
11 |
+
|
12 |
+
if [[ ${prev} =~ ${fileopts} ]]; then
|
13 |
+
COMPREPLY=( $(compgen -f -- ${cur}) )
|
14 |
+
return 0
|
15 |
+
elif [[ ${prev} =~ ${diropts} ]]; then
|
16 |
+
COMPREPLY=( $(compgen -d -- ${cur}) )
|
17 |
+
return 0
|
18 |
+
fi
|
19 |
+
|
20 |
+
if [[ ${cur} =~ : ]]; then
|
21 |
+
COMPREPLY=( $(compgen -W "${keywords}" -- ${cur}) )
|
22 |
+
return 0
|
23 |
+
elif [[ ${cur} == * ]] ; then
|
24 |
+
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
25 |
+
return 0
|
26 |
+
fi
|
27 |
+
}
|
28 |
+
|
29 |
+
complete -F __yt_dlp yt-dlp
|
.venv/share/doc/yt_dlp/README.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
.venv/share/fish/vendor_completions.d/yt-dlp.fish
ADDED
@@ -0,0 +1,315 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
complete --command yt-dlp --long-option help --short-option h --description 'Print this help text and exit'
|
3 |
+
complete --command yt-dlp --long-option version --description 'Print program version and exit'
|
4 |
+
complete --command yt-dlp --long-option update --short-option U --description 'Check if updates are available. You installed yt-dlp from a manual build or with a package manager; Use that to update'
|
5 |
+
complete --command yt-dlp --long-option no-update --description 'Do not check for updates (default)'
|
6 |
+
complete --command yt-dlp --long-option update-to --description 'Upgrade/downgrade to a specific version. CHANNEL can be a repository as well. CHANNEL and TAG default to "stable" and "latest" respectively if omitted; See "UPDATE" for details. Supported channels: stable, nightly, master'
|
7 |
+
complete --command yt-dlp --long-option ignore-errors --short-option i --description 'Ignore download and postprocessing errors. The download will be considered successful even if the postprocessing fails'
|
8 |
+
complete --command yt-dlp --long-option no-abort-on-error --description 'Continue with next video on download errors; e.g. to skip unavailable videos in a playlist (default)'
|
9 |
+
complete --command yt-dlp --long-option abort-on-error --description 'Abort downloading of further videos if an error occurs (Alias: --no-ignore-errors)'
|
10 |
+
complete --command yt-dlp --long-option dump-user-agent --description 'Display the current user-agent and exit'
|
11 |
+
complete --command yt-dlp --long-option list-extractors --description 'List all supported extractors and exit'
|
12 |
+
complete --command yt-dlp --long-option extractor-descriptions --description 'Output descriptions of all supported extractors and exit'
|
13 |
+
complete --command yt-dlp --long-option use-extractors --description 'Extractor names to use separated by commas. You can also use regexes, "all", "default" and "end" (end URL matching); e.g. --ies "holodex.*,end,youtube". Prefix the name with a "-" to exclude it, e.g. --ies default,-generic. Use --list-extractors for a list of extractor names. (Alias: --ies)'
|
14 |
+
complete --command yt-dlp --long-option force-generic-extractor
|
15 |
+
complete --command yt-dlp --long-option default-search --description 'Use this prefix for unqualified URLs. E.g. "gvsearch2:python" downloads two videos from google videos for the search term "python". Use the value "auto" to let yt-dlp guess ("auto_warning" to emit a warning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching'
|
16 |
+
complete --command yt-dlp --long-option ignore-config --description 'Don'"'"'t load any more configuration files except those given to --config-locations. For backward compatibility, if this option is found inside the system configuration file, the user configuration is not loaded. (Alias: --no-config)'
|
17 |
+
complete --command yt-dlp --long-option no-config-locations --description 'Do not load any custom configuration files (default). When given inside a configuration file, ignore all previous --config-locations defined in the current file'
|
18 |
+
complete --command yt-dlp --long-option config-locations --description 'Location of the main configuration file; either the path to the config or its containing directory ("-" for stdin). Can be used multiple times and inside other configuration files'
|
19 |
+
complete --command yt-dlp --long-option plugin-dirs --description 'Path to an additional directory to search for plugins. This option can be used multiple times to add multiple directories. Use "default" to search the default plugin directories (default)'
|
20 |
+
complete --command yt-dlp --long-option no-plugin-dirs --description 'Clear plugin directories to search, including defaults and those provided by previous --plugin-dirs'
|
21 |
+
complete --command yt-dlp --long-option flat-playlist --description 'Do not extract a playlist'"'"'s URL result entries; some entry metadata may be missing and downloading may be bypassed'
|
22 |
+
complete --command yt-dlp --long-option no-flat-playlist --description 'Fully extract the videos of a playlist (default)'
|
23 |
+
complete --command yt-dlp --long-option live-from-start --description 'Download livestreams from the start. Currently only supported for YouTube (Experimental)'
|
24 |
+
complete --command yt-dlp --long-option no-live-from-start --description 'Download livestreams from the current time (default)'
|
25 |
+
complete --command yt-dlp --long-option wait-for-video --description 'Wait for scheduled streams to become available. Pass the minimum number of seconds (or range) to wait between retries'
|
26 |
+
complete --command yt-dlp --long-option no-wait-for-video --description 'Do not wait for scheduled streams (default)'
|
27 |
+
complete --command yt-dlp --long-option mark-watched --description 'Mark videos watched (even with --simulate)'
|
28 |
+
complete --command yt-dlp --long-option no-mark-watched --description 'Do not mark videos watched (default)'
|
29 |
+
complete --command yt-dlp --long-option no-colors
|
30 |
+
complete --command yt-dlp --long-option color --description 'Whether to emit color codes in output, optionally prefixed by the STREAM (stdout or stderr) to apply the setting to. Can be one of "always", "auto" (default), "never", or "no_color" (use non color terminal sequences). Use "auto-tty" or "no_color-tty" to decide based on terminal support only. Can be used multiple times'
|
31 |
+
complete --command yt-dlp --long-option compat-options --description 'Options that can help keep compatibility with youtube-dl or youtube-dlc configurations by reverting some of the changes made in yt-dlp. See "Differences in default behavior" for details'
|
32 |
+
complete --command yt-dlp --long-option alias --description 'Create aliases for an option string. Unless an alias starts with a dash "-", it is prefixed with "--". Arguments are parsed according to the Python string formatting mini-language. E.g. --alias get-audio,-X "-S=aext:{0},abr -x --audio-format {0}" creates options "--get-audio" and "-X" that takes an argument (ARG0) and expands to "-S=aext:ARG0,abr -x --audio-format ARG0". All defined aliases are listed in the --help output. Alias options can trigger more aliases; so be careful to avoid defining recursive options. As a safety measure, each alias may be triggered a maximum of 100 times. This option can be used multiple times'
|
33 |
+
complete --command yt-dlp --long-option preset-alias --short-option t --description 'Applies a predefined set of options. e.g. --preset-alias mp3. The following presets are available: mp3, aac, mp4, mkv, sleep. See the "Preset Aliases" section at the end for more info. This option can be used multiple times'
|
34 |
+
complete --command yt-dlp --long-option proxy --description 'Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme, e.g. socks5://user:[email protected]:1080/. Pass in an empty string (--proxy "") for direct connection'
|
35 |
+
complete --command yt-dlp --long-option socket-timeout --description 'Time to wait before giving up, in seconds'
|
36 |
+
complete --command yt-dlp --long-option source-address --description 'Client-side IP address to bind to'
|
37 |
+
complete --command yt-dlp --long-option impersonate --description 'Client to impersonate for requests. E.g. chrome, chrome-110, chrome:windows-10. Pass --impersonate="" to impersonate any client. Note that forcing impersonation for all requests may have a detrimental impact on download speed and stability'
|
38 |
+
complete --command yt-dlp --long-option list-impersonate-targets --description 'List available clients to impersonate.'
|
39 |
+
complete --command yt-dlp --long-option force-ipv4 --short-option 4 --description 'Make all connections via IPv4'
|
40 |
+
complete --command yt-dlp --long-option force-ipv6 --short-option 6 --description 'Make all connections via IPv6'
|
41 |
+
complete --command yt-dlp --long-option enable-file-urls --description 'Enable file:// URLs. This is disabled by default for security reasons.'
|
42 |
+
complete --command yt-dlp --long-option geo-verification-proxy --description 'Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy (or none, if the option is not present) is used for the actual downloading'
|
43 |
+
complete --command yt-dlp --long-option cn-verification-proxy
|
44 |
+
complete --command yt-dlp --long-option xff --description 'How to fake X-Forwarded-For HTTP header to try bypassing geographic restriction. One of "default" (only when known to be useful), "never", an IP block in CIDR notation, or a two-letter ISO 3166-2 country code'
|
45 |
+
complete --command yt-dlp --long-option geo-bypass
|
46 |
+
complete --command yt-dlp --long-option no-geo-bypass
|
47 |
+
complete --command yt-dlp --long-option geo-bypass-country
|
48 |
+
complete --command yt-dlp --long-option geo-bypass-ip-block
|
49 |
+
complete --command yt-dlp --long-option playlist-start
|
50 |
+
complete --command yt-dlp --long-option playlist-end
|
51 |
+
complete --command yt-dlp --long-option playlist-items --short-option I --description 'Comma separated playlist_index of the items to download. You can specify a range using "[START]:[STOP][:STEP]". For backward compatibility, START-STOP is also supported. Use negative indices to count from the right and negative STEP to download in reverse order. E.g. "-I 1:3,7,-5::2" used on a playlist of size 15 will download the items at index 1,2,3,7,11,13,15'
|
52 |
+
complete --command yt-dlp --long-option match-title
|
53 |
+
complete --command yt-dlp --long-option reject-title
|
54 |
+
complete --command yt-dlp --long-option min-filesize --description 'Abort download if filesize is smaller than SIZE, e.g. 50k or 44.6M'
|
55 |
+
complete --command yt-dlp --long-option max-filesize --description 'Abort download if filesize is larger than SIZE, e.g. 50k or 44.6M'
|
56 |
+
complete --command yt-dlp --long-option date --description 'Download only videos uploaded on this date. The date can be "YYYYMMDD" or in the format [now|today|yesterday][-N[day|week|month|year]]. E.g. "--date today-2weeks" downloads only videos uploaded on the same day two weeks ago'
|
57 |
+
complete --command yt-dlp --long-option datebefore --description 'Download only videos uploaded on or before this date. The date formats accepted are the same as --date'
|
58 |
+
complete --command yt-dlp --long-option dateafter --description 'Download only videos uploaded on or after this date. The date formats accepted are the same as --date'
|
59 |
+
complete --command yt-dlp --long-option min-views
|
60 |
+
complete --command yt-dlp --long-option max-views
|
61 |
+
complete --command yt-dlp --long-option match-filters --description 'Generic video filter. Any "OUTPUT TEMPLATE" field can be compared with a number or a string using the operators defined in "Filtering Formats". You can also simply specify a field to match if the field is present, use "!field" to check if the field is not present, and "&" to check multiple conditions. Use a "\" to escape "&" or quotes if needed. If used multiple times, the filter matches if at least one of the conditions is met. E.g. --match-filters !is_live --match-filters "like_count>?100 & description~='"'"'(?i)\bcats \& dogs\b'"'"'" matches only videos that are not live OR those that have a like count more than 100 (or the like field is not available) and also has a description that contains the phrase "cats & dogs" (caseless). Use "--match-filters -" to interactively ask whether to download each video'
|
62 |
+
complete --command yt-dlp --long-option no-match-filters --description 'Do not use any --match-filters (default)'
|
63 |
+
complete --command yt-dlp --long-option break-match-filters --description 'Same as "--match-filters" but stops the download process when a video is rejected'
|
64 |
+
complete --command yt-dlp --long-option no-break-match-filters --description 'Do not use any --break-match-filters (default)'
|
65 |
+
complete --command yt-dlp --long-option no-playlist --description 'Download only the video, if the URL refers to a video and a playlist'
|
66 |
+
complete --command yt-dlp --long-option yes-playlist --description 'Download the playlist, if the URL refers to a video and a playlist'
|
67 |
+
complete --command yt-dlp --long-option age-limit --description 'Download only videos suitable for the given age'
|
68 |
+
complete --command yt-dlp --long-option download-archive --description 'Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it' --require-parameter
|
69 |
+
complete --command yt-dlp --long-option no-download-archive --description 'Do not use archive file (default)'
|
70 |
+
complete --command yt-dlp --long-option max-downloads --description 'Abort after downloading NUMBER files'
|
71 |
+
complete --command yt-dlp --long-option break-on-existing --description 'Stop the download process when encountering a file that is in the archive supplied with the --download-archive option'
|
72 |
+
complete --command yt-dlp --long-option no-break-on-existing --description 'Do not stop the download process when encountering a file that is in the archive (default)'
|
73 |
+
complete --command yt-dlp --long-option break-on-reject
|
74 |
+
complete --command yt-dlp --long-option break-per-input --description 'Alters --max-downloads, --break-on-existing, --break-match-filters, and autonumber to reset per input URL'
|
75 |
+
complete --command yt-dlp --long-option no-break-per-input --description '--break-on-existing and similar options terminates the entire download queue'
|
76 |
+
complete --command yt-dlp --long-option skip-playlist-after-errors --description 'Number of allowed failures until the rest of the playlist is skipped'
|
77 |
+
complete --command yt-dlp --long-option include-ads
|
78 |
+
complete --command yt-dlp --long-option no-include-ads
|
79 |
+
complete --command yt-dlp --long-option concurrent-fragments --short-option N --description 'Number of fragments of a dash/hlsnative video that should be downloaded concurrently (default is %default)'
|
80 |
+
complete --command yt-dlp --long-option limit-rate --short-option r --description 'Maximum download rate in bytes per second, e.g. 50K or 4.2M'
|
81 |
+
complete --command yt-dlp --long-option throttled-rate --description 'Minimum download rate in bytes per second below which throttling is assumed and the video data is re-extracted, e.g. 100K'
|
82 |
+
complete --command yt-dlp --long-option retries --short-option R --description 'Number of retries (default is %default), or "infinite"'
|
83 |
+
complete --command yt-dlp --long-option file-access-retries --description 'Number of times to retry on file access error (default is %default), or "infinite"'
|
84 |
+
complete --command yt-dlp --long-option fragment-retries --description 'Number of retries for a fragment (default is %default), or "infinite" (DASH, hlsnative and ISM)'
|
85 |
+
complete --command yt-dlp --long-option retry-sleep --description 'Time to sleep between retries in seconds (optionally) prefixed by the type of retry (http (default), fragment, file_access, extractor) to apply the sleep to. EXPR can be a number, linear=START[:END[:STEP=1]] or exp=START[:END[:BASE=2]]. This option can be used multiple times to set the sleep for the different retry types, e.g. --retry-sleep linear=1::2 --retry-sleep fragment:exp=1:20'
|
86 |
+
complete --command yt-dlp --long-option skip-unavailable-fragments --description 'Skip unavailable fragments for DASH, hlsnative and ISM downloads (default) (Alias: --no-abort-on-unavailable-fragments)'
|
87 |
+
complete --command yt-dlp --long-option abort-on-unavailable-fragments --description 'Abort download if a fragment is unavailable (Alias: --no-skip-unavailable-fragments)'
|
88 |
+
complete --command yt-dlp --long-option keep-fragments --description 'Keep downloaded fragments on disk after downloading is finished'
|
89 |
+
complete --command yt-dlp --long-option no-keep-fragments --description 'Delete downloaded fragments after downloading is finished (default)'
|
90 |
+
complete --command yt-dlp --long-option buffer-size --description 'Size of download buffer, e.g. 1024 or 16K (default is %default)'
|
91 |
+
complete --command yt-dlp --long-option resize-buffer --description 'The buffer size is automatically resized from an initial value of --buffer-size (default)'
|
92 |
+
complete --command yt-dlp --long-option no-resize-buffer --description 'Do not automatically adjust the buffer size'
|
93 |
+
complete --command yt-dlp --long-option http-chunk-size --description 'Size of a chunk for chunk-based HTTP downloading, e.g. 10485760 or 10M (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)'
|
94 |
+
complete --command yt-dlp --long-option test
|
95 |
+
complete --command yt-dlp --long-option playlist-reverse
|
96 |
+
complete --command yt-dlp --long-option no-playlist-reverse
|
97 |
+
complete --command yt-dlp --long-option playlist-random --description 'Download playlist videos in random order'
|
98 |
+
complete --command yt-dlp --long-option lazy-playlist --description 'Process entries in the playlist as they are received. This disables n_entries, --playlist-random and --playlist-reverse'
|
99 |
+
complete --command yt-dlp --long-option no-lazy-playlist --description 'Process videos in the playlist only after the entire playlist is parsed (default)'
|
100 |
+
complete --command yt-dlp --long-option xattr-set-filesize --description 'Set file xattribute ytdl.filesize with expected file size'
|
101 |
+
complete --command yt-dlp --long-option hls-prefer-native
|
102 |
+
complete --command yt-dlp --long-option hls-prefer-ffmpeg
|
103 |
+
complete --command yt-dlp --long-option hls-use-mpegts --description 'Use the mpegts container for HLS videos; allowing some players to play the video while downloading, and reducing the chance of file corruption if download is interrupted. This is enabled by default for live streams'
|
104 |
+
complete --command yt-dlp --long-option no-hls-use-mpegts --description 'Do not use the mpegts container for HLS videos. This is default when not downloading live streams'
|
105 |
+
complete --command yt-dlp --long-option download-sections --description 'Download only chapters that match the regular expression. A "*" prefix denotes time-range instead of chapter. Negative timestamps are calculated from the end. "*from-url" can be used to download between the "start_time" and "end_time" extracted from the URL. Needs ffmpeg. This option can be used multiple times to download multiple sections, e.g. --download-sections "*10:15-inf" --download-sections "intro"'
|
106 |
+
complete --command yt-dlp --long-option downloader --description 'Name or path of the external downloader to use (optionally) prefixed by the protocols (http, ftp, m3u8, dash, rstp, rtmp, mms) to use it for. Currently supports native, aria2c, avconv, axel, curl, ffmpeg, httpie, wget. You can use this option multiple times to set different downloaders for different protocols. E.g. --downloader aria2c --downloader "dash,m3u8:native" will use aria2c for http/ftp downloads, and the native downloader for dash/m3u8 downloads (Alias: --external-downloader)'
|
107 |
+
complete --command yt-dlp --long-option downloader-args --description 'Give these arguments to the external downloader. Specify the downloader name and the arguments separated by a colon ":". For ffmpeg, arguments can be passed to different positions using the same syntax as --postprocessor-args. You can use this option multiple times to give different arguments to different downloaders (Alias: --external-downloader-args)'
|
108 |
+
complete --command yt-dlp --long-option batch-file --short-option a --description 'File containing URLs to download ("-" for stdin), one URL per line. Lines starting with "#", ";" or "]" are considered as comments and ignored' --require-parameter
|
109 |
+
complete --command yt-dlp --long-option no-batch-file --description 'Do not read URLs from batch file (default)'
|
110 |
+
complete --command yt-dlp --long-option id
|
111 |
+
complete --command yt-dlp --long-option paths --short-option P --description 'The paths where the files should be downloaded. Specify the type of file and the path separated by a colon ":". All the same TYPES as --output are supported. Additionally, you can also provide "home" (default) and "temp" paths. All intermediary files are first downloaded to the temp path and then the final files are moved over to the home path after download is finished. This option is ignored if --output is an absolute path'
|
112 |
+
complete --command yt-dlp --long-option output --short-option o --description 'Output filename template; see "OUTPUT TEMPLATE" for details'
|
113 |
+
complete --command yt-dlp --long-option output-na-placeholder --description 'Placeholder for unavailable fields in --output (default: "%default")'
|
114 |
+
complete --command yt-dlp --long-option autonumber-size
|
115 |
+
complete --command yt-dlp --long-option autonumber-start
|
116 |
+
complete --command yt-dlp --long-option restrict-filenames --description 'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'
|
117 |
+
complete --command yt-dlp --long-option no-restrict-filenames --description 'Allow Unicode characters, "&" and spaces in filenames (default)'
|
118 |
+
complete --command yt-dlp --long-option windows-filenames --description 'Force filenames to be Windows-compatible'
|
119 |
+
complete --command yt-dlp --long-option no-windows-filenames --description 'Sanitize filenames only minimally'
|
120 |
+
complete --command yt-dlp --long-option trim-filenames --description 'Limit the filename length (excluding extension) to the specified number of characters'
|
121 |
+
complete --command yt-dlp --long-option no-overwrites --short-option w --description 'Do not overwrite any files'
|
122 |
+
complete --command yt-dlp --long-option force-overwrites --description 'Overwrite all video and metadata files. This option includes --no-continue'
|
123 |
+
complete --command yt-dlp --long-option no-force-overwrites --description 'Do not overwrite the video, but overwrite related files (default)'
|
124 |
+
complete --command yt-dlp --long-option continue --short-option c --description 'Resume partially downloaded files/fragments (default)'
|
125 |
+
complete --command yt-dlp --long-option no-continue --description 'Do not resume partially downloaded fragments. If the file is not fragmented, restart download of the entire file'
|
126 |
+
complete --command yt-dlp --long-option part --description 'Use .part files instead of writing directly into output file (default)'
|
127 |
+
complete --command yt-dlp --long-option no-part --description 'Do not use .part files - write directly into output file'
|
128 |
+
complete --command yt-dlp --long-option mtime --description 'Use the Last-modified header to set the file modification time (default)'
|
129 |
+
complete --command yt-dlp --long-option no-mtime --description 'Do not use the Last-modified header to set the file modification time'
|
130 |
+
complete --command yt-dlp --long-option write-description --description 'Write video description to a .description file'
|
131 |
+
complete --command yt-dlp --long-option no-write-description --description 'Do not write video description (default)'
|
132 |
+
complete --command yt-dlp --long-option write-info-json --description 'Write video metadata to a .info.json file (this may contain personal information)'
|
133 |
+
complete --command yt-dlp --long-option no-write-info-json --description 'Do not write video metadata (default)'
|
134 |
+
complete --command yt-dlp --long-option write-annotations
|
135 |
+
complete --command yt-dlp --long-option no-write-annotations
|
136 |
+
complete --command yt-dlp --long-option write-playlist-metafiles --description 'Write playlist metadata in addition to the video metadata when using --write-info-json, --write-description etc. (default)'
|
137 |
+
complete --command yt-dlp --long-option no-write-playlist-metafiles --description 'Do not write playlist metadata when using --write-info-json, --write-description etc.'
|
138 |
+
complete --command yt-dlp --long-option clean-info-json --description 'Remove some internal metadata such as filenames from the infojson (default)'
|
139 |
+
complete --command yt-dlp --long-option no-clean-info-json --description 'Write all fields to the infojson'
|
140 |
+
complete --command yt-dlp --long-option write-comments --description 'Retrieve video comments to be placed in the infojson. The comments are fetched even without this option if the extraction is known to be quick (Alias: --get-comments)'
|
141 |
+
complete --command yt-dlp --long-option no-write-comments --description 'Do not retrieve video comments unless the extraction is known to be quick (Alias: --no-get-comments)'
|
142 |
+
complete --command yt-dlp --long-option load-info-json --description 'JSON file containing the video information (created with the "--write-info-json" option)'
|
143 |
+
complete --command yt-dlp --long-option cookies --description 'Netscape formatted file to read cookies from and dump cookie jar in' --require-parameter
|
144 |
+
complete --command yt-dlp --long-option no-cookies --description 'Do not read/dump cookies from/to file (default)'
|
145 |
+
complete --command yt-dlp --long-option cookies-from-browser --description 'The name of the browser to load cookies from. Currently supported browsers are: brave, chrome, chromium, edge, firefox, opera, safari, vivaldi, whale. Optionally, the KEYRING used for decrypting Chromium cookies on Linux, the name/path of the PROFILE to load cookies from, and the CONTAINER name (if Firefox) ("none" for no container) can be given with their respective separators. By default, all containers of the most recently accessed profile are used. Currently supported keyrings are: basictext, gnomekeyring, kwallet, kwallet5, kwallet6'
|
146 |
+
complete --command yt-dlp --long-option no-cookies-from-browser --description 'Do not load cookies from browser (default)'
|
147 |
+
complete --command yt-dlp --long-option cache-dir --description 'Location in the filesystem where yt-dlp can store some downloaded information (such as client ids and signatures) permanently. By default ${XDG_CACHE_HOME}/yt-dlp'
|
148 |
+
complete --command yt-dlp --long-option no-cache-dir --description 'Disable filesystem caching'
|
149 |
+
complete --command yt-dlp --long-option rm-cache-dir --description 'Delete all filesystem cache files'
|
150 |
+
complete --command yt-dlp --long-option write-thumbnail --description 'Write thumbnail image to disk'
|
151 |
+
complete --command yt-dlp --long-option no-write-thumbnail --description 'Do not write thumbnail image to disk (default)'
|
152 |
+
complete --command yt-dlp --long-option write-all-thumbnails --description 'Write all thumbnail image formats to disk'
|
153 |
+
complete --command yt-dlp --long-option list-thumbnails --description 'List available thumbnails of each video. Simulate unless --no-simulate is used'
|
154 |
+
complete --command yt-dlp --long-option write-link --description 'Write an internet shortcut file, depending on the current platform (.url, .webloc or .desktop). The URL may be cached by the OS'
|
155 |
+
complete --command yt-dlp --long-option write-url-link --description 'Write a .url Windows internet shortcut. The OS caches the URL based on the file path'
|
156 |
+
complete --command yt-dlp --long-option write-webloc-link --description 'Write a .webloc macOS internet shortcut'
|
157 |
+
complete --command yt-dlp --long-option write-desktop-link --description 'Write a .desktop Linux internet shortcut'
|
158 |
+
complete --command yt-dlp --long-option quiet --short-option q --description 'Activate quiet mode. If used with --verbose, print the log to stderr'
|
159 |
+
complete --command yt-dlp --long-option no-quiet --description 'Deactivate quiet mode. (Default)'
|
160 |
+
complete --command yt-dlp --long-option no-warnings --description 'Ignore warnings'
|
161 |
+
complete --command yt-dlp --long-option simulate --short-option s --description 'Do not download the video and do not write anything to disk'
|
162 |
+
complete --command yt-dlp --long-option no-simulate --description 'Download the video even if printing/listing options are used'
|
163 |
+
complete --command yt-dlp --long-option ignore-no-formats-error --description 'Ignore "No video formats" error. Useful for extracting metadata even if the videos are not actually available for download (experimental)'
|
164 |
+
complete --command yt-dlp --long-option no-ignore-no-formats-error --description 'Throw error when no downloadable video formats are found (default)'
|
165 |
+
complete --command yt-dlp --long-option skip-download --description 'Do not download the video but write all related files (Alias: --no-download)'
|
166 |
+
complete --command yt-dlp --long-option print --short-option O --description 'Field name or output template to print to screen, optionally prefixed with when to print it, separated by a ":". Supported values of "WHEN" are the same as that of --use-postprocessor (default: video). Implies --quiet. Implies --simulate unless --no-simulate or later stages of WHEN are used. This option can be used multiple times'
|
167 |
+
complete --command yt-dlp --long-option print-to-file --description 'Append given template to the file. The values of WHEN and TEMPLATE are the same as that of --print. FILE uses the same syntax as the output template. This option can be used multiple times'
|
168 |
+
complete --command yt-dlp --long-option get-url --short-option g
|
169 |
+
complete --command yt-dlp --long-option get-title --short-option e
|
170 |
+
complete --command yt-dlp --long-option get-id
|
171 |
+
complete --command yt-dlp --long-option get-thumbnail
|
172 |
+
complete --command yt-dlp --long-option get-description
|
173 |
+
complete --command yt-dlp --long-option get-duration
|
174 |
+
complete --command yt-dlp --long-option get-filename
|
175 |
+
complete --command yt-dlp --long-option get-format
|
176 |
+
complete --command yt-dlp --long-option dump-json --short-option j --description 'Quiet, but print JSON information for each video. Simulate unless --no-simulate is used. See "OUTPUT TEMPLATE" for a description of available keys'
|
177 |
+
complete --command yt-dlp --long-option dump-single-json --short-option J --description 'Quiet, but print JSON information for each URL or infojson passed. Simulate unless --no-simulate is used. If the URL refers to a playlist, the whole playlist information is dumped in a single line'
|
178 |
+
complete --command yt-dlp --long-option print-json
|
179 |
+
complete --command yt-dlp --long-option force-write-archive --description 'Force download archive entries to be written as far as no errors occur, even if -s or another simulation option is used (Alias: --force-download-archive)'
|
180 |
+
complete --command yt-dlp --long-option newline --description 'Output progress bar as new lines'
|
181 |
+
complete --command yt-dlp --long-option no-progress --description 'Do not print progress bar'
|
182 |
+
complete --command yt-dlp --long-option progress --description 'Show progress bar, even if in quiet mode'
|
183 |
+
complete --command yt-dlp --long-option console-title --description 'Display progress in console titlebar'
|
184 |
+
complete --command yt-dlp --long-option progress-template --description 'Template for progress outputs, optionally prefixed with one of "download:" (default), "download-title:" (the console title), "postprocess:", or "postprocess-title:". The video'"'"'s fields are accessible under the "info" key and the progress attributes are accessible under "progress" key. E.g. --console-title --progress-template "download-title:%(info.id)s-%(progress.eta)s"'
|
185 |
+
complete --command yt-dlp --long-option progress-delta --description 'Time between progress output (default: 0)'
|
186 |
+
complete --command yt-dlp --long-option verbose --short-option v --description 'Print various debugging information'
|
187 |
+
complete --command yt-dlp --long-option dump-pages --description 'Print downloaded pages encoded using base64 to debug problems (very verbose)'
|
188 |
+
complete --command yt-dlp --long-option write-pages --description 'Write downloaded intermediary pages to files in the current directory to debug problems'
|
189 |
+
complete --command yt-dlp --long-option load-pages
|
190 |
+
complete --command yt-dlp --long-option youtube-print-sig-code
|
191 |
+
complete --command yt-dlp --long-option print-traffic --description 'Display sent and read HTTP traffic'
|
192 |
+
complete --command yt-dlp --long-option call-home --short-option C
|
193 |
+
complete --command yt-dlp --long-option no-call-home
|
194 |
+
complete --command yt-dlp --long-option encoding --description 'Force the specified encoding (experimental)'
|
195 |
+
complete --command yt-dlp --long-option legacy-server-connect --description 'Explicitly allow HTTPS connection to servers that do not support RFC 5746 secure renegotiation'
|
196 |
+
complete --command yt-dlp --long-option no-check-certificates --description 'Suppress HTTPS certificate validation'
|
197 |
+
complete --command yt-dlp --long-option prefer-insecure --description 'Use an unencrypted connection to retrieve information about the video (Currently supported only for YouTube)'
|
198 |
+
complete --command yt-dlp --long-option user-agent
|
199 |
+
complete --command yt-dlp --long-option referer
|
200 |
+
complete --command yt-dlp --long-option add-headers --description 'Specify a custom HTTP header and its value, separated by a colon ":". You can use this option multiple times'
|
201 |
+
complete --command yt-dlp --long-option bidi-workaround --description 'Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH'
|
202 |
+
complete --command yt-dlp --long-option sleep-requests --description 'Number of seconds to sleep between requests during data extraction'
|
203 |
+
complete --command yt-dlp --long-option sleep-interval --description 'Number of seconds to sleep before each download. This is the minimum time to sleep when used along with --max-sleep-interval (Alias: --min-sleep-interval)'
|
204 |
+
complete --command yt-dlp --long-option max-sleep-interval --description 'Maximum number of seconds to sleep. Can only be used along with --min-sleep-interval'
|
205 |
+
complete --command yt-dlp --long-option sleep-subtitles --description 'Number of seconds to sleep before each subtitle download'
|
206 |
+
complete --command yt-dlp --long-option format --short-option f --description 'Video format code, see "FORMAT SELECTION" for more details'
|
207 |
+
complete --command yt-dlp --long-option format-sort --short-option S --description 'Sort the formats by the fields given, see "Sorting Formats" for more details'
|
208 |
+
complete --command yt-dlp --long-option format-sort-force --description 'Force user specified sort order to have precedence over all fields, see "Sorting Formats" for more details (Alias: --S-force)'
|
209 |
+
complete --command yt-dlp --long-option no-format-sort-force --description 'Some fields have precedence over the user specified sort order (default)'
|
210 |
+
complete --command yt-dlp --long-option video-multistreams --description 'Allow multiple video streams to be merged into a single file'
|
211 |
+
complete --command yt-dlp --long-option no-video-multistreams --description 'Only one video stream is downloaded for each output file (default)'
|
212 |
+
complete --command yt-dlp --long-option audio-multistreams --description 'Allow multiple audio streams to be merged into a single file'
|
213 |
+
complete --command yt-dlp --long-option no-audio-multistreams --description 'Only one audio stream is downloaded for each output file (default)'
|
214 |
+
complete --command yt-dlp --long-option all-formats
|
215 |
+
complete --command yt-dlp --long-option prefer-free-formats --description 'Prefer video formats with free containers over non-free ones of the same quality. Use with "-S ext" to strictly prefer free containers irrespective of quality'
|
216 |
+
complete --command yt-dlp --long-option no-prefer-free-formats --description 'Don'"'"'t give any special preference to free containers (default)'
|
217 |
+
complete --command yt-dlp --long-option check-formats --description 'Make sure formats are selected only from those that are actually downloadable'
|
218 |
+
complete --command yt-dlp --long-option check-all-formats --description 'Check all formats for whether they are actually downloadable'
|
219 |
+
complete --command yt-dlp --long-option no-check-formats --description 'Do not check that the formats are actually downloadable'
|
220 |
+
complete --command yt-dlp --long-option list-formats --short-option F --description 'List available formats of each video. Simulate unless --no-simulate is used'
|
221 |
+
complete --command yt-dlp --long-option list-formats-as-table
|
222 |
+
complete --command yt-dlp --long-option list-formats-old
|
223 |
+
complete --command yt-dlp --long-option merge-output-format --description 'Containers that may be used when merging formats, separated by "/", e.g. "mp4/mkv". Ignored if no merge is required. (currently supported: avi, flv, mkv, mov, mp4, webm)'
|
224 |
+
complete --command yt-dlp --long-option allow-unplayable-formats
|
225 |
+
complete --command yt-dlp --long-option no-allow-unplayable-formats
|
226 |
+
complete --command yt-dlp --long-option write-subs --description 'Write subtitle file'
|
227 |
+
complete --command yt-dlp --long-option no-write-subs --description 'Do not write subtitle file (default)'
|
228 |
+
complete --command yt-dlp --long-option write-auto-subs --description 'Write automatically generated subtitle file (Alias: --write-automatic-subs)'
|
229 |
+
complete --command yt-dlp --long-option no-write-auto-subs --description 'Do not write auto-generated subtitles (default) (Alias: --no-write-automatic-subs)'
|
230 |
+
complete --command yt-dlp --long-option all-subs
|
231 |
+
complete --command yt-dlp --long-option list-subs --description 'List available subtitles of each video. Simulate unless --no-simulate is used'
|
232 |
+
complete --command yt-dlp --long-option sub-format --description 'Subtitle format; accepts formats preference separated by "/", e.g. "srt" or "ass/srt/best"'
|
233 |
+
complete --command yt-dlp --long-option sub-langs --description 'Languages of the subtitles to download (can be regex) or "all" separated by commas, e.g. --sub-langs "en.*,ja" (where "en.*" is a regex pattern that matches "en" followed by 0 or more of any character). You can prefix the language code with a "-" to exclude it from the requested languages, e.g. --sub-langs all,-live_chat. Use --list-subs for a list of available language tags'
|
234 |
+
complete --command yt-dlp --long-option username --short-option u --description 'Login with this account ID'
|
235 |
+
complete --command yt-dlp --long-option password --short-option p --description 'Account password. If this option is left out, yt-dlp will ask interactively'
|
236 |
+
complete --command yt-dlp --long-option twofactor --short-option 2 --description 'Two-factor authentication code'
|
237 |
+
complete --command yt-dlp --long-option netrc --short-option n --description 'Use .netrc authentication data'
|
238 |
+
complete --command yt-dlp --long-option netrc-location --description 'Location of .netrc authentication data; either the path or its containing directory. Defaults to ~/.netrc'
|
239 |
+
complete --command yt-dlp --long-option netrc-cmd --description 'Command to execute to get the credentials for an extractor.'
|
240 |
+
complete --command yt-dlp --long-option video-password --description 'Video-specific password'
|
241 |
+
complete --command yt-dlp --long-option ap-mso --description 'Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso for a list of available MSOs'
|
242 |
+
complete --command yt-dlp --long-option ap-username --description 'Multiple-system operator account login'
|
243 |
+
complete --command yt-dlp --long-option ap-password --description 'Multiple-system operator account password. If this option is left out, yt-dlp will ask interactively'
|
244 |
+
complete --command yt-dlp --long-option ap-list-mso --description 'List all supported multiple-system operators'
|
245 |
+
complete --command yt-dlp --long-option client-certificate --description 'Path to client certificate file in PEM format. May include the private key'
|
246 |
+
complete --command yt-dlp --long-option client-certificate-key --description 'Path to private key file for client certificate'
|
247 |
+
complete --command yt-dlp --long-option client-certificate-password --description 'Password for client certificate private key, if encrypted. If not provided, and the key is encrypted, yt-dlp will ask interactively'
|
248 |
+
complete --command yt-dlp --long-option extract-audio --short-option x --description 'Convert video files to audio-only files (requires ffmpeg and ffprobe)'
|
249 |
+
complete --command yt-dlp --long-option audio-format --description 'Format to convert the audio to when -x is used. (currently supported: best (default), aac, alac, flac, m4a, mp3, opus, vorbis, wav). You can specify multiple rules using similar syntax as --remux-video'
|
250 |
+
complete --command yt-dlp --long-option audio-quality --description 'Specify ffmpeg audio quality to use when converting the audio with -x. Insert a value between 0 (best) and 10 (worst) for VBR or a specific bitrate like 128K (default %default)'
|
251 |
+
complete --command yt-dlp --long-option remux-video --description 'Remux the video into another container if necessary (currently supported: avi, flv, gif, mkv, mov, mp4, webm, aac, aiff, alac, flac, m4a, mka, mp3, ogg, opus, vorbis, wav). If the target container does not support the video/audio codec, remuxing will fail. You can specify multiple rules; e.g. "aac>m4a/mov>mp4/mkv" will remux aac to m4a, mov to mp4 and anything else to mkv' --arguments 'mp4 mkv' --exclusive
|
252 |
+
complete --command yt-dlp --long-option recode-video --description 'Re-encode the video into another format if necessary. The syntax and supported formats are the same as --remux-video' --arguments 'mp4 flv ogg webm mkv' --exclusive
|
253 |
+
complete --command yt-dlp --long-option postprocessor-args --description 'Give these arguments to the postprocessors. Specify the postprocessor/executable name and the arguments separated by a colon ":" to give the argument to the specified postprocessor/executable. Supported PP are: Merger, ModifyChapters, SplitChapters, ExtractAudio, VideoRemuxer, VideoConvertor, Metadata, EmbedSubtitle, EmbedThumbnail, SubtitlesConvertor, ThumbnailsConvertor, FixupStretched, FixupM4a, FixupM3u8, FixupTimestamp and FixupDuration. The supported executables are: AtomicParsley, FFmpeg and FFprobe. You can also specify "PP+EXE:ARGS" to give the arguments to the specified executable only when being used by the specified postprocessor. Additionally, for ffmpeg/ffprobe, "_i"/"_o" can be appended to the prefix optionally followed by a number to pass the argument before the specified input/output file, e.g. --ppa "Merger+ffmpeg_i1:-v quiet". You can use this option multiple times to give different arguments to different postprocessors. (Alias: --ppa)'
|
254 |
+
complete --command yt-dlp --long-option keep-video --short-option k --description 'Keep the intermediate video file on disk after post-processing'
|
255 |
+
complete --command yt-dlp --long-option no-keep-video --description 'Delete the intermediate video file after post-processing (default)'
|
256 |
+
complete --command yt-dlp --long-option post-overwrites --description 'Overwrite post-processed files (default)'
|
257 |
+
complete --command yt-dlp --long-option no-post-overwrites --description 'Do not overwrite post-processed files'
|
258 |
+
complete --command yt-dlp --long-option embed-subs --description 'Embed subtitles in the video (only for mp4, webm and mkv videos)'
|
259 |
+
complete --command yt-dlp --long-option no-embed-subs --description 'Do not embed subtitles (default)'
|
260 |
+
complete --command yt-dlp --long-option embed-thumbnail --description 'Embed thumbnail in the video as cover art'
|
261 |
+
complete --command yt-dlp --long-option no-embed-thumbnail --description 'Do not embed thumbnail (default)'
|
262 |
+
complete --command yt-dlp --long-option embed-metadata --description 'Embed metadata to the video file. Also embeds chapters/infojson if present unless --no-embed-chapters/--no-embed-info-json are used (Alias: --add-metadata)'
|
263 |
+
complete --command yt-dlp --long-option no-embed-metadata --description 'Do not add metadata to file (default) (Alias: --no-add-metadata)'
|
264 |
+
complete --command yt-dlp --long-option embed-chapters --description 'Add chapter markers to the video file (Alias: --add-chapters)'
|
265 |
+
complete --command yt-dlp --long-option no-embed-chapters --description 'Do not add chapter markers (default) (Alias: --no-add-chapters)'
|
266 |
+
complete --command yt-dlp --long-option embed-info-json --description 'Embed the infojson as an attachment to mkv/mka video files'
|
267 |
+
complete --command yt-dlp --long-option no-embed-info-json --description 'Do not embed the infojson as an attachment to the video file'
|
268 |
+
complete --command yt-dlp --long-option metadata-from-title
|
269 |
+
complete --command yt-dlp --long-option parse-metadata --description 'Parse additional metadata like title/artist from other fields; see "MODIFYING METADATA" for details. Supported values of "WHEN" are the same as that of --use-postprocessor (default: pre_process)'
|
270 |
+
complete --command yt-dlp --long-option replace-in-metadata --description 'Replace text in a metadata field using the given regex. This option can be used multiple times. Supported values of "WHEN" are the same as that of --use-postprocessor (default: pre_process)'
|
271 |
+
complete --command yt-dlp --long-option xattrs --description 'Write metadata to the video file'"'"'s xattrs (using Dublin Core and XDG standards)'
|
272 |
+
complete --command yt-dlp --long-option concat-playlist --description 'Concatenate videos in a playlist. One of "never", "always", or "multi_video" (default; only when the videos form a single show). All the video files must have the same codecs and number of streams to be concatenable. The "pl_video:" prefix can be used with "--paths" and "--output" to set the output filename for the concatenated files. See "OUTPUT TEMPLATE" for details'
|
273 |
+
complete --command yt-dlp --long-option fixup --description 'Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix the file if we can, warn otherwise), force (try fixing even if the file already exists)'
|
274 |
+
complete --command yt-dlp --long-option prefer-avconv
|
275 |
+
complete --command yt-dlp --long-option prefer-ffmpeg
|
276 |
+
complete --command yt-dlp --long-option ffmpeg-location --description 'Location of the ffmpeg binary; either the path to the binary or its containing directory'
|
277 |
+
complete --command yt-dlp --long-option exec --description 'Execute a command, optionally prefixed with when to execute it, separated by a ":". Supported values of "WHEN" are the same as that of --use-postprocessor (default: after_move). The same syntax as the output template can be used to pass any field as arguments to the command. If no fields are passed, %(filepath,_filename|)q is appended to the end of the command. This option can be used multiple times'
|
278 |
+
complete --command yt-dlp --long-option no-exec --description 'Remove any previously defined --exec'
|
279 |
+
complete --command yt-dlp --long-option exec-before-download
|
280 |
+
complete --command yt-dlp --long-option no-exec-before-download
|
281 |
+
complete --command yt-dlp --long-option convert-subs --description 'Convert the subtitles to another format (currently supported: ass, lrc, srt, vtt). Use "--convert-subs none" to disable conversion (default) (Alias: --convert-subtitles)'
|
282 |
+
complete --command yt-dlp --long-option convert-thumbnails --description 'Convert the thumbnails to another format (currently supported: jpg, png, webp). You can specify multiple rules using similar syntax as "--remux-video". Use "--convert-thumbnails none" to disable conversion (default)'
|
283 |
+
complete --command yt-dlp --long-option split-chapters --description 'Split video into multiple files based on internal chapters. The "chapter:" prefix can be used with "--paths" and "--output" to set the output filename for the split files. See "OUTPUT TEMPLATE" for details'
|
284 |
+
complete --command yt-dlp --long-option no-split-chapters --description 'Do not split video based on chapters (default)'
|
285 |
+
complete --command yt-dlp --long-option remove-chapters --description 'Remove chapters whose title matches the given regular expression. The syntax is the same as --download-sections. This option can be used multiple times'
|
286 |
+
complete --command yt-dlp --long-option no-remove-chapters --description 'Do not remove any chapters from the file (default)'
|
287 |
+
complete --command yt-dlp --long-option force-keyframes-at-cuts --description 'Force keyframes at cuts when downloading/splitting/removing sections. This is slow due to needing a re-encode, but the resulting video may have fewer artifacts around the cuts'
|
288 |
+
complete --command yt-dlp --long-option no-force-keyframes-at-cuts --description 'Do not force keyframes around the chapters when cutting/splitting (default)'
|
289 |
+
complete --command yt-dlp --long-option use-postprocessor --description 'The (case-sensitive) name of plugin postprocessors to be enabled, and (optionally) arguments to be passed to it, separated by a colon ":". ARGS are a semicolon ";" delimited list of NAME=VALUE. The "when" argument determines when the postprocessor is invoked. It can be one of "pre_process" (after video extraction), "after_filter" (after video passes filter), "video" (after --format; before --print/--output), "before_dl" (before each video download), "post_process" (after each video download; default), "after_move" (after moving the video file to its final location), "after_video" (after downloading and processing all formats of a video), or "playlist" (at end of playlist). This option can be used multiple times to add different postprocessors'
|
290 |
+
complete --command yt-dlp --long-option sponsorblock-mark --description 'SponsorBlock categories to create chapters for, separated by commas. Available categories are sponsor, intro, outro, selfpromo, preview, filler, interaction, music_offtopic, poi_highlight, chapter, all and default (=all). You can prefix the category with a "-" to exclude it. See [1] for descriptions of the categories. E.g. --sponsorblock-mark all,-preview [1] https://wiki.sponsor.ajay.app/w/Segment_Categories'
|
291 |
+
complete --command yt-dlp --long-option sponsorblock-remove --description 'SponsorBlock categories to be removed from the video file, separated by commas. If a category is present in both mark and remove, remove takes precedence. The syntax and available categories are the same as for --sponsorblock-mark except that "default" refers to "all,-filler" and poi_highlight, chapter are not available'
|
292 |
+
complete --command yt-dlp --long-option sponsorblock-chapter-title --description 'An output template for the title of the SponsorBlock chapters created by --sponsorblock-mark. The only available fields are start_time, end_time, category, categories, name, category_names. Defaults to "%default"'
|
293 |
+
complete --command yt-dlp --long-option no-sponsorblock --description 'Disable both --sponsorblock-mark and --sponsorblock-remove'
|
294 |
+
complete --command yt-dlp --long-option sponsorblock-api --description 'SponsorBlock API location, defaults to %default'
|
295 |
+
complete --command yt-dlp --long-option sponskrub
|
296 |
+
complete --command yt-dlp --long-option no-sponskrub
|
297 |
+
complete --command yt-dlp --long-option sponskrub-cut
|
298 |
+
complete --command yt-dlp --long-option no-sponskrub-cut
|
299 |
+
complete --command yt-dlp --long-option sponskrub-force
|
300 |
+
complete --command yt-dlp --long-option no-sponskrub-force
|
301 |
+
complete --command yt-dlp --long-option sponskrub-location
|
302 |
+
complete --command yt-dlp --long-option sponskrub-args
|
303 |
+
complete --command yt-dlp --long-option extractor-retries --description 'Number of retries for known extractor errors (default is %default), or "infinite"'
|
304 |
+
complete --command yt-dlp --long-option allow-dynamic-mpd --description 'Process dynamic DASH manifests (default) (Alias: --no-ignore-dynamic-mpd)'
|
305 |
+
complete --command yt-dlp --long-option ignore-dynamic-mpd --description 'Do not process dynamic DASH manifests (Alias: --no-allow-dynamic-mpd)'
|
306 |
+
complete --command yt-dlp --long-option hls-split-discontinuity --description 'Split HLS playlists to different formats at discontinuities such as ad breaks'
|
307 |
+
complete --command yt-dlp --long-option no-hls-split-discontinuity --description 'Do not split HLS playlists into different formats at discontinuities such as ad breaks (default)'
|
308 |
+
complete --command yt-dlp --long-option extractor-args --description 'Pass ARGS arguments to the IE_KEY extractor. See "EXTRACTOR ARGUMENTS" for details. You can use this option multiple times to give arguments for different extractors'
|
309 |
+
complete --command yt-dlp --long-option youtube-include-dash-manifest
|
310 |
+
complete --command yt-dlp --long-option youtube-skip-dash-manifest
|
311 |
+
complete --command yt-dlp --long-option youtube-include-hls-manifest
|
312 |
+
complete --command yt-dlp --long-option youtube-skip-hls-manifest
|
313 |
+
|
314 |
+
|
315 |
+
complete --command yt-dlp --arguments ":ytfavorites :ytrecommended :ytsubscriptions :ytwatchlater :ythistory"
|
.venv/share/man/man1/isympy.1
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'\" -*- coding: us-ascii -*-
|
2 |
+
.if \n(.g .ds T< \\FC
|
3 |
+
.if \n(.g .ds T> \\F[\n[.fam]]
|
4 |
+
.de URL
|
5 |
+
\\$2 \(la\\$1\(ra\\$3
|
6 |
+
..
|
7 |
+
.if \n(.g .mso www.tmac
|
8 |
+
.TH isympy 1 2007-10-8 "" ""
|
9 |
+
.SH NAME
|
10 |
+
isympy \- interactive shell for SymPy
|
11 |
+
.SH SYNOPSIS
|
12 |
+
'nh
|
13 |
+
.fi
|
14 |
+
.ad l
|
15 |
+
\fBisympy\fR \kx
|
16 |
+
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
|
17 |
+
'in \n(.iu+\nxu
|
18 |
+
[\fB-c\fR | \fB--console\fR] [\fB-p\fR ENCODING | \fB--pretty\fR ENCODING] [\fB-t\fR TYPE | \fB--types\fR TYPE] [\fB-o\fR ORDER | \fB--order\fR ORDER] [\fB-q\fR | \fB--quiet\fR] [\fB-d\fR | \fB--doctest\fR] [\fB-C\fR | \fB--no-cache\fR] [\fB-a\fR | \fB--auto\fR] [\fB-D\fR | \fB--debug\fR] [
|
19 |
+
-- | PYTHONOPTIONS]
|
20 |
+
'in \n(.iu-\nxu
|
21 |
+
.ad b
|
22 |
+
'hy
|
23 |
+
'nh
|
24 |
+
.fi
|
25 |
+
.ad l
|
26 |
+
\fBisympy\fR \kx
|
27 |
+
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
|
28 |
+
'in \n(.iu+\nxu
|
29 |
+
[
|
30 |
+
{\fB-h\fR | \fB--help\fR}
|
31 |
+
|
|
32 |
+
{\fB-v\fR | \fB--version\fR}
|
33 |
+
]
|
34 |
+
'in \n(.iu-\nxu
|
35 |
+
.ad b
|
36 |
+
'hy
|
37 |
+
.SH DESCRIPTION
|
38 |
+
isympy is a Python shell for SymPy. It is just a normal python shell
|
39 |
+
(ipython shell if you have the ipython package installed) that executes
|
40 |
+
the following commands so that you don't have to:
|
41 |
+
.PP
|
42 |
+
.nf
|
43 |
+
\*(T<
|
44 |
+
>>> from __future__ import division
|
45 |
+
>>> from sympy import *
|
46 |
+
>>> x, y, z = symbols("x,y,z")
|
47 |
+
>>> k, m, n = symbols("k,m,n", integer=True)
|
48 |
+
\*(T>
|
49 |
+
.fi
|
50 |
+
.PP
|
51 |
+
So starting isympy is equivalent to starting python (or ipython) and
|
52 |
+
executing the above commands by hand. It is intended for easy and quick
|
53 |
+
experimentation with SymPy. For more complicated programs, it is recommended
|
54 |
+
to write a script and import things explicitly (using the "from sympy
|
55 |
+
import sin, log, Symbol, ..." idiom).
|
56 |
+
.SH OPTIONS
|
57 |
+
.TP
|
58 |
+
\*(T<\fB\-c \fR\*(T>\fISHELL\fR, \*(T<\fB\-\-console=\fR\*(T>\fISHELL\fR
|
59 |
+
Use the specified shell (python or ipython) as
|
60 |
+
console backend instead of the default one (ipython
|
61 |
+
if present or python otherwise).
|
62 |
+
|
63 |
+
Example: isympy -c python
|
64 |
+
|
65 |
+
\fISHELL\fR could be either
|
66 |
+
\&'ipython' or 'python'
|
67 |
+
.TP
|
68 |
+
\*(T<\fB\-p \fR\*(T>\fIENCODING\fR, \*(T<\fB\-\-pretty=\fR\*(T>\fIENCODING\fR
|
69 |
+
Setup pretty printing in SymPy. By default, the most pretty, unicode
|
70 |
+
printing is enabled (if the terminal supports it). You can use less
|
71 |
+
pretty ASCII printing instead or no pretty printing at all.
|
72 |
+
|
73 |
+
Example: isympy -p no
|
74 |
+
|
75 |
+
\fIENCODING\fR must be one of 'unicode',
|
76 |
+
\&'ascii' or 'no'.
|
77 |
+
.TP
|
78 |
+
\*(T<\fB\-t \fR\*(T>\fITYPE\fR, \*(T<\fB\-\-types=\fR\*(T>\fITYPE\fR
|
79 |
+
Setup the ground types for the polys. By default, gmpy ground types
|
80 |
+
are used if gmpy2 or gmpy is installed, otherwise it falls back to python
|
81 |
+
ground types, which are a little bit slower. You can manually
|
82 |
+
choose python ground types even if gmpy is installed (e.g., for testing purposes).
|
83 |
+
|
84 |
+
Note that sympy ground types are not supported, and should be used
|
85 |
+
only for experimental purposes.
|
86 |
+
|
87 |
+
Note that the gmpy1 ground type is primarily intended for testing; it the
|
88 |
+
use of gmpy even if gmpy2 is available.
|
89 |
+
|
90 |
+
This is the same as setting the environment variable
|
91 |
+
SYMPY_GROUND_TYPES to the given ground type (e.g.,
|
92 |
+
SYMPY_GROUND_TYPES='gmpy')
|
93 |
+
|
94 |
+
The ground types can be determined interactively from the variable
|
95 |
+
sympy.polys.domains.GROUND_TYPES inside the isympy shell itself.
|
96 |
+
|
97 |
+
Example: isympy -t python
|
98 |
+
|
99 |
+
\fITYPE\fR must be one of 'gmpy',
|
100 |
+
\&'gmpy1' or 'python'.
|
101 |
+
.TP
|
102 |
+
\*(T<\fB\-o \fR\*(T>\fIORDER\fR, \*(T<\fB\-\-order=\fR\*(T>\fIORDER\fR
|
103 |
+
Setup the ordering of terms for printing. The default is lex, which
|
104 |
+
orders terms lexicographically (e.g., x**2 + x + 1). You can choose
|
105 |
+
other orderings, such as rev-lex, which will use reverse
|
106 |
+
lexicographic ordering (e.g., 1 + x + x**2).
|
107 |
+
|
108 |
+
Note that for very large expressions, ORDER='none' may speed up
|
109 |
+
printing considerably, with the tradeoff that the order of the terms
|
110 |
+
in the printed expression will have no canonical order
|
111 |
+
|
112 |
+
Example: isympy -o rev-lax
|
113 |
+
|
114 |
+
\fIORDER\fR must be one of 'lex', 'rev-lex', 'grlex',
|
115 |
+
\&'rev-grlex', 'grevlex', 'rev-grevlex', 'old', or 'none'.
|
116 |
+
.TP
|
117 |
+
\*(T<\fB\-q\fR\*(T>, \*(T<\fB\-\-quiet\fR\*(T>
|
118 |
+
Print only Python's and SymPy's versions to stdout at startup, and nothing else.
|
119 |
+
.TP
|
120 |
+
\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-\-doctest\fR\*(T>
|
121 |
+
Use the same format that should be used for doctests. This is
|
122 |
+
equivalent to '\fIisympy -c python -p no\fR'.
|
123 |
+
.TP
|
124 |
+
\*(T<\fB\-C\fR\*(T>, \*(T<\fB\-\-no\-cache\fR\*(T>
|
125 |
+
Disable the caching mechanism. Disabling the cache may slow certain
|
126 |
+
operations down considerably. This is useful for testing the cache,
|
127 |
+
or for benchmarking, as the cache can result in deceptive benchmark timings.
|
128 |
+
|
129 |
+
This is the same as setting the environment variable SYMPY_USE_CACHE
|
130 |
+
to 'no'.
|
131 |
+
.TP
|
132 |
+
\*(T<\fB\-a\fR\*(T>, \*(T<\fB\-\-auto\fR\*(T>
|
133 |
+
Automatically create missing symbols. Normally, typing a name of a
|
134 |
+
Symbol that has not been instantiated first would raise NameError,
|
135 |
+
but with this option enabled, any undefined name will be
|
136 |
+
automatically created as a Symbol. This only works in IPython 0.11.
|
137 |
+
|
138 |
+
Note that this is intended only for interactive, calculator style
|
139 |
+
usage. In a script that uses SymPy, Symbols should be instantiated
|
140 |
+
at the top, so that it's clear what they are.
|
141 |
+
|
142 |
+
This will not override any names that are already defined, which
|
143 |
+
includes the single character letters represented by the mnemonic
|
144 |
+
QCOSINE (see the "Gotchas and Pitfalls" document in the
|
145 |
+
documentation). You can delete existing names by executing "del
|
146 |
+
name" in the shell itself. You can see if a name is defined by typing
|
147 |
+
"'name' in globals()".
|
148 |
+
|
149 |
+
The Symbols that are created using this have default assumptions.
|
150 |
+
If you want to place assumptions on symbols, you should create them
|
151 |
+
using symbols() or var().
|
152 |
+
|
153 |
+
Finally, this only works in the top level namespace. So, for
|
154 |
+
example, if you define a function in isympy with an undefined
|
155 |
+
Symbol, it will not work.
|
156 |
+
.TP
|
157 |
+
\*(T<\fB\-D\fR\*(T>, \*(T<\fB\-\-debug\fR\*(T>
|
158 |
+
Enable debugging output. This is the same as setting the
|
159 |
+
environment variable SYMPY_DEBUG to 'True'. The debug status is set
|
160 |
+
in the variable SYMPY_DEBUG within isympy.
|
161 |
+
.TP
|
162 |
+
-- \fIPYTHONOPTIONS\fR
|
163 |
+
These options will be passed on to \fIipython (1)\fR shell.
|
164 |
+
Only supported when ipython is being used (standard python shell not supported).
|
165 |
+
|
166 |
+
Two dashes (--) are required to separate \fIPYTHONOPTIONS\fR
|
167 |
+
from the other isympy options.
|
168 |
+
|
169 |
+
For example, to run iSymPy without startup banner and colors:
|
170 |
+
|
171 |
+
isympy -q -c ipython -- --colors=NoColor
|
172 |
+
.TP
|
173 |
+
\*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T>
|
174 |
+
Print help output and exit.
|
175 |
+
.TP
|
176 |
+
\*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-version\fR\*(T>
|
177 |
+
Print isympy version information and exit.
|
178 |
+
.SH FILES
|
179 |
+
.TP
|
180 |
+
\*(T<\fI${HOME}/.sympy\-history\fR\*(T>
|
181 |
+
Saves the history of commands when using the python
|
182 |
+
shell as backend.
|
183 |
+
.SH BUGS
|
184 |
+
The upstreams BTS can be found at \(lahttps://github.com/sympy/sympy/issues\(ra
|
185 |
+
Please report all bugs that you find in there, this will help improve
|
186 |
+
the overall quality of SymPy.
|
187 |
+
.SH "SEE ALSO"
|
188 |
+
\fBipython\fR(1), \fBpython\fR(1)
|
.venv/share/man/man1/ttx.1
ADDED
@@ -0,0 +1,225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.Dd May 18, 2004
|
2 |
+
.\" ttx is not specific to any OS, but contrary to what groff_mdoc(7)
|
3 |
+
.\" seems to imply, entirely omitting the .Os macro causes 'BSD' to
|
4 |
+
.\" be used, so I give a zero-width space as its argument.
|
5 |
+
.Os \&
|
6 |
+
.\" The "FontTools Manual" argument apparently has no effect in
|
7 |
+
.\" groff 1.18.1. I think it is a bug in the -mdoc groff package.
|
8 |
+
.Dt TTX 1 "FontTools Manual"
|
9 |
+
.Sh NAME
|
10 |
+
.Nm ttx
|
11 |
+
.Nd tool for manipulating TrueType and OpenType fonts
|
12 |
+
.Sh SYNOPSIS
|
13 |
+
.Nm
|
14 |
+
.Bk
|
15 |
+
.Op Ar option ...
|
16 |
+
.Ek
|
17 |
+
.Bk
|
18 |
+
.Ar file ...
|
19 |
+
.Ek
|
20 |
+
.Sh DESCRIPTION
|
21 |
+
.Nm
|
22 |
+
is a tool for manipulating TrueType and OpenType fonts. It can convert
|
23 |
+
TrueType and OpenType fonts to and from an
|
24 |
+
.Tn XML Ns -based format called
|
25 |
+
.Tn TTX .
|
26 |
+
.Tn TTX
|
27 |
+
files have a
|
28 |
+
.Ql .ttx
|
29 |
+
extension.
|
30 |
+
.Pp
|
31 |
+
For each
|
32 |
+
.Ar file
|
33 |
+
argument it is given,
|
34 |
+
.Nm
|
35 |
+
detects whether it is a
|
36 |
+
.Ql .ttf ,
|
37 |
+
.Ql .otf
|
38 |
+
or
|
39 |
+
.Ql .ttx
|
40 |
+
file and acts accordingly: if it is a
|
41 |
+
.Ql .ttf
|
42 |
+
or
|
43 |
+
.Ql .otf
|
44 |
+
file, it generates a
|
45 |
+
.Ql .ttx
|
46 |
+
file; if it is a
|
47 |
+
.Ql .ttx
|
48 |
+
file, it generates a
|
49 |
+
.Ql .ttf
|
50 |
+
or
|
51 |
+
.Ql .otf
|
52 |
+
file.
|
53 |
+
.Pp
|
54 |
+
By default, every output file is created in the same directory as the
|
55 |
+
corresponding input file and with the same name except for the
|
56 |
+
extension, which is substituted appropriately.
|
57 |
+
.Nm
|
58 |
+
never overwrites existing files; if necessary, it appends a suffix to
|
59 |
+
the output file name before the extension, as in
|
60 |
+
.Pa Arial#1.ttf .
|
61 |
+
.Ss "General options"
|
62 |
+
.Bl -tag -width ".Fl t Ar table"
|
63 |
+
.It Fl h
|
64 |
+
Display usage information.
|
65 |
+
.It Fl d Ar dir
|
66 |
+
Write the output files to directory
|
67 |
+
.Ar dir
|
68 |
+
instead of writing every output file to the same directory as the
|
69 |
+
corresponding input file.
|
70 |
+
.It Fl o Ar file
|
71 |
+
Write the output to
|
72 |
+
.Ar file
|
73 |
+
instead of writing it to the same directory as the
|
74 |
+
corresponding input file.
|
75 |
+
.It Fl v
|
76 |
+
Be verbose. Write more messages to the standard output describing what
|
77 |
+
is being done.
|
78 |
+
.It Fl a
|
79 |
+
Allow virtual glyphs ID's on compile or decompile.
|
80 |
+
.El
|
81 |
+
.Ss "Dump options"
|
82 |
+
The following options control the process of dumping font files
|
83 |
+
(TrueType or OpenType) to
|
84 |
+
.Tn TTX
|
85 |
+
files.
|
86 |
+
.Bl -tag -width ".Fl t Ar table"
|
87 |
+
.It Fl l
|
88 |
+
List table information. Instead of dumping the font to a
|
89 |
+
.Tn TTX
|
90 |
+
file, display minimal information about each table.
|
91 |
+
.It Fl t Ar table
|
92 |
+
Dump table
|
93 |
+
.Ar table .
|
94 |
+
This option may be given multiple times to dump several tables at
|
95 |
+
once. When not specified, all tables are dumped.
|
96 |
+
.It Fl x Ar table
|
97 |
+
Exclude table
|
98 |
+
.Ar table
|
99 |
+
from the list of tables to dump. This option may be given multiple
|
100 |
+
times to exclude several tables from the dump. The
|
101 |
+
.Fl t
|
102 |
+
and
|
103 |
+
.Fl x
|
104 |
+
options are mutually exclusive.
|
105 |
+
.It Fl s
|
106 |
+
Split tables. Dump each table to a separate
|
107 |
+
.Tn TTX
|
108 |
+
file and write (under the name that would have been used for the output
|
109 |
+
file if the
|
110 |
+
.Fl s
|
111 |
+
option had not been given) one small
|
112 |
+
.Tn TTX
|
113 |
+
file containing references to the individual table dump files. This
|
114 |
+
file can be used as input to
|
115 |
+
.Nm
|
116 |
+
as long as the referenced files can be found in the same directory.
|
117 |
+
.It Fl i
|
118 |
+
.\" XXX: I suppose OpenType programs (exist and) are also affected.
|
119 |
+
Don't disassemble TrueType instructions. When this option is specified,
|
120 |
+
all TrueType programs (glyph programs, the font program and the
|
121 |
+
pre-program) are written to the
|
122 |
+
.Tn TTX
|
123 |
+
file as hexadecimal data instead of
|
124 |
+
assembly. This saves some time and results in smaller
|
125 |
+
.Tn TTX
|
126 |
+
files.
|
127 |
+
.It Fl y Ar n
|
128 |
+
When decompiling a TrueType Collection (TTC) file,
|
129 |
+
decompile font number
|
130 |
+
.Ar n ,
|
131 |
+
starting from 0.
|
132 |
+
.El
|
133 |
+
.Ss "Compilation options"
|
134 |
+
The following options control the process of compiling
|
135 |
+
.Tn TTX
|
136 |
+
files into font files (TrueType or OpenType):
|
137 |
+
.Bl -tag -width ".Fl t Ar table"
|
138 |
+
.It Fl m Ar fontfile
|
139 |
+
Merge the input
|
140 |
+
.Tn TTX
|
141 |
+
file
|
142 |
+
.Ar file
|
143 |
+
with
|
144 |
+
.Ar fontfile .
|
145 |
+
No more than one
|
146 |
+
.Ar file
|
147 |
+
argument can be specified when this option is used.
|
148 |
+
.It Fl b
|
149 |
+
Don't recalculate glyph bounding boxes. Use the values in the
|
150 |
+
.Tn TTX
|
151 |
+
file as is.
|
152 |
+
.El
|
153 |
+
.Sh "THE TTX FILE FORMAT"
|
154 |
+
You can find some information about the
|
155 |
+
.Tn TTX
|
156 |
+
file format in
|
157 |
+
.Pa documentation.html .
|
158 |
+
In particular, you will find in that file the list of tables understood by
|
159 |
+
.Nm
|
160 |
+
and the relations between TrueType GlyphIDs and the glyph names used in
|
161 |
+
.Tn TTX
|
162 |
+
files.
|
163 |
+
.Sh EXAMPLES
|
164 |
+
In the following examples, all files are read from and written to the
|
165 |
+
current directory. Additionally, the name given for the output file
|
166 |
+
assumes in every case that it did not exist before
|
167 |
+
.Nm
|
168 |
+
was invoked.
|
169 |
+
.Pp
|
170 |
+
Dump the TrueType font contained in
|
171 |
+
.Pa FreeSans.ttf
|
172 |
+
to
|
173 |
+
.Pa FreeSans.ttx :
|
174 |
+
.Pp
|
175 |
+
.Dl ttx FreeSans.ttf
|
176 |
+
.Pp
|
177 |
+
Compile
|
178 |
+
.Pa MyFont.ttx
|
179 |
+
into a TrueType or OpenType font file:
|
180 |
+
.Pp
|
181 |
+
.Dl ttx MyFont.ttx
|
182 |
+
.Pp
|
183 |
+
List the tables in
|
184 |
+
.Pa FreeSans.ttf
|
185 |
+
along with some information:
|
186 |
+
.Pp
|
187 |
+
.Dl ttx -l FreeSans.ttf
|
188 |
+
.Pp
|
189 |
+
Dump the
|
190 |
+
.Sq cmap
|
191 |
+
table from
|
192 |
+
.Pa FreeSans.ttf
|
193 |
+
to
|
194 |
+
.Pa FreeSans.ttx :
|
195 |
+
.Pp
|
196 |
+
.Dl ttx -t cmap FreeSans.ttf
|
197 |
+
.Sh NOTES
|
198 |
+
On MS\-Windows and MacOS,
|
199 |
+
.Nm
|
200 |
+
is available as a graphical application to which files can be dropped.
|
201 |
+
.Sh SEE ALSO
|
202 |
+
.Pa documentation.html
|
203 |
+
.Pp
|
204 |
+
.Xr fontforge 1 ,
|
205 |
+
.Xr ftinfo 1 ,
|
206 |
+
.Xr gfontview 1 ,
|
207 |
+
.Xr xmbdfed 1 ,
|
208 |
+
.Xr Font::TTF 3pm
|
209 |
+
.Sh AUTHORS
|
210 |
+
.Nm
|
211 |
+
was written by
|
212 |
+
.An -nosplit
|
213 |
+
.An "Just van Rossum" Aq [email protected] .
|
214 |
+
.Pp
|
215 |
+
This manual page was written by
|
216 |
+
.An "Florent Rougon" Aq [email protected]
|
217 |
+
for the Debian GNU/Linux system based on the existing FontTools
|
218 |
+
documentation. It may be freely used, modified and distributed without
|
219 |
+
restrictions.
|
220 |
+
.\" For Emacs:
|
221 |
+
.\" Local Variables:
|
222 |
+
.\" fill-column: 72
|
223 |
+
.\" sentence-end: "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[ \n]*"
|
224 |
+
.\" sentence-end-double-space: t
|
225 |
+
.\" End:
|
.venv/share/man/man1/yt-dlp.1
ADDED
The diff for this file is too large to render.
See raw diff
|
|
.venv/share/zsh/site-functions/_yt-dlp
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#compdef yt-dlp
|
2 |
+
|
3 |
+
__yt_dlp() {
|
4 |
+
local curcontext="$curcontext" fileopts diropts cur prev
|
5 |
+
typeset -A opt_args
|
6 |
+
fileopts="--download-archive|-a|--batch-file|--load-info-json|--load-info|--cookies|--no-cookies"
|
7 |
+
diropts="--cache-dir"
|
8 |
+
cur=$words[CURRENT]
|
9 |
+
case $cur in
|
10 |
+
:)
|
11 |
+
_arguments '*: :(::ytfavorites ::ytrecommended ::ytsubscriptions ::ytwatchlater ::ythistory)'
|
12 |
+
;;
|
13 |
+
*)
|
14 |
+
prev=$words[CURRENT-1]
|
15 |
+
if [[ ${prev} =~ ${fileopts} ]]; then
|
16 |
+
_path_files
|
17 |
+
elif [[ ${prev} =~ ${diropts} ]]; then
|
18 |
+
_path_files -/
|
19 |
+
elif [[ ${prev} == "--remux-video" ]]; then
|
20 |
+
_arguments '*: :(mp4 mkv)'
|
21 |
+
elif [[ ${prev} == "--recode-video" ]]; then
|
22 |
+
_arguments '*: :(mp4 flv ogg webm mkv)'
|
23 |
+
else
|
24 |
+
_arguments '*: :(--help --version --update --no-update --update-to --ignore-errors --no-abort-on-error --abort-on-error --dump-user-agent --list-extractors --extractor-descriptions --use-extractors --force-generic-extractor --default-search --ignore-config --no-config-locations --config-locations --plugin-dirs --no-plugin-dirs --flat-playlist --no-flat-playlist --live-from-start --no-live-from-start --wait-for-video --no-wait-for-video --mark-watched --no-mark-watched --no-colors --color --compat-options --alias --preset-alias --proxy --socket-timeout --source-address --impersonate --list-impersonate-targets --force-ipv4 --force-ipv6 --enable-file-urls --geo-verification-proxy --cn-verification-proxy --xff --geo-bypass --no-geo-bypass --geo-bypass-country --geo-bypass-ip-block --playlist-start --playlist-end --playlist-items --match-title --reject-title --min-filesize --max-filesize --date --datebefore --dateafter --min-views --max-views --match-filters --no-match-filters --break-match-filters --no-break-match-filters --no-playlist --yes-playlist --age-limit --download-archive --no-download-archive --max-downloads --break-on-existing --no-break-on-existing --break-on-reject --break-per-input --no-break-per-input --skip-playlist-after-errors --include-ads --no-include-ads --concurrent-fragments --limit-rate --throttled-rate --retries --file-access-retries --fragment-retries --retry-sleep --skip-unavailable-fragments --abort-on-unavailable-fragments --keep-fragments --no-keep-fragments --buffer-size --resize-buffer --no-resize-buffer --http-chunk-size --test --playlist-reverse --no-playlist-reverse --playlist-random --lazy-playlist --no-lazy-playlist --xattr-set-filesize --hls-prefer-native --hls-prefer-ffmpeg --hls-use-mpegts --no-hls-use-mpegts --download-sections --downloader --downloader-args --batch-file --no-batch-file --id --paths --output --output-na-placeholder --autonumber-size --autonumber-start --restrict-filenames --no-restrict-filenames --windows-filenames --no-windows-filenames --trim-filenames --no-overwrites --force-overwrites --no-force-overwrites --continue --no-continue --part --no-part --mtime --no-mtime --write-description --no-write-description --write-info-json --no-write-info-json --write-annotations --no-write-annotations --write-playlist-metafiles --no-write-playlist-metafiles --clean-info-json --no-clean-info-json --write-comments --no-write-comments --load-info-json --cookies --no-cookies --cookies-from-browser --no-cookies-from-browser --cache-dir --no-cache-dir --rm-cache-dir --write-thumbnail --no-write-thumbnail --write-all-thumbnails --list-thumbnails --write-link --write-url-link --write-webloc-link --write-desktop-link --quiet --no-quiet --no-warnings --simulate --no-simulate --ignore-no-formats-error --no-ignore-no-formats-error --skip-download --print --print-to-file --get-url --get-title --get-id --get-thumbnail --get-description --get-duration --get-filename --get-format --dump-json --dump-single-json --print-json --force-write-archive --newline --no-progress --progress --console-title --progress-template --progress-delta --verbose --dump-pages --write-pages --load-pages --youtube-print-sig-code --print-traffic --call-home --no-call-home --encoding --legacy-server-connect --no-check-certificates --prefer-insecure --user-agent --referer --add-headers --bidi-workaround --sleep-requests --sleep-interval --max-sleep-interval --sleep-subtitles --format --format-sort --format-sort-force --no-format-sort-force --video-multistreams --no-video-multistreams --audio-multistreams --no-audio-multistreams --all-formats --prefer-free-formats --no-prefer-free-formats --check-formats --check-all-formats --no-check-formats --list-formats --list-formats-as-table --list-formats-old --merge-output-format --allow-unplayable-formats --no-allow-unplayable-formats --write-subs --no-write-subs --write-auto-subs --no-write-auto-subs --all-subs --list-subs --sub-format --sub-langs --username --password --twofactor --netrc --netrc-location --netrc-cmd --video-password --ap-mso --ap-username --ap-password --ap-list-mso --client-certificate --client-certificate-key --client-certificate-password --extract-audio --audio-format --audio-quality --remux-video --recode-video --postprocessor-args --keep-video --no-keep-video --post-overwrites --no-post-overwrites --embed-subs --no-embed-subs --embed-thumbnail --no-embed-thumbnail --embed-metadata --no-embed-metadata --embed-chapters --no-embed-chapters --embed-info-json --no-embed-info-json --metadata-from-title --parse-metadata --replace-in-metadata --xattrs --concat-playlist --fixup --prefer-avconv --prefer-ffmpeg --ffmpeg-location --exec --no-exec --exec-before-download --no-exec-before-download --convert-subs --convert-thumbnails --split-chapters --no-split-chapters --remove-chapters --no-remove-chapters --force-keyframes-at-cuts --no-force-keyframes-at-cuts --use-postprocessor --sponsorblock-mark --sponsorblock-remove --sponsorblock-chapter-title --no-sponsorblock --sponsorblock-api --sponskrub --no-sponskrub --sponskrub-cut --no-sponskrub-cut --sponskrub-force --no-sponskrub-force --sponskrub-location --sponskrub-args --extractor-retries --allow-dynamic-mpd --ignore-dynamic-mpd --hls-split-discontinuity --no-hls-split-discontinuity --extractor-args --youtube-include-dash-manifest --youtube-skip-dash-manifest --youtube-include-hls-manifest --youtube-skip-hls-manifest)'
|
25 |
+
fi
|
26 |
+
;;
|
27 |
+
esac
|
28 |
+
}
|
29 |
+
|
30 |
+
__yt_dlp
|
HF_Deploy/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
HF_Deploy/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# GladiatorBB - Hugging Face Space
|
2 |
+
|
3 |
+
This is the deployment folder for the GladiatorBB bodybuilding pose analyzer app, supporting MoveNet (Gladiator BB), MediaPipe (Gladiator SupaDot), and CNN-based pose classification.
|
4 |
+
|
5 |
+
## How to Update This Space
|
6 |
+
|
7 |
+
1. **Install the Hugging Face Hub CLI:**
|
8 |
+
```bash
|
9 |
+
pip install huggingface_hub
|
10 |
+
```
|
11 |
+
|
12 |
+
2. **Login with your Hugging Face token:**
|
13 |
+
```bash
|
14 |
+
huggingface-cli login
|
15 |
+
```
|
16 |
+
|
17 |
+
3. **Push all files in this folder to your Space:**
|
18 |
+
```bash
|
19 |
+
huggingface-cli upload . scfive/GladiatorBB/ --repo-type=space --include '*' --delete
|
20 |
+
```
|
21 |
+
|
22 |
+
4. **Wait for the build to complete on Hugging Face Spaces.**
|
23 |
+
|
24 |
+
- To update, just repeat step 3 after making changes.
|
25 |
+
- This folder is self-contained and does not affect your local running app.
|
26 |
+
|
27 |
+
## Notes
|
28 |
+
- Space SDK: Docker
|
29 |
+
- App port: 7860 (set in Dockerfile)
|
30 |
+
- No YOLOv7 support (for reliability on Spaces)
|
31 |
+
- Large model files (e.g., .h5) are included for CNN pose classification
|
32 |
+
|
33 |
+
---
|
34 |
+
|
35 |
+
For issues or questions, contact the project maintainer.
|
HF_Deploy/app.py
ADDED
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from flask import Flask, render_template, request, jsonify, send_from_directory, url_for
|
2 |
+
from flask_cors import CORS
|
3 |
+
import cv2
|
4 |
+
import torch
|
5 |
+
import numpy as np
|
6 |
+
import os
|
7 |
+
from werkzeug.utils import secure_filename
|
8 |
+
import sys
|
9 |
+
import traceback
|
10 |
+
from tensorflow.keras.models import load_model
|
11 |
+
from tensorflow.keras.preprocessing import image
|
12 |
+
|
13 |
+
# Add bodybuilding_pose_analyzer to path
|
14 |
+
sys.path.append('.') # Assuming app.py is at the root of cv.github.io
|
15 |
+
from bodybuilding_pose_analyzer.src.movenet_analyzer import MoveNetAnalyzer
|
16 |
+
from bodybuilding_pose_analyzer.src.pose_analyzer import PoseAnalyzer
|
17 |
+
|
18 |
+
app = Flask(__name__, static_url_path='/static', static_folder='static')
|
19 |
+
CORS(app, resources={r"/*": {"origins": "*"}})
|
20 |
+
|
21 |
+
app.config['UPLOAD_FOLDER'] = 'static/uploads'
|
22 |
+
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB max file size
|
23 |
+
|
24 |
+
try:
|
25 |
+
os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)
|
26 |
+
except PermissionError:
|
27 |
+
pass # Ignore if we can't create it (e.g., on HF Spaces)
|
28 |
+
|
29 |
+
# Load CNN model for bodybuilding pose classification
|
30 |
+
cnn_model_path = 'external/BodybuildingPoseClassifier/bodybuilding_pose_classifier.h5'
|
31 |
+
cnn_model = load_model(cnn_model_path)
|
32 |
+
cnn_class_labels = ['Side Chest', 'Front Double Biceps', 'Back Double Biceps', 'Front Lat Spread', 'Back Lat Spread']
|
33 |
+
|
34 |
+
def predict_pose_cnn(img_path):
|
35 |
+
img = image.load_img(img_path, target_size=(150, 150))
|
36 |
+
img_array = image.img_to_array(img)
|
37 |
+
img_array = np.expand_dims(img_array, axis=0) / 255.0
|
38 |
+
predictions = cnn_model.predict(img_array)
|
39 |
+
predicted_class = np.argmax(predictions, axis=1)
|
40 |
+
confidence = float(np.max(predictions))
|
41 |
+
return cnn_class_labels[predicted_class[0]], confidence
|
42 |
+
|
43 |
+
@app.route('/static/uploads/<path:filename>')
|
44 |
+
def serve_video(filename):
|
45 |
+
response = send_from_directory(app.config['UPLOAD_FOLDER'], filename, as_attachment=False)
|
46 |
+
# Ensure correct content type, especially for Safari/iOS if issues arise
|
47 |
+
if filename.lower().endswith('.mp4'):
|
48 |
+
response.headers['Content-Type'] = 'video/mp4'
|
49 |
+
return response
|
50 |
+
|
51 |
+
@app.after_request
|
52 |
+
def after_request(response):
|
53 |
+
response.headers.add('Access-Control-Allow-Origin', '*')
|
54 |
+
response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization,X-Requested-With,Accept')
|
55 |
+
response.headers.add('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS')
|
56 |
+
return response
|
57 |
+
|
58 |
+
def process_video_movenet(video_path, model_variant='lightning', pose_type='front_double_biceps'):
|
59 |
+
try:
|
60 |
+
print(f"[PROCESS_VIDEO_MOVENET] Called with video_path: {video_path}, model_variant: {model_variant}, pose_type: {pose_type}")
|
61 |
+
if not os.path.exists(video_path):
|
62 |
+
raise FileNotFoundError(f"Video file not found: {video_path}")
|
63 |
+
|
64 |
+
analyzer = MoveNetAnalyzer(model_name=model_variant)
|
65 |
+
cap = cv2.VideoCapture(video_path)
|
66 |
+
if not cap.isOpened():
|
67 |
+
raise ValueError(f"Failed to open video file: {video_path}")
|
68 |
+
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
69 |
+
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
|
70 |
+
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
71 |
+
print(f"Processing video with MoveNet ({model_variant}): {width}x{height} @ {fps}fps")
|
72 |
+
output_filename = f'output_movenet_{model_variant}.mp4'
|
73 |
+
output_path = os.path.join(app.config['UPLOAD_FOLDER'], output_filename)
|
74 |
+
fourcc = cv2.VideoWriter_fourcc(*'avc1')
|
75 |
+
out = cv2.VideoWriter(output_path, fourcc, fps, (width, height))
|
76 |
+
frame_count = 0
|
77 |
+
current_pose = pose_type # Initialized (e.g., to 'front_double_biceps')
|
78 |
+
segment_length = 4 * fps if fps > 0 else 120 # 4 seconds worth of frames
|
79 |
+
cnn_pose = None
|
80 |
+
last_valid_landmarks = None
|
81 |
+
while cap.isOpened():
|
82 |
+
ret, frame = cap.read()
|
83 |
+
if not ret:
|
84 |
+
break
|
85 |
+
frame_count += 1
|
86 |
+
# Detect pose and get landmarks, reusing last valid landmarks if needed
|
87 |
+
frame_with_pose, landmarks_analysis, landmarks = analyzer.process_frame(frame, current_pose, last_valid_landmarks=last_valid_landmarks)
|
88 |
+
if landmarks:
|
89 |
+
last_valid_landmarks = landmarks
|
90 |
+
# Every 4 seconds, classify the pose (rule-based and CNN)
|
91 |
+
if (frame_count - 1) % segment_length == 0:
|
92 |
+
if landmarks:
|
93 |
+
detected_pose = analyzer.classify_pose(landmarks)
|
94 |
+
print(f"[AUTO-POSE] Frame {frame_count}: Detected pose: {detected_pose}")
|
95 |
+
current_pose = detected_pose
|
96 |
+
else:
|
97 |
+
print(f"[AUTO-POSE] Frame {frame_count}: No landmarks detected, keeping previous pose: {current_pose}")
|
98 |
+
# CNN prediction (every 4 seconds)
|
99 |
+
temp_img_path = f'temp_frame_for_cnn_{frame_count}.jpg'
|
100 |
+
cv2.imwrite(temp_img_path, frame)
|
101 |
+
try:
|
102 |
+
cnn_pose_pred, cnn_conf = predict_pose_cnn(temp_img_path)
|
103 |
+
print(f"[CNN] Frame {frame_count}: Pose: {cnn_pose_pred}, Conf: {cnn_conf:.2f}")
|
104 |
+
if cnn_conf >= 0.3:
|
105 |
+
current_pose = cnn_pose_pred # <--- HERE current_pose is updated
|
106 |
+
except Exception as e:
|
107 |
+
print(f"[CNN] Error predicting pose: {e}")
|
108 |
+
cnn_pose_pred, cnn_conf = None, 0.0
|
109 |
+
if os.path.exists(temp_img_path):
|
110 |
+
os.remove(temp_img_path)
|
111 |
+
# Determine best pose
|
112 |
+
if cnn_conf >= 0.3:
|
113 |
+
best_pose = cnn_pose_pred
|
114 |
+
elif landmarks:
|
115 |
+
best_pose = analyzer.classify_pose(landmarks)
|
116 |
+
else:
|
117 |
+
best_pose = 'Uncertain'
|
118 |
+
# Analyze using the current pose
|
119 |
+
analysis = analyzer.analyze_pose(landmarks, current_pose) if landmarks else {'error': 'No pose detected'}
|
120 |
+
# Overlay results
|
121 |
+
y_offset = 90
|
122 |
+
if 'error' not in analysis:
|
123 |
+
display_model_name = f"Gladiator {model_variant.capitalize()}"
|
124 |
+
cv2.putText(frame_with_pose, f"Model: {display_model_name}",
|
125 |
+
(10, 30), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 255, 255), 2)
|
126 |
+
cv2.putText(frame_with_pose, f"Gladiator Pose: {best_pose}", (10, 60), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 0, 0), 2)
|
127 |
+
for joint, angle in analysis.get('angles', {}).items():
|
128 |
+
text_to_display = f"{joint.capitalize()}: {angle:.1f} deg"
|
129 |
+
cv2.putText(frame_with_pose, text_to_display,
|
130 |
+
(10, y_offset), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 255, 0), 2)
|
131 |
+
y_offset += 25
|
132 |
+
for correction in analysis.get('corrections', []):
|
133 |
+
cv2.putText(frame_with_pose, correction,
|
134 |
+
(10, y_offset), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 0, 255), 2)
|
135 |
+
y_offset += 25
|
136 |
+
else:
|
137 |
+
cv2.putText(frame_with_pose, analysis['error'],
|
138 |
+
(10, 30), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
|
139 |
+
out.write(frame_with_pose)
|
140 |
+
cap.release()
|
141 |
+
out.release()
|
142 |
+
if frame_count == 0:
|
143 |
+
raise ValueError("No frames were processed from the video by MoveNet")
|
144 |
+
print(f"MoveNet video processing completed. Processed {frame_count} frames. Output: {output_path}")
|
145 |
+
return url_for('serve_video', filename=output_filename, _external=False)
|
146 |
+
except Exception as e:
|
147 |
+
print(f'Error in process_video_movenet: {e}')
|
148 |
+
traceback.print_exc()
|
149 |
+
raise
|
150 |
+
|
151 |
+
def process_video_mediapipe(video_path):
|
152 |
+
try:
|
153 |
+
print(f"[PROCESS_VIDEO_MEDIAPIPE] Called with video_path: {video_path}")
|
154 |
+
if not os.path.exists(video_path):
|
155 |
+
raise FileNotFoundError(f"Video file not found: {video_path}")
|
156 |
+
|
157 |
+
analyzer = PoseAnalyzer()
|
158 |
+
cap = cv2.VideoCapture(video_path)
|
159 |
+
if not cap.isOpened():
|
160 |
+
raise ValueError(f"Failed to open video file: {video_path}")
|
161 |
+
fps = int(cap.get(cv2.CAP_PROP_FPS))
|
162 |
+
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
|
163 |
+
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
164 |
+
print(f"Processing video with MediaPipe: {width}x{height} @ {fps}fps")
|
165 |
+
output_filename = f'output_mediapipe.mp4'
|
166 |
+
output_path = os.path.join(app.config['UPLOAD_FOLDER'], output_filename)
|
167 |
+
fourcc = cv2.VideoWriter_fourcc(*'avc1')
|
168 |
+
out = cv2.VideoWriter(output_path, fourcc, fps, (width, height))
|
169 |
+
frame_count = 0
|
170 |
+
cnn_pose = None
|
171 |
+
segment_length = 4 * fps if fps > 0 else 120 # 4 seconds worth of frames
|
172 |
+
last_valid_landmarks = None
|
173 |
+
while cap.isOpened():
|
174 |
+
ret, frame = cap.read()
|
175 |
+
if not ret:
|
176 |
+
break
|
177 |
+
frame_count += 1
|
178 |
+
# Detect pose and analyze, reusing last valid landmarks if needed
|
179 |
+
frame_with_pose, analysis, landmarks = analyzer.process_frame(frame, last_valid_landmarks=last_valid_landmarks)
|
180 |
+
if landmarks:
|
181 |
+
last_valid_landmarks = landmarks
|
182 |
+
# Every 4 seconds, classify the pose using CNN
|
183 |
+
if (frame_count - 1) % segment_length == 0:
|
184 |
+
temp_img_path = 'temp_frame_for_cnn.jpg'
|
185 |
+
cv2.imwrite(temp_img_path, frame)
|
186 |
+
try:
|
187 |
+
cnn_pose, cnn_conf = predict_pose_cnn(temp_img_path)
|
188 |
+
print(f"[CNN] Confidence: {cnn_conf:.3f} for pose: {cnn_pose}")
|
189 |
+
except Exception as e:
|
190 |
+
print(f"[CNN] Error predicting pose: {e}")
|
191 |
+
cnn_pose, cnn_conf = None, 0.0
|
192 |
+
if os.path.exists(temp_img_path):
|
193 |
+
os.remove(temp_img_path)
|
194 |
+
# Determine best pose
|
195 |
+
if cnn_conf >= 0.3:
|
196 |
+
best_pose = cnn_pose
|
197 |
+
else:
|
198 |
+
best_pose = 'Uncertain'
|
199 |
+
# Overlay results
|
200 |
+
y_offset = 30
|
201 |
+
cv2.putText(frame_with_pose, f"Model: Gladiator SupaDot", (10, y_offset), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 255, 255), 2)
|
202 |
+
y_offset += 30
|
203 |
+
cv2.putText(frame_with_pose, f"Gladiator Pose: {best_pose}", (10, y_offset), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 0, 0), 2)
|
204 |
+
y_offset += 30
|
205 |
+
if 'error' not in analysis:
|
206 |
+
for joint, angle in analysis.get('angles', {}).items():
|
207 |
+
text_to_display = f"{joint.capitalize()}: {angle:.1f} deg"
|
208 |
+
cv2.putText(frame_with_pose, text_to_display, (10, y_offset), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 255, 0), 2)
|
209 |
+
y_offset += 25
|
210 |
+
for correction in analysis.get('corrections', []):
|
211 |
+
cv2.putText(frame_with_pose, correction, (10, y_offset), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 0, 255), 2)
|
212 |
+
y_offset += 25
|
213 |
+
else:
|
214 |
+
cv2.putText(frame_with_pose, analysis['error'], (10, y_offset), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
|
215 |
+
out.write(frame_with_pose)
|
216 |
+
cap.release()
|
217 |
+
out.release()
|
218 |
+
if frame_count == 0:
|
219 |
+
raise ValueError("No frames were processed from the video by MediaPipe")
|
220 |
+
print(f"MediaPipe video processing completed. Processed {frame_count} frames. Output: {output_path}")
|
221 |
+
return url_for('serve_video', filename=output_filename, _external=False)
|
222 |
+
except Exception as e:
|
223 |
+
print(f'Error in process_video_mediapipe: {e}')
|
224 |
+
traceback.print_exc()
|
225 |
+
raise
|
226 |
+
|
227 |
+
@app.route('/')
|
228 |
+
def index():
|
229 |
+
return render_template('index.html')
|
230 |
+
|
231 |
+
@app.route('/upload', methods=['POST'])
|
232 |
+
def upload_file():
|
233 |
+
try:
|
234 |
+
if 'video' not in request.files:
|
235 |
+
return jsonify({'error': 'No video file provided'}), 400
|
236 |
+
file = request.files['video']
|
237 |
+
if file.filename == '':
|
238 |
+
return jsonify({'error': 'No selected file'}), 400
|
239 |
+
if file:
|
240 |
+
allowed_extensions = {'mp4', 'avi', 'mov', 'mkv'}
|
241 |
+
if '.' not in file.filename or file.filename.rsplit('.', 1)[1].lower() not in allowed_extensions:
|
242 |
+
return jsonify({'error': 'Invalid file format. Allowed formats: mp4, avi, mov, mkv'}), 400
|
243 |
+
filename = secure_filename(file.filename)
|
244 |
+
filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)
|
245 |
+
file.save(filepath)
|
246 |
+
print(f"File saved to: {filepath}")
|
247 |
+
try:
|
248 |
+
model_choice = request.form.get('model_choice', 'Gladiator SupaDot')
|
249 |
+
if model_choice == 'movenet':
|
250 |
+
movenet_variant = request.form.get('movenet_variant', 'lightning')
|
251 |
+
output_path_url = process_video_movenet(filepath, model_variant=movenet_variant)
|
252 |
+
else:
|
253 |
+
output_path_url = process_video_mediapipe(filepath)
|
254 |
+
print(f"[DEBUG] Generated video URL for client: {output_path_url}")
|
255 |
+
return jsonify({
|
256 |
+
'message': f'Video processed successfully with {model_choice}',
|
257 |
+
'output_path': output_path_url
|
258 |
+
})
|
259 |
+
except Exception as e:
|
260 |
+
print(f"Error processing video: {e}")
|
261 |
+
traceback.print_exc()
|
262 |
+
return jsonify({'error': f'Error processing video: {str(e)}'}), 500
|
263 |
+
finally:
|
264 |
+
if os.path.exists(filepath):
|
265 |
+
os.remove(filepath)
|
266 |
+
except Exception as e:
|
267 |
+
print(f"Error in upload_file: {e}")
|
268 |
+
traceback.print_exc()
|
269 |
+
return jsonify({'error': 'Internal server error'}), 500
|
270 |
+
|
271 |
+
if __name__ == "__main__":
|
272 |
+
app.run(host="0.0.0.0", port=7860, debug=True)
|
HF_Deploy/bodybuilding_pose_analyzer/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
HF_Deploy/bodybuilding_pose_analyzer/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Bodybuilding Pose Analyzer
|
2 |
+
|
3 |
+
A real-time pose analysis tool for bodybuilders that helps analyze and provide feedback on common bodybuilding poses.
|
4 |
+
|
5 |
+
## Features
|
6 |
+
|
7 |
+
- Real-time pose detection using MediaPipe
|
8 |
+
- Analysis of common bodybuilding poses:
|
9 |
+
- Front Double Biceps
|
10 |
+
- Side Chest
|
11 |
+
- Back Double Biceps
|
12 |
+
- Angle measurements for key body parts
|
13 |
+
- Real-time feedback and corrections
|
14 |
+
- FPS display
|
15 |
+
|
16 |
+
## Requirements
|
17 |
+
|
18 |
+
- Python 3.8+
|
19 |
+
- Webcam
|
20 |
+
- Required Python packages (listed in requirements.txt)
|
21 |
+
|
22 |
+
## Installation
|
23 |
+
|
24 |
+
1. Clone the repository:
|
25 |
+
```bash
|
26 |
+
git clone <repository-url>
|
27 |
+
cd bodybuilding_pose_analyzer
|
28 |
+
```
|
29 |
+
|
30 |
+
2. Create a virtual environment (recommended):
|
31 |
+
```bash
|
32 |
+
python -m venv venv
|
33 |
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
34 |
+
```
|
35 |
+
|
36 |
+
3. Install required packages:
|
37 |
+
```bash
|
38 |
+
pip install -r requirements.txt
|
39 |
+
```
|
40 |
+
|
41 |
+
## Usage
|
42 |
+
|
43 |
+
1. Run the demo script:
|
44 |
+
```bash
|
45 |
+
python src/demo.py
|
46 |
+
```
|
47 |
+
|
48 |
+
2. Position yourself in front of the webcam
|
49 |
+
3. The system will automatically detect your pose and provide feedback
|
50 |
+
4. Press 'q' to quit the application
|
51 |
+
|
52 |
+
## Supported Poses
|
53 |
+
|
54 |
+
Currently, the system supports the following poses:
|
55 |
+
- Front Double Biceps
|
56 |
+
- Side Chest
|
57 |
+
- Back Double Biceps
|
58 |
+
|
59 |
+
More poses will be added in future updates.
|
60 |
+
|
61 |
+
## Contributing
|
62 |
+
|
63 |
+
Feel free to submit issues and enhancement requests!
|
HF_Deploy/bodybuilding_pose_analyzer/requirements.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
opencv-python>=4.8.0
|
2 |
+
mediapipe>=0.10.0
|
3 |
+
numpy>=1.24.0
|
4 |
+
torch>=2.0.0
|
5 |
+
torchvision>=0.15.0
|
6 |
+
scikit-learn>=1.3.0
|
7 |
+
matplotlib>=3.7.0
|
8 |
+
tqdm>=4.65.0
|
HF_Deploy/bodybuilding_pose_analyzer/src/demo.py
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import cv2
|
2 |
+
import time
|
3 |
+
import argparse
|
4 |
+
from pose_analyzer import PoseAnalyzer
|
5 |
+
|
6 |
+
def process_video(video_source, analyzer):
|
7 |
+
# Initialize video capture
|
8 |
+
cap = cv2.VideoCapture(video_source)
|
9 |
+
|
10 |
+
# Set window properties
|
11 |
+
cv2.namedWindow('Bodybuilding Pose Analyzer', cv2.WINDOW_NORMAL)
|
12 |
+
cv2.resizeWindow('Bodybuilding Pose Analyzer', 1280, 720)
|
13 |
+
|
14 |
+
# FPS calculation variables
|
15 |
+
prev_time = 0
|
16 |
+
curr_time = 0
|
17 |
+
|
18 |
+
while cap.isOpened():
|
19 |
+
# Read frame
|
20 |
+
ret, frame = cap.read()
|
21 |
+
if not ret:
|
22 |
+
break
|
23 |
+
|
24 |
+
# Calculate FPS
|
25 |
+
curr_time = time.time()
|
26 |
+
fps = 1 / (curr_time - prev_time) if prev_time > 0 else 0
|
27 |
+
prev_time = curr_time
|
28 |
+
|
29 |
+
# Process frame
|
30 |
+
frame_with_pose, analysis = analyzer.process_frame(frame)
|
31 |
+
|
32 |
+
# Add FPS and analysis text to frame
|
33 |
+
cv2.putText(frame_with_pose, f'FPS: {fps:.1f}', (10, 30),
|
34 |
+
cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0), 2)
|
35 |
+
|
36 |
+
# Display feedback
|
37 |
+
if 'error' not in analysis:
|
38 |
+
y_offset = 70
|
39 |
+
cv2.putText(frame_with_pose, f'Pose: {analysis["pose_type"]}', (10, y_offset),
|
40 |
+
cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0), 2)
|
41 |
+
|
42 |
+
for angle_name, angle_value in analysis['angles'].items():
|
43 |
+
y_offset += 40
|
44 |
+
cv2.putText(frame_with_pose, f'{angle_name}: {angle_value:.1f}°', (10, y_offset),
|
45 |
+
cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0), 2)
|
46 |
+
|
47 |
+
for correction in analysis['corrections']:
|
48 |
+
y_offset += 40
|
49 |
+
cv2.putText(frame_with_pose, correction, (10, y_offset),
|
50 |
+
cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 2)
|
51 |
+
else:
|
52 |
+
cv2.putText(frame_with_pose, analysis['error'], (10, 70),
|
53 |
+
cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 2)
|
54 |
+
|
55 |
+
# Display the frame
|
56 |
+
cv2.imshow('Bodybuilding Pose Analyzer', frame_with_pose)
|
57 |
+
|
58 |
+
# Break the loop if 'q' is pressed
|
59 |
+
if cv2.waitKey(1) & 0xFF == ord('q'):
|
60 |
+
break
|
61 |
+
|
62 |
+
# Release resources
|
63 |
+
cap.release()
|
64 |
+
cv2.destroyAllWindows()
|
65 |
+
|
66 |
+
def main():
|
67 |
+
# Parse command line arguments
|
68 |
+
parser = argparse.ArgumentParser(description='Bodybuilding Pose Analyzer Demo')
|
69 |
+
parser.add_argument('--video', type=str, help='Path to video file (optional)')
|
70 |
+
args = parser.parse_args()
|
71 |
+
|
72 |
+
# Initialize the pose analyzer
|
73 |
+
analyzer = PoseAnalyzer()
|
74 |
+
|
75 |
+
# Process video (either webcam or file)
|
76 |
+
video_source = args.video if args.video else 0
|
77 |
+
process_video(video_source, analyzer)
|
78 |
+
|
79 |
+
if __name__ == '__main__':
|
80 |
+
main()
|