Spaces:
Running
Running
initial add app.py
Browse files- .gitattributes +2 -0
- .gitignore +3 -0
- README.md +6 -6
- app.py +0 -0
- examples/NieRAutomata/nier2B_01.jpg +3 -0
- examples/NieRAutomata/nier2B_02.jpg +3 -0
- examples/NieRAutomata/nier2B_03.jpg +3 -0
- examples/NieRAutomata/nier2B_04.jpg +3 -0
- examples/NieRAutomata/nier2B_05.jpg +3 -0
- examples/NieRAutomata/nier2B_06.jpg +3 -0
- examples/NieRAutomata/nier2B_07.jpg +3 -0
- examples/NieRAutomata/nier2B_08.jpg +3 -0
- examples/NieRAutomata/nier2B_09.jpg +3 -0
- examples/NieRAutomata/nier2B_10.jpg +3 -0
- examples/Wetter-Panorama/Wetter-Panorama1[NIuO6hrFTrg].mp4 +3 -0
- examples/Wetter-Panorama/Wetter-Panorama2[NIuO6hrFTrg].mp4 +3 -0
- examples/cat/cat_left.jpg +3 -0
- examples/cat/cat_right.jpg +3 -0
- examples/photographs1/img1.jpg +3 -0
- examples/photographs1/img2.jpg +3 -0
- examples/photographs1/img3.jpg +3 -0
- examples/photographs1/img4.jpg +3 -0
- examples/ギルドの受付嬢ですが/Girumasu_1.jpg +3 -0
- examples/ギルドの受付嬢ですが/Girumasu_2.jpg +3 -0
- examples/ギルドの受付嬢ですが/Girumasu_3.jpg +3 -0
- requirements.txt +2 -0
- webui.bat +73 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
.vs
|
2 |
+
venv
|
3 |
+
tmp
|
README.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
---
|
2 |
title: ImageStitcherByOpenCV
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 5.
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
license: mit
|
11 |
-
short_description: OpenCV Image Stitcher
|
12 |
---
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
title: ImageStitcherByOpenCV
|
3 |
+
emoji: 🖼️
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.27.0
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
license: mit
|
11 |
+
short_description: OpenCV Image Stitcher (SCANS, PANORAMA, DIRECT_PAIRWISE)
|
12 |
---
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
examples/NieRAutomata/nier2B_01.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_02.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_03.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_04.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_05.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_06.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_07.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_08.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_09.jpg
ADDED
![]() |
Git LFS Details
|
examples/NieRAutomata/nier2B_10.jpg
ADDED
![]() |
Git LFS Details
|
examples/Wetter-Panorama/Wetter-Panorama1[NIuO6hrFTrg].mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4cab519fdb567ac5b23bef12a884a6e1b87261338791b0f6216363cd9d31c8b4
|
3 |
+
size 502434
|
examples/Wetter-Panorama/Wetter-Panorama2[NIuO6hrFTrg].mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c877be57a713e2a16300ff2021051e2e31b06feaeefe405f51c132931d1f2d1d
|
3 |
+
size 1731461
|
examples/cat/cat_left.jpg
ADDED
![]() |
Git LFS Details
|
examples/cat/cat_right.jpg
ADDED
![]() |
Git LFS Details
|
examples/photographs1/img1.jpg
ADDED
![]() |
Git LFS Details
|
examples/photographs1/img2.jpg
ADDED
![]() |
Git LFS Details
|
examples/photographs1/img3.jpg
ADDED
![]() |
Git LFS Details
|
examples/photographs1/img4.jpg
ADDED
![]() |
Git LFS Details
|
examples/ギルドの受付嬢ですが/Girumasu_1.jpg
ADDED
![]() |
Git LFS Details
|
examples/ギルドの受付嬢ですが/Girumasu_2.jpg
ADDED
![]() |
Git LFS Details
|
examples/ギルドの受付嬢ですが/Girumasu_3.jpg
ADDED
![]() |
Git LFS Details
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio==5.27.0
|
2 |
+
opencv-contrib-python
|
webui.bat
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@echo off
|
2 |
+
|
3 |
+
:: The source of the webui.bat file is stable-diffusion-webui
|
4 |
+
:: set COMMANDLINE_ARGS=--whisper_implementation faster-whisper --input_audio_max_duration -1 --default_model_name large-v2 --auto_parallel True --output_dir output --vad_max_merge_size 90 --save_downloaded_files --autolaunch
|
5 |
+
|
6 |
+
if not defined PYTHON (set PYTHON=python)
|
7 |
+
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
|
8 |
+
|
9 |
+
mkdir tmp 2>NUL
|
10 |
+
|
11 |
+
%PYTHON% -c "" >tmp/stdout.txt 2>tmp/stderr.txt
|
12 |
+
if %ERRORLEVEL% == 0 goto :check_pip
|
13 |
+
echo Couldn't launch python
|
14 |
+
goto :show_stdout_stderr
|
15 |
+
|
16 |
+
:check_pip
|
17 |
+
%PYTHON% -mpip --help >tmp/stdout.txt 2>tmp/stderr.txt
|
18 |
+
if %ERRORLEVEL% == 0 goto :start_venv
|
19 |
+
if "%PIP_INSTALLER_LOCATION%" == "" goto :show_stdout_stderr
|
20 |
+
%PYTHON% "%PIP_INSTALLER_LOCATION%" >tmp/stdout.txt 2>tmp/stderr.txt
|
21 |
+
if %ERRORLEVEL% == 0 goto :start_venv
|
22 |
+
echo Couldn't install pip
|
23 |
+
goto :show_stdout_stderr
|
24 |
+
|
25 |
+
:start_venv
|
26 |
+
if ["%VENV_DIR%"] == ["-"] goto :skip_venv
|
27 |
+
if ["%SKIP_VENV%"] == ["1"] goto :skip_venv
|
28 |
+
|
29 |
+
dir "%VENV_DIR%\Scripts\Python.exe" >tmp/stdout.txt 2>tmp/stderr.txt
|
30 |
+
if %ERRORLEVEL% == 0 goto :activate_venv
|
31 |
+
|
32 |
+
for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"
|
33 |
+
echo Creating venv in directory %VENV_DIR% using python %PYTHON_FULLNAME%
|
34 |
+
%PYTHON_FULLNAME% -m venv "%VENV_DIR%" >tmp/stdout.txt 2>tmp/stderr.txt
|
35 |
+
if %ERRORLEVEL% == 0 goto :activate_venv
|
36 |
+
echo Unable to create venv in directory "%VENV_DIR%"
|
37 |
+
goto :show_stdout_stderr
|
38 |
+
|
39 |
+
:activate_venv
|
40 |
+
set PYTHON="%VENV_DIR%\Scripts\Python.exe"
|
41 |
+
echo venv %PYTHON%
|
42 |
+
|
43 |
+
:skip_venv
|
44 |
+
goto :launch
|
45 |
+
|
46 |
+
:launch
|
47 |
+
%PYTHON% app.py %COMMANDLINE_ARGS% %*
|
48 |
+
pause
|
49 |
+
exit /b
|
50 |
+
|
51 |
+
:show_stdout_stderr
|
52 |
+
|
53 |
+
echo.
|
54 |
+
echo exit code: %errorlevel%
|
55 |
+
|
56 |
+
for /f %%i in ("tmp\stdout.txt") do set size=%%~zi
|
57 |
+
if %size% equ 0 goto :show_stderr
|
58 |
+
echo.
|
59 |
+
echo stdout:
|
60 |
+
type tmp\stdout.txt
|
61 |
+
|
62 |
+
:show_stderr
|
63 |
+
for /f %%i in ("tmp\stderr.txt") do set size=%%~zi
|
64 |
+
if %size% equ 0 goto :show_stderr
|
65 |
+
echo.
|
66 |
+
echo stderr:
|
67 |
+
type tmp\stderr.txt
|
68 |
+
|
69 |
+
:endofscript
|
70 |
+
|
71 |
+
echo.
|
72 |
+
echo Launch unsuccessful. Exiting.
|
73 |
+
pause
|