Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -434,7 +434,7 @@ def process_image(image_path):
|
|
434 |
# 计算每个类别的百分比
|
435 |
counts_df['百分比'] = (counts_df['计数'] / total_count * 100).round(2)
|
436 |
# 重新命名 DataFrame 为 percentage_df 以清楚表达其内容
|
437 |
-
percentage_df = counts_df.rename(columns={'计数': '
|
438 |
|
439 |
slice_size = 64
|
440 |
exclusion_list = [38]
|
@@ -454,8 +454,8 @@ iface = gr.Interface(
|
|
454 |
gr.Image(type='pil', label='Texture Slices'),
|
455 |
gr.DataFrame()
|
456 |
],
|
457 |
-
title="
|
458 |
-
description="Upload an image to
|
459 |
)
|
460 |
|
461 |
iface.launch()
|
|
|
434 |
# 计算每个类别的百分比
|
435 |
counts_df['百分比'] = (counts_df['计数'] / total_count * 100).round(2)
|
436 |
# 重新命名 DataFrame 为 percentage_df 以清楚表达其内容
|
437 |
+
percentage_df = counts_df.rename(columns={'计数': 'pixels', '百分比': 'percentage (%)'})
|
438 |
|
439 |
slice_size = 64
|
440 |
exclusion_list = [38]
|
|
|
454 |
gr.Image(type='pil', label='Texture Slices'),
|
455 |
gr.DataFrame()
|
456 |
],
|
457 |
+
title="Building Facade Material Segmentation",
|
458 |
+
description="Upload an image to segment material masks, and get color palettes."
|
459 |
)
|
460 |
|
461 |
iface.launch()
|