Spaces:
Build error
Build error
File size: 2,346 Bytes
11d7b39 607e627 11d7b39 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
CSS = """
#md_project a {
color: black;
text-decoration: none;
}
#md_project a:hover {
text-decoration: underline;
}
"""
PROJECT_NAME = """
# [Layer-Divider-WebUI](https://github.com/jhj0517/Layer-Divider-WebUI)
"""
MARKDOWN_NOTE = """
**If you want to run your own local GPU , please visit this [repository](https://github.com/jhj0517/Layer-Divider-WebUI).
The repository also supports layered PSD (Photoshop) file!**
"""
PARAMS_EXPLANATION = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<details>
<summary>Explanation of Each Parameter</summary>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>points_per_side</td>
<td>The number of points to be sampled along one side of the image. The total number of points is points_per_side**2. If None, 'point_grids' must provide explicit point sampling.</td>
</tr>
<tr>
<td>pred_iou_thresh</td>
<td>A filtering threshold in [0,1], using the model's predicted mask quality.</td>
</tr>
<tr>
<td>stability_score_thresh</td>
<td>A filtering threshold in [0,1], using the stability of the mask under changes to the cutoff used to binarize the model's mask predictions.</td>
</tr>
<tr>
<td>crops_n_layers</td>
<td>If >0, mask prediction will be run again on crops of the image. Sets the number of layers to run, where each layer has 2**i_layer number of image crops.</td>
</tr>
<tr>
<td>crop_n_points_downscale_factor</td>
<td>The number of points-per-side sampled in layer n is scaled down by crop_n_points_downscale_factor**n.</td>
</tr>
<tr>
<td>min_mask_region_area</td>
<td>If >0, postprocessing will be applied to remove disconnected regions and holes in masks with area smaller than min_mask_region_area. Requires opencv.</td>
</tr>
</tbody>
</table>
</details>
</body>
</html>
""" |