Commit 路
7fdfc0c
1
Parent(s): 3050f1b
Update README to render correctly on PyPi
Browse files- README.md +21 -21
- hatch_build.py +20 -0
- pyproject.toml +4 -1
README.md
CHANGED
|
@@ -21,7 +21,7 @@ tags:
|
|
| 21 |
NisabaRelief
|
| 22 |
</h1>
|
| 23 |
|
| 24 |
-
<img src="./assets/NisabaRelief-Logo.png" width="600"/>
|
| 25 |
</div>
|
| 26 |
|
| 27 |
|
|
@@ -78,50 +78,50 @@ Named for Nisaba, the early Sumerian goddess of writing and scribes, NisabaRelie
|
|
| 78 |
<tbody>
|
| 79 |
|
| 80 |
<tr>
|
| 81 |
-
<td align="center"><img src="./assets/example_input_0.png" width="200"/></td>
|
| 82 |
-
<td align="center"><img src="./assets/example_output_0.png" width="200"/></td>
|
| 83 |
-
<td align="center"><img src="./assets/example_truth_0.png" width="200"/></td>
|
| 84 |
-
<td align="center"><img src="./assets/example_diff_0.png" width="200"/></td>
|
| 85 |
</tr>
|
| 86 |
<tr>
|
| 87 |
<td colspan="4" align="center"><b>Dice: 0.9652</b> 路 RMSE: 0.0775 路 MS-SSIM: 0.9295 路 PSNR: 22.22 dB 路 PSNR-HVS-M: 17.77 dB 路 SRE: 58.34 dB</td>
|
| 88 |
</tr>
|
| 89 |
|
| 90 |
<tr>
|
| 91 |
-
<td align="center"><img src="./assets/example_input_1.png" width="200"/></td>
|
| 92 |
-
<td align="center"><img src="./assets/example_output_1.png" width="200"/></td>
|
| 93 |
-
<td align="center"><img src="./assets/example_truth_1.png" width="200"/></td>
|
| 94 |
-
<td align="center"><img src="./assets/example_diff_1.png" width="200"/></td>
|
| 95 |
</tr>
|
| 96 |
<tr>
|
| 97 |
<td colspan="4" align="center"><b>Dice: 0.9555</b> 路 RMSE: 0.0788 路 MS-SSIM: 0.9219 路 PSNR: 22.07 dB 路 PSNR-HVS-M: 17.80 dB 路 SRE: 57.89 dB</td>
|
| 98 |
</tr>
|
| 99 |
|
| 100 |
<tr>
|
| 101 |
-
<td align="center"><img src="./assets/example_input_2.png" width="200"/></td>
|
| 102 |
-
<td align="center"><img src="./assets/example_output_2.png" width="200"/></td>
|
| 103 |
-
<td align="center"><img src="./assets/example_truth_2.png" width="200"/></td>
|
| 104 |
-
<td align="center"><img src="./assets/example_diff_2.png" width="200"/></td>
|
| 105 |
</tr>
|
| 106 |
<tr>
|
| 107 |
<td colspan="4" align="center"><b>Dice: 0.9630</b> 路 RMSE: 0.1108 路 MS-SSIM: 0.8513 路 PSNR: 19.11 dB 路 PSNR-HVS-M: 14.65 dB 路 SRE: 59.60 dB</td>
|
| 108 |
</tr>
|
| 109 |
|
| 110 |
<tr>
|
| 111 |
-
<td align="center"><img src="./assets/example_input_3.png" width="200"/></td>
|
| 112 |
-
<td align="center"><img src="./assets/example_output_3.png" width="200"/></td>
|
| 113 |
-
<td align="center"><img src="./assets/example_truth_3.png" width="200"/></td>
|
| 114 |
-
<td align="center"><img src="./assets/example_diff_3.png" width="200"/></td>
|
| 115 |
</tr>
|
| 116 |
<tr>
|
| 117 |
<td colspan="4" align="center"><b>Dice: 0.9713</b> 路 RMSE: 0.1035 路 MS-SSIM: 0.8748 路 PSNR: 19.70 dB 路 PSNR-HVS-M: 15.33 dB 路 SRE: 59.41 dB</td>
|
| 118 |
</tr>
|
| 119 |
|
| 120 |
<tr>
|
| 121 |
-
<td align="center"><img src="./assets/example_input_4.png" width="200"/></td>
|
| 122 |
-
<td align="center"><img src="./assets/example_output_4.png" width="200"/></td>
|
| 123 |
-
<td align="center"><img src="./assets/example_truth_4.png" width="200"/></td>
|
| 124 |
-
<td align="center"><img src="./assets/example_diff_4.png" width="200"/></td>
|
| 125 |
</tr>
|
| 126 |
<tr>
|
| 127 |
<td colspan="4" align="center"><b>Dice: 0.9564</b> 路 RMSE: 0.1054 路 MS-SSIM: 0.9325 路 PSNR: 19.55 dB 路 PSNR-HVS-M: 15.18 dB 路 SRE: 57.36 dB</td>
|
|
|
|
| 21 |
NisabaRelief
|
| 22 |
</h1>
|
| 23 |
|
| 24 |
+
<img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/NisabaRelief-Logo.png" width="600"/>
|
| 25 |
</div>
|
| 26 |
|
| 27 |
|
|
|
|
| 78 |
<tbody>
|
| 79 |
|
| 80 |
<tr>
|
| 81 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_input_0.png" width="200"/></td>
|
| 82 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_output_0.png" width="200"/></td>
|
| 83 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_truth_0.png" width="200"/></td>
|
| 84 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_diff_0.png" width="200"/></td>
|
| 85 |
</tr>
|
| 86 |
<tr>
|
| 87 |
<td colspan="4" align="center"><b>Dice: 0.9652</b> 路 RMSE: 0.0775 路 MS-SSIM: 0.9295 路 PSNR: 22.22 dB 路 PSNR-HVS-M: 17.77 dB 路 SRE: 58.34 dB</td>
|
| 88 |
</tr>
|
| 89 |
|
| 90 |
<tr>
|
| 91 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_input_1.png" width="200"/></td>
|
| 92 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_output_1.png" width="200"/></td>
|
| 93 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_truth_1.png" width="200"/></td>
|
| 94 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_diff_1.png" width="200"/></td>
|
| 95 |
</tr>
|
| 96 |
<tr>
|
| 97 |
<td colspan="4" align="center"><b>Dice: 0.9555</b> 路 RMSE: 0.0788 路 MS-SSIM: 0.9219 路 PSNR: 22.07 dB 路 PSNR-HVS-M: 17.80 dB 路 SRE: 57.89 dB</td>
|
| 98 |
</tr>
|
| 99 |
|
| 100 |
<tr>
|
| 101 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_input_2.png" width="200"/></td>
|
| 102 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_output_2.png" width="200"/></td>
|
| 103 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_truth_2.png" width="200"/></td>
|
| 104 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_diff_2.png" width="200"/></td>
|
| 105 |
</tr>
|
| 106 |
<tr>
|
| 107 |
<td colspan="4" align="center"><b>Dice: 0.9630</b> 路 RMSE: 0.1108 路 MS-SSIM: 0.8513 路 PSNR: 19.11 dB 路 PSNR-HVS-M: 14.65 dB 路 SRE: 59.60 dB</td>
|
| 108 |
</tr>
|
| 109 |
|
| 110 |
<tr>
|
| 111 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_input_3.png" width="200"/></td>
|
| 112 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_output_3.png" width="200"/></td>
|
| 113 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_truth_3.png" width="200"/></td>
|
| 114 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_diff_3.png" width="200"/></td>
|
| 115 |
</tr>
|
| 116 |
<tr>
|
| 117 |
<td colspan="4" align="center"><b>Dice: 0.9713</b> 路 RMSE: 0.1035 路 MS-SSIM: 0.8748 路 PSNR: 19.70 dB 路 PSNR-HVS-M: 15.33 dB 路 SRE: 59.41 dB</td>
|
| 118 |
</tr>
|
| 119 |
|
| 120 |
<tr>
|
| 121 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_input_4.png" width="200"/></td>
|
| 122 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_output_4.png" width="200"/></td>
|
| 123 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_truth_4.png" width="200"/></td>
|
| 124 |
+
<td align="center"><img src="https://huggingface.co/boatbomber/NisabaRelief/resolve/main/assets/example_diff_4.png" width="200"/></td>
|
| 125 |
</tr>
|
| 126 |
<tr>
|
| 127 |
<td colspan="4" align="center"><b>Dice: 0.9564</b> 路 RMSE: 0.1054 路 MS-SSIM: 0.9325 路 PSNR: 19.55 dB 路 PSNR-HVS-M: 15.18 dB 路 SRE: 57.36 dB</td>
|
hatch_build.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Hatch build hook to strip HuggingFace YAML frontmatter from README."""
|
| 2 |
+
|
| 3 |
+
import re
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
from hatchling.metadata.plugin.interface import MetadataHookInterface
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class ReadmeHook(MetadataHookInterface):
|
| 10 |
+
PLUGIN_NAME = "readme-strip-frontmatter"
|
| 11 |
+
|
| 12 |
+
def update(self, metadata: dict) -> None:
|
| 13 |
+
readme_path = Path(self.root) / "README.md"
|
| 14 |
+
text = readme_path.read_text(encoding="utf-8")
|
| 15 |
+
# Strip YAML frontmatter (--- ... ---)
|
| 16 |
+
text = re.sub(r"\A---\n.*?\n---\n*", "", text, count=1, flags=re.DOTALL)
|
| 17 |
+
metadata["readme"] = {
|
| 18 |
+
"content-type": "text/markdown",
|
| 19 |
+
"text": text,
|
| 20 |
+
}
|
pyproject.toml
CHANGED
|
@@ -2,6 +2,9 @@
|
|
| 2 |
requires = ["hatchling"]
|
| 3 |
build-backend = "hatchling.build"
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
[tool.hatch.build.targets.sdist]
|
| 6 |
exclude = ["*.safetensors", "assets/**", "data/**", "dev_scripts/**", "uv.lock"]
|
| 7 |
|
|
@@ -12,7 +15,7 @@ packages = ["nisaba_relief"]
|
|
| 12 |
name = "nisaba-relief"
|
| 13 |
version = "0.1.0"
|
| 14 |
description = "Transform cuneiform tablet photos into MSII relief visualizations"
|
| 15 |
-
|
| 16 |
license = "Apache-2.0"
|
| 17 |
requires-python = ">=3.10,<3.14"
|
| 18 |
authors = [{ name = "Zack Williams", email = "zack@boatbomber.com" }]
|
|
|
|
| 2 |
requires = ["hatchling"]
|
| 3 |
build-backend = "hatchling.build"
|
| 4 |
|
| 5 |
+
[tool.hatch.metadata.hooks.custom]
|
| 6 |
+
path = "hatch_build.py"
|
| 7 |
+
|
| 8 |
[tool.hatch.build.targets.sdist]
|
| 9 |
exclude = ["*.safetensors", "assets/**", "data/**", "dev_scripts/**", "uv.lock"]
|
| 10 |
|
|
|
|
| 15 |
name = "nisaba-relief"
|
| 16 |
version = "0.1.0"
|
| 17 |
description = "Transform cuneiform tablet photos into MSII relief visualizations"
|
| 18 |
+
dynamic = ["readme"]
|
| 19 |
license = "Apache-2.0"
|
| 20 |
requires-python = ">=3.10,<3.14"
|
| 21 |
authors = [{ name = "Zack Williams", email = "zack@boatbomber.com" }]
|