MakiAi commited on
Commit
31b3477
·
1 Parent(s): 72358ac

🔧 プロジェクト設定とパッケージ依存関係の更新

Browse files

- pyproject.tomlを追加してプロジェクト構成を定義
- requirements.txtを動画処理用ライブラリに変更(OpenCV、NumPy、Pillow、scikit-image)
- .gitignoreに動画ファイルとバッチ処理結果を追加

Files changed (3) hide show
  1. .gitignore +5 -0
  2. pyproject.toml +163 -0
  3. requirements.txt +4 -3
.gitignore CHANGED
@@ -206,3 +206,8 @@ marimo/_static/
206
  marimo/_lsp/
207
  __marimo__/
208
  .SourceSageAssets/
 
 
 
 
 
 
206
  marimo/_lsp/
207
  __marimo__/
208
  .SourceSageAssets/
209
+ assets/*.mp4
210
+ uv.lock
211
+ assets/example/REI/input/*.mp4
212
+ assets/example/REI/output/*.mp4
213
+ assets/example/REI/output/batch_report.txt
pyproject.toml ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "frame-bridge"
7
+ version = "1.0.0"
8
+ description = "AI-powered video frame bridging application using SSIM technology"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ authors = [
12
+ {name = "Sunwood AI Labs", email = "[email protected]"}
13
+ ]
14
+ maintainers = [
15
+ {name = "Sunwood AI Labs", email = "[email protected]"}
16
+ ]
17
+ keywords = [
18
+ "video-processing",
19
+ "ai",
20
+ "computer-vision",
21
+ "gradio",
22
+ "opencv",
23
+ "ssim",
24
+ "frame-analysis",
25
+ "video-editing"
26
+ ]
27
+ classifiers = [
28
+ "Development Status :: 4 - Beta",
29
+ "Intended Audience :: Developers",
30
+ "Intended Audience :: End Users/Desktop",
31
+ "License :: OSI Approved :: MIT License",
32
+ "Operating System :: OS Independent",
33
+ "Programming Language :: Python :: 3",
34
+
35
+ "Programming Language :: Python :: 3.10",
36
+ "Programming Language :: Python :: 3.11",
37
+ "Topic :: Multimedia :: Video",
38
+ "Topic :: Multimedia :: Video :: Display",
39
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
40
+ "Topic :: Scientific/Engineering :: Image Processing",
41
+ ]
42
+ requires-python = ">=3.10"
43
+ dependencies = [
44
+ "opencv-python>=4.8.0",
45
+ "numpy>=1.24.0",
46
+ "pillow>=10.0.0",
47
+ "gradio>=5.42.0",
48
+ "scikit-image>=0.21.0",
49
+ ]
50
+
51
+ [project.optional-dependencies]
52
+ dev = [
53
+ "pytest>=7.0.0",
54
+ "pytest-cov>=4.0.0",
55
+ "black>=23.0.0",
56
+ "flake8>=6.0.0",
57
+ "mypy>=1.0.0",
58
+ "pre-commit>=3.0.0",
59
+ ]
60
+ docs = [
61
+ "sphinx>=6.0.0",
62
+ "sphinx-rtd-theme>=1.2.0",
63
+ "myst-parser>=1.0.0",
64
+ ]
65
+
66
+ [project.urls]
67
+ Homepage = "https://github.com/Sunwood-ai-labsII/frame-bridge"
68
+ Repository = "https://github.com/Sunwood-ai-labsII/frame-bridge.git"
69
+ Documentation = "https://github.com/Sunwood-ai-labsII/frame-bridge#readme"
70
+ "Bug Tracker" = "https://github.com/Sunwood-ai-labsII/frame-bridge/issues"
71
+ "Demo Site" = "https://huggingface.co/spaces/MakiAi/frame-bridge"
72
+
73
+ [project.scripts]
74
+ frame-bridge = "app:main"
75
+ frame-bridge-test = "test_sample:main"
76
+ frame-bridge-batch = "batch_test:main"
77
+
78
+ [tool.setuptools.packages.find]
79
+ where = ["."]
80
+ include = ["*"]
81
+ exclude = ["tests*", "docs*", ".github*"]
82
+
83
+ [tool.setuptools.package-data]
84
+ "*" = ["*.md", "*.txt", "*.yml", "*.yaml"]
85
+
86
+ [tool.black]
87
+ line-length = 88
88
+ target-version = ['py38', 'py39', 'py310', 'py311']
89
+ include = '\.pyi?$'
90
+ extend-exclude = '''
91
+ /(
92
+ # directories
93
+ \.eggs
94
+ | \.git
95
+ | \.hg
96
+ | \.mypy_cache
97
+ | \.tox
98
+ | \.venv
99
+ | build
100
+ | dist
101
+ )/
102
+ '''
103
+
104
+ [tool.mypy]
105
+ python_version = "3.8"
106
+ warn_return_any = true
107
+ warn_unused_configs = true
108
+ disallow_untyped_defs = true
109
+ disallow_incomplete_defs = true
110
+ check_untyped_defs = true
111
+ disallow_untyped_decorators = true
112
+ no_implicit_optional = true
113
+ warn_redundant_casts = true
114
+ warn_unused_ignores = true
115
+ warn_no_return = true
116
+ warn_unreachable = true
117
+ strict_equality = true
118
+
119
+ [tool.pytest.ini_options]
120
+ minversion = "7.0"
121
+ addopts = "-ra -q --strict-markers --strict-config"
122
+ testpaths = ["tests"]
123
+ python_files = ["test_*.py", "*_test.py"]
124
+ python_classes = ["Test*"]
125
+ python_functions = ["test_*"]
126
+
127
+ [tool.coverage.run]
128
+ source = ["."]
129
+ omit = [
130
+ "tests/*",
131
+ "setup.py",
132
+ "*/site-packages/*",
133
+ ".venv/*",
134
+ "venv/*",
135
+ ]
136
+
137
+ [tool.coverage.report]
138
+ exclude_lines = [
139
+ "pragma: no cover",
140
+ "def __repr__",
141
+ "if self.debug:",
142
+ "if settings.DEBUG",
143
+ "raise AssertionError",
144
+ "raise NotImplementedError",
145
+ "if 0:",
146
+ "if __name__ == .__main__.:",
147
+ "class .*\\bProtocol\\):",
148
+ "@(abc\\.)?abstractmethod",
149
+ ]
150
+
151
+ [tool.flake8]
152
+ max-line-length = 88
153
+ extend-ignore = ["E203", "W503"]
154
+ exclude = [
155
+ ".git",
156
+ "__pycache__",
157
+ "docs/source/conf.py",
158
+ "old",
159
+ "build",
160
+ "dist",
161
+ ".venv",
162
+ "venv",
163
+ ]
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
- requests>=2.31.0
2
- beautifulsoup4>=4.12.0
3
- html2text>=2020.1.16
4
  gradio>=5.42.0
 
 
1
+ opencv-python>=4.8.0
2
+ numpy>=1.24.0
3
+ pillow>=10.0.0
4
  gradio>=5.42.0
5
+ scikit-image>=0.21.0