plutosss commited on
Commit
65ef152
·
verified ·
1 Parent(s): 0ba24c2

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +433 -0
  2. requirements.txt +138 -0
app.py ADDED
@@ -0,0 +1,433 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 部署 teed、depth-anything
2
+ # 腐蚀算法
3
+ # 读取图片
4
+ # 输出图片
5
+ # 使用 depth-anything + teed 生成外轮廓
6
+ # 使用 teed + 腐蚀算法 生成内边缘
7
+ import zipfile
8
+
9
+ from PIL import Image
10
+
11
+ import cv2
12
+ import cv2_ext
13
+ import numpy as np
14
+ import gradio as gr
15
+ import os
16
+ import torch
17
+ import torch.nn.functional as F
18
+ from torchvision.transforms import Compose
19
+ from tqdm import tqdm
20
+ import TEED.main as teed
21
+ from TEED.main import parse_args
22
+ import logging
23
+
24
+ from depthAnything.depth_anything.dpt import DepthAnything
25
+ from depthAnything.depth_anything.util.transform import Resize, NormalizeImage, PrepareForNet
26
+ import shutil
27
+
28
+ def multiply_blend(image1, image2):
29
+ # 将图片转换为浮点数,方便计算
30
+ # Ensure image2 has the same shape as image1
31
+ image2 = np.stack((image2,) * 3, axis=-1)
32
+ # Perform the blending
33
+ multiplied = np.multiply(image1 / 255.0, image2 / 255.0) * 255.0
34
+ return multiplied.astype(np.uint8)
35
+
36
+ # Example usage
37
+
38
+
39
+ image1 = np.random.randint(0, 256, (717, 790, 3), dtype=np.uint8)
40
+ image2 = np.random.randint(0, 256, (717, 790), dtype=np.uint8)
41
+
42
+ result = multiply_blend(image1, image2)
43
+ print(result.shape) # Should be (717, 790, 3)
44
+
45
+
46
+ def screen_blend(image1, image2):
47
+ # 将图片转换为浮点数,方便计算
48
+ image1 = image1.astype(float)
49
+ image2 = image2.astype(float)
50
+
51
+ # 执行滤色操作
52
+ screened = 1 - (1 - image1 / 255) * (1 - image2 / 255) * 255
53
+
54
+ # 将结果转换回uint8
55
+ result = np.clip(screened, 0, 255).astype('uint8')
56
+ return result
57
+
58
+
59
+ def erosion(img, kernel_size=3, iterations=1, dilate=False):
60
+ # 灰度化
61
+ if len(img.shape) == 3:
62
+ img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
63
+
64
+ # # 二值化
65
+ # _, img = cv2.threshold(img, 200, 255, cv2.THRESH_BINARY)
66
+
67
+ # 腐蚀
68
+ kernel = np.ones((kernel_size, kernel_size), np.uint8)
69
+ if dilate:
70
+ img = cv2.dilate(img, kernel, iterations=iterations)
71
+ else:
72
+ img = cv2.erode(img, kernel, iterations=iterations)
73
+
74
+ return img
75
+
76
+
77
+ def erosion_img_from_path(img_path, output_dir='./output/erosion_img', kernel_size=3, iterations=1, dilate=False):
78
+ # 读取图片
79
+ if os.path.isfile(img_path):
80
+ name, extension = os.path.splitext(img_path)
81
+ if extension:
82
+ if extension.lower() == 'txt':
83
+ with open(img_path, 'r', encoding='utf-8') as f:
84
+ filenames = f.read().splitlines()
85
+ elif extension.lower() in ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif']:
86
+ filenames = [img_path]
87
+ else:
88
+ filenames = os.listdir(img_path)
89
+ filenames = [os.path.join(img_path, filename) for filename in filenames if
90
+ not filename.startswith('.') and filename.lower().endswith(
91
+ ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif'))]
92
+ filenames.sort()
93
+
94
+ os.makedirs(output_dir, exist_ok=True)
95
+
96
+ for filename in tqdm(filenames):
97
+ img = cv2.imread(filename)
98
+ img = erosion(img, kernel_size, iterations, dilate)
99
+ cv2.imwrite(os.path.join(output_dir, os.path.basename(filename)), img)
100
+
101
+
102
+ def copy_file(src, dest):
103
+ # 移动文件
104
+ source = src
105
+ destination = dest
106
+ try:
107
+ shutil.copy(source, destination)
108
+ except IOError as e:
109
+ print("Unable to copy file. %s" % e)
110
+
111
+
112
+ def guassian_blur_path(img_path, output_dir='./output/guassian_blur', kernel_size=3, sigmaX=0):
113
+ # 读取图片
114
+ if os.path.isfile(img_path):
115
+ name, extension = os.path.splitext(img_path)
116
+ if extension:
117
+ if extension.lower() == 'txt':
118
+ with open(img_path, 'r', encoding='utf-8') as f:
119
+ filenames = f.read().splitlines()
120
+ elif extension.lower() in ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif']:
121
+ filenames = [img_path]
122
+ else:
123
+ filenames = os.listdir(img_path)
124
+ filenames = [os.path.join(img_path, filename) for filename in filenames if
125
+ not filename.startswith('.') and filename.lower().endswith(
126
+ ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif'))]
127
+ filenames.sort()
128
+
129
+ os.makedirs(output_dir, exist_ok=True)
130
+
131
+ for filename in tqdm(filenames):
132
+ img = cv2.imread(filename)
133
+ img = cv2.GaussianBlur(img, (kernel_size, kernel_size), sigmaX)
134
+ cv2.imwrite(os.path.join(output_dir, os.path.basename(filename)), img)
135
+
136
+
137
+ def depth_anything(img_path='./input', outdir='./output/depth_anything', encoder='vitl', pred_only=True,
138
+ grayscale=True):
139
+ # parser = argparse.ArgumentParser()
140
+ # parser.add_argument('--img-path', type=str)
141
+ # parser.add_argument('--outdir', type=str, default='./vis_depth')
142
+ # parser.add_argument('--encoder', type=str, default='vitl', choices=['vits', 'vitb', 'vitl'])
143
+
144
+ # parser.add_argument('--pred-only', dest='pred_only', action='store_true', help='only display the prediction')
145
+ # parser.add_argument('--grayscale', dest='grayscale', action='store_true', help='do not apply colorful palette')
146
+
147
+ # args = parser.parse_args()
148
+
149
+ margin_width = 50
150
+ caption_height = 60
151
+
152
+ font = cv2.FONT_HERSHEY_SIMPLEX
153
+ font_scale = 1
154
+ font_thickness = 2
155
+
156
+ DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
157
+
158
+ model_configs = {
159
+ 'vitl': {'encoder': 'vitl', 'features': 256, 'out_channels': [256, 512, 1024, 1024]},
160
+ 'vitb': {'encoder': 'vitb', 'features': 128, 'out_channels': [96, 192, 384, 768]},
161
+ 'vits': {'encoder': 'vits', 'features': 64, 'out_channels': [48, 96, 192, 384]}
162
+ }
163
+
164
+ depth_anything = DepthAnything(model_configs[encoder])
165
+ depth_anything.load_state_dict(torch.load('./checkpoints/depth_anything_{}14.pth'.format(encoder)))
166
+ depth_anything = depth_anything.to(DEVICE).eval()
167
+
168
+ total_params = sum(param.numel() for param in depth_anything.parameters())
169
+ print('Total parameters: {:.2f}M'.format(total_params / 1e6))
170
+
171
+ transform = Compose([
172
+ Resize(
173
+ width=518,
174
+ height=518,
175
+ resize_target=False,
176
+ keep_aspect_ratio=True,
177
+ ensure_multiple_of=14,
178
+ resize_method='lower_bound',
179
+ image_interpolation_method=cv2.INTER_CUBIC,
180
+ ),
181
+ NormalizeImage(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
182
+ PrepareForNet(),
183
+ ])
184
+
185
+ if os.path.isfile(img_path):
186
+ name, extension = os.path.splitext(img_path)
187
+ if extension:
188
+ if extension.lower() == 'txt':
189
+ with open(img_path, 'r', encoding='utf-8') as f:
190
+ filenames = f.read().splitlines()
191
+ elif extension.lower() in ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif']:
192
+ filenames = [img_path]
193
+ else:
194
+ filenames = os.listdir(img_path)
195
+ filenames = [os.path.join(img_path, filename) for filename in filenames if
196
+ not filename.startswith('.') and filename.lower().endswith(
197
+ ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif'))]
198
+ filenames.sort()
199
+
200
+ os.makedirs(outdir, exist_ok=True)
201
+
202
+ for filename in tqdm(filenames):
203
+ raw_image = cv2.imread(filename)
204
+ image = cv2.cvtColor(raw_image, cv2.COLOR_BGR2RGB) / 255.0
205
+
206
+ h, w = image.shape[:2]
207
+
208
+ image = transform({'image': image})['image']
209
+ image = torch.from_numpy(image).unsqueeze(0).to(DEVICE)
210
+
211
+ with torch.no_grad():
212
+ depth = depth_anything(image)
213
+
214
+ depth = F.interpolate(depth[None], (h, w), mode='bilinear', align_corners=False)[0, 0]
215
+ depth = (depth - depth.min()) / (depth.max() - depth.min()) * 255.0
216
+
217
+ depth = depth.cpu().numpy().astype(np.uint8)
218
+
219
+ if grayscale:
220
+ depth = np.repeat(depth[..., np.newaxis], 3, axis=-1)
221
+ else:
222
+ depth = cv2.applyColorMap(depth, cv2.COLORMAP_INFERNO)
223
+
224
+ filename = os.path.basename(filename)
225
+
226
+ if pred_only:
227
+ cv2.imwrite(os.path.join(outdir, filename[:filename.rfind('.')] + '_depth.png'), depth)
228
+ else:
229
+ split_region = np.ones((raw_image.shape[0], margin_width, 3), dtype=np.uint8) * 255
230
+ combined_results = cv2.hconcat([raw_image, split_region, depth])
231
+
232
+ caption_space = np.ones((caption_height, combined_results.shape[1], 3), dtype=np.uint8) * 255
233
+ captions = ['Raw image', 'Depth Anything']
234
+ segment_width = w + margin_width
235
+
236
+ for i, caption in enumerate(captions):
237
+ # Calculate text size
238
+ text_size = cv2.getTextSize(caption, font, font_scale, font_thickness)[0]
239
+
240
+ # Calculate x-coordinate to center the text
241
+ text_x = int((segment_width * i) + (w - text_size[0]) / 2)
242
+
243
+ # Add text caption
244
+ cv2.putText(caption_space, caption, (text_x, 40), font, font_scale, (0, 0, 0), font_thickness)
245
+
246
+ final_result = cv2.vconcat([caption_space, combined_results])
247
+
248
+ cv2.imwrite(os.path.join(outdir, filename[:filename.rfind('.')] + '_img_depth.png'), final_result)
249
+
250
+
251
+ def teed_imgs(img_path='./input', outdir='./output/teed_imgs', gaussianBlur=[0, 3, 0]):
252
+ args, train_info = parse_args(is_testing=True, pl_opt_dir=outdir)
253
+ os.makedirs('teed_tmp', exist_ok=True)
254
+ if os.path.isfile(img_path):
255
+ name, extension = os.path.splitext(img_path)
256
+ if extension:
257
+ if extension.lower() == 'txt':
258
+ with open(img_path, 'r', encoding='utf-8') as f:
259
+ filenames = f.read().splitlines()
260
+ elif extension.lower() in ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif']:
261
+ filenames = [img_path]
262
+ else:
263
+ filenames = os.listdir(img_path)
264
+ filenames = [os.path.join(img_path, filename) for filename in filenames if
265
+ not filename.startswith('.') and filename.lower().endswith(
266
+ ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif'))]
267
+ filenames.sort()
268
+ for filename in tqdm(filenames):
269
+ if gaussianBlur[0] != 0:
270
+ img = cv2.imread(filename)
271
+ img = cv2.GaussianBlur(img, (gaussianBlur[1], gaussianBlur[1]), gaussianBlur[2])
272
+ cv2.imwrite(os.path.join('teed_tmp', os.path.basename(filename)), img)
273
+ else:
274
+ copy_file(filename, 'teed_tmp')
275
+ teed.main(args, train_info)
276
+ shutil.rmtree('teed_tmp')
277
+
278
+
279
+ def merge_2_images(img1, img2, mode, erosion_para=[[0, 0], [0, 0]], dilate=[0, 0]): # 将 img1 合并至 img2,调整大小与 img2 相同
280
+ img1 = cv2.imread(img1)
281
+ img2 = cv2.imread(img2)
282
+ img1 = cv2.resize(img1, (img2.shape[1], img2.shape[0]))
283
+ if erosion_para[0][1] != 0:
284
+ img1 = erosion(img1, erosion_para[0][0], erosion_para[0][1], dilate[0])
285
+ if erosion_para[1][1] != 0:
286
+ img2 = erosion(img2, erosion_para[1][0], erosion_para[1][1], dilate[1])
287
+ if mode == 'multiply':
288
+ return multiply_blend(img1, img2)
289
+ elif mode == 'screen':
290
+ return screen_blend(img1, img2)
291
+
292
+
293
+ def merge_images_in_2_folder(folder1, folder2, outdir, suffix_need_remove=None, suffix_floder=0, mode='multiply',
294
+ erosion_para=[[0, 0], [0, 0]],
295
+ dilate=[0, 0]): # 将 folder1 和 folder2 中的图片合并,可选是否移除某文件夹后缀,可选腐蚀参数[kernel_size,iterations]
296
+ os.makedirs(outdir, exist_ok=True)
297
+ name_extension_pairs_folder1 = [os.path.splitext(filename) for filename in os.listdir(folder1) if filename.endswith(
298
+ ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif'))]
299
+ filenames_noext_folder1, extensions_folder1 = zip(*name_extension_pairs_folder1)
300
+ name_extension_pairs_folder2 = [os.path.splitext(filename) for filename in os.listdir(folder2) if filename.endswith(
301
+ ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif'))]
302
+ filenames_noext_folder2, extensions_folder2 = zip(*name_extension_pairs_folder2)
303
+ if suffix_need_remove:
304
+ if suffix_floder == 0:
305
+ filenames_raw = list(filenames_noext_folder1).copy()
306
+ filenames_noext_folder1 = [
307
+ filename[:-len(suffix_need_remove)] + filename[-len(suffix_need_remove):].replace(suffix_need_remove,
308
+ '') for filename in
309
+ filenames_noext_folder1]
310
+ if suffix_floder == 1:
311
+ filenames_raw = list(filenames_noext_folder2).copy()
312
+ filenames_noext_folder2 = [
313
+ filename[:-len(suffix_need_remove)] + filename[-len(suffix_need_remove):].replace(suffix_need_remove,
314
+ '') for filename in
315
+ filenames_noext_folder2]
316
+
317
+ for index, filename in enumerate(filenames_noext_folder1):
318
+ if filename in filenames_noext_folder2:
319
+ print(filename)
320
+ if suffix_need_remove:
321
+ if suffix_floder == 0:
322
+ img1 = os.path.join(folder1, filenames_raw[index] + extensions_folder1[index])
323
+ img2 = os.path.join(folder2, filename + extensions_folder2[filenames_noext_folder2.index(filename)])
324
+ if suffix_floder == 1:
325
+ img1 = os.path.join(folder1, filename + extensions_folder1[index])
326
+ img2 = os.path.join(folder2,
327
+ filenames_raw[filenames_noext_folder2.index(filename)] + extensions_folder2[
328
+ filenames_noext_folder2.index(filename)])
329
+ else:
330
+ img1 = os.path.join(folder1, filename + extensions_folder1[index])
331
+ img2 = os.path.join(folder2, filename + extensions_folder2[filenames_noext_folder2.index(filename)])
332
+ result = merge_2_images(img1, img2, mode, erosion_para, dilate)
333
+ cv2.imwrite(os.path.join(outdir, filename + extensions_folder1[index]), result)
334
+
335
+
336
+ def invert_image(image):
337
+ # 将图片从BGR转为灰度图
338
+ gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
339
+ # 对灰度图进行反转
340
+ inverted_image = cv2.bitwise_not(gray_image)
341
+ # 将反转后的灰度图转换回BGR格式
342
+ inverted_image_bgr = cv2.cvtColor(inverted_image, cv2.COLOR_GRAY2BGR)
343
+ return inverted_image_bgr
344
+
345
+ def process_images(input_folder='./output/merged_imgs'):
346
+ output_folder = os.path.join(os.path.dirname(input_folder), 'output_invert')
347
+ os.makedirs(output_folder, exist_ok=True)
348
+
349
+ # 获取输入文件夹中的所有图片文件
350
+ image_files = [f for f in os.listdir(input_folder) if
351
+ f.lower().endswith(('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp', 'tif'))]
352
+
353
+ for image_file in tqdm(image_files):
354
+ image_path = os.path.join(input_folder, image_file)
355
+ try:
356
+ # 使用PIL库读取图像
357
+ with Image.open(image_path) as img:
358
+ image = np.array(img.convert('RGB'))[:, :, ::-1].copy()
359
+ if image is not None:
360
+ # 翻转图片
361
+ inverted_image = invert_image(image)
362
+ # 保存翻转后的图片到输出文件夹
363
+ output_path = os.path.join(output_folder, image_file)
364
+ cv2.imwrite(output_path, inverted_image)
365
+ else:
366
+ raise ValueError(f"Failed to read image: {image_file}")
367
+ except Exception as e:
368
+ print(f"Error processing file {image_file}: {e}")
369
+ def process_line(input_files):
370
+ try:
371
+ # 创建临时输出文件夹
372
+ output_folder = "temp_output"
373
+ os.makedirs(output_folder, exist_ok=True)
374
+
375
+ # 存储处理后的图片路径
376
+ processed_images = []
377
+
378
+ # 遍历所有输入文件
379
+ for img_path in input_files:
380
+ img_path = img_path.name # 获取文件路径
381
+
382
+ # 处理图片的文件夹
383
+ depth_folder = os.path.join(output_folder, "depth_anything")
384
+ teed_folder = os.path.join(output_folder, "teed_imgs")
385
+ dp_teed_folder = os.path.join(output_folder, "dp_teed_imgs")
386
+ merged_folder = os.path.join(output_folder, "merged_imgs")
387
+
388
+ # 创建每个处理步骤的文件夹
389
+ os.makedirs(depth_folder, exist_ok=True)
390
+ os.makedirs(teed_folder, exist_ok=True)
391
+ os.makedirs(dp_teed_folder, exist_ok=True)
392
+ os.makedirs(merged_folder, exist_ok=True)
393
+
394
+ # 调用处理函数
395
+ depth_anything(img_path, depth_folder)
396
+ teed_imgs(img_path, teed_folder, [1, 7, 2])
397
+ teed_imgs(depth_folder, dp_teed_folder, [0, 7, 2])
398
+ merge_images_in_2_folder(teed_folder, dp_teed_folder, merged_folder, '_depth', 1, 'multiply', [[2, 0], [2, 1]], [1, 0])
399
+ process_images(merged_folder)
400
+
401
+ # 创建压缩包
402
+ zip_file_path = os.path.join(output_folder, "processed_images.zip")
403
+ with zipfile.ZipFile(zip_file_path, 'w') as zipf:
404
+ # 将每个步骤的文件夹添加到压缩包中
405
+ for folder in [depth_folder, teed_folder, dp_teed_folder, merged_folder]:
406
+ for root, _, files in os.walk(folder):
407
+ for file in files:
408
+ zipf.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), output_folder))
409
+
410
+ return [zip_file_path], "" # 返回压缩包路径和空错误信息
411
+ except Exception as e:
412
+ return [], f"发生错误: {str(e)}" # 返回空图片和错误信息
413
+
414
+
415
+ def launch_interface():
416
+ with gr.Blocks() as demo:
417
+ # 允许用户选择多张图片
418
+ input_files = gr.File(label="选择输入图片", file_count="multiple", type="filepath")
419
+
420
+ submit_button = gr.Button("开始处理")
421
+
422
+ # 显示处理后的文件下载链接
423
+ output_file = gr.File(label="下载处理后的文件")
424
+ # 显示错误信息
425
+ error_text = gr.Textbox(label="错误信息", interactive=False, visible=False)
426
+
427
+ # 点击按钮时调用 process_line 函数
428
+ submit_button.click(process_line, inputs=[input_files], outputs=[output_file, error_text])
429
+
430
+ demo.launch(share=True)
431
+
432
+ if __name__ == "__main__":
433
+ launch_interface()
requirements.txt ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ absl-py==2.1.0
2
+ aiofiles==23.2.1
3
+ aiohttp==3.9.5
4
+ aiosignal==1.3.1
5
+ altair==5.3.0
6
+ annotated-types==0.7.0
7
+ anyio==4.4.0
8
+ astunparse==1.6.3
9
+ async-timeout==4.0.3
10
+ attrs==23.2.0
11
+ certifi==2024.7.4
12
+ cffi==1.16.0
13
+ charset-normalizer==3.3.2
14
+ click==8.1.7
15
+ colorama==0.4.6
16
+ contourpy==1.2.1
17
+ cv2ext==0.0.13
18
+ cycler==0.12.1
19
+ dnspython==2.6.1
20
+ email_validator==2.2.0
21
+ exceptiongroup==1.2.2
22
+ fastapi==0.111.1
23
+ fastapi-cli==0.0.4
24
+ ffmpy==0.3.2
25
+ filelock==3.15.4
26
+ flatbuffers==24.3.25
27
+ fonttools==4.53.1
28
+ frozenlist==1.4.1
29
+ fsspec==2024.6.1
30
+ gast==0.6.0
31
+ google-pasta==0.2.0
32
+ gradio==3.23.0
33
+ gradio_client==1.1.0
34
+ grpcio==1.65.4
35
+ h11==0.14.0
36
+ h5py==3.11.0
37
+ httpcore==1.0.5
38
+ httptools==0.6.1
39
+ httpx==0.27.0
40
+ huggingface-hub==0.24.0
41
+ idna==3.7
42
+ imageio==2.34.2
43
+ importlib_resources==6.4.0
44
+ intel-openmp==2021.4.0
45
+ Jinja2==3.1.4
46
+ joblib==1.4.2
47
+ jsonschema==4.23.0
48
+ jsonschema-specifications==2023.12.1
49
+ keras==3.4.1
50
+ kiwisolver==1.4.5
51
+ kornia==0.7.3
52
+ kornia_rs==0.1.5
53
+ lazy_loader==0.4
54
+ libclang==18.1.1
55
+ linkify-it-py==2.0.3
56
+ Markdown==3.6
57
+ markdown-it-py==2.2.0
58
+ MarkupSafe==2.1.5
59
+ matplotlib==3.9.1
60
+ mdit-py-plugins==0.3.3
61
+ mdurl==0.1.2
62
+ mkl==2021.4.0
63
+ ml-dtypes==0.4.0
64
+ mpmath==1.3.0
65
+ multidict==6.0.5
66
+ namex==0.0.8
67
+ networkx==3.3
68
+ numpy==1.26.4
69
+ opencv-contrib-python==4.10.0.84
70
+ opt-einsum==3.3.0
71
+ optree==0.12.1
72
+ orjson==3.10.6
73
+ outcome==1.3.0.post0
74
+ packaging==24.1
75
+ pandas==2.2.2
76
+ pillow==10.4.0
77
+ protobuf==4.25.4
78
+ pycparser==2.22
79
+ pydantic==2.8.2
80
+ pydantic_core==2.20.1
81
+ pydub==0.25.1
82
+ Pygments==2.18.0
83
+ pyparsing==3.1.2
84
+ PySocks==1.7.1
85
+ python-dateutil==2.9.0.post0
86
+ python-dotenv==1.0.1
87
+ python-multipart==0.0.9
88
+ pytz==2024.1
89
+ PyYAML==6.0.1
90
+ referencing==0.35.1
91
+ requests==2.32.3
92
+ rich==13.7.1
93
+ rpds-py==0.19.0
94
+ ruff==0.5.4
95
+ scikit-image==0.24.0
96
+ scikit-learn==1.5.1
97
+ scipy==1.14.0
98
+ selenium==4.23.1
99
+ semantic-version==2.10.0
100
+ shellingham==1.5.4
101
+ six==1.16.0
102
+ sniffio==1.3.1
103
+ sortedcontainers==2.4.0
104
+ starlette==0.37.2
105
+ sympy==1.13.1
106
+ tbb==2021.13.0
107
+ tensorboard==2.17.0
108
+ tensorboard-data-server==0.7.2
109
+ tensorflow==2.17.0
110
+ tensorflow-intel==2.17.0
111
+ tensorflow-io-gcs-filesystem==0.31.0
112
+ termcolor==2.4.0
113
+ thop==0.1.1.post2209072238
114
+ threadpoolctl==3.5.0
115
+ tifffile==2024.7.21
116
+ tomlkit==0.12.0
117
+ toolz==0.12.1
118
+ torch==2.3.1
119
+ torchaudio==2.3.1
120
+ torchvision==0.18.1
121
+ tqdm==4.66.4
122
+ trio==0.26.0
123
+ trio-websocket==0.11.1
124
+ typer==0.12.3
125
+ typing_extensions==4.12.2
126
+ tzdata==2024.1
127
+ uc-micro-py==1.0.3
128
+ urllib3==2.2.2
129
+ uvicorn==0.30.3
130
+ watchfiles==0.22.0
131
+ webdriver-manager==4.0.2
132
+ websocket-client==1.8.0
133
+ websockets==11.0.3
134
+ Werkzeug==3.0.3
135
+ wordcloud==1.9.3
136
+ wrapt==1.16.0
137
+ wsproto==1.2.0
138
+ yarl==1.9.4