Download export/recipe.json from executorch-community/Real-ESRGAN-General-x4v3-ExecuTorch-WebGPU: direct link, hf CLI and curl.
- Browser
- Download file 3.02 kB
-
https://huggingface.co/executorch-community/Real-ESRGAN-General-x4v3-ExecuTorch-WebGPU/resolve/main/export/recipe.json
- Command line
-
hf download hf://executorch-community/Real-ESRGAN-General-x4v3-ExecuTorch-WebGPU/export/recipe.json
-
curl -L -o recipe.json https://huggingface.co/executorch-community/Real-ESRGAN-General-x4v3-ExecuTorch-WebGPU/resolve/main/export/recipe.json
3.02 kB
| { | |
| "model": "realesr_x4v3", | |
| "upstream": { | |
| "model": "xinntao/Real-ESRGAN realesr-general-x4v3 (GitHub release v0.2.5.0)", | |
| "weights": { | |
| "repo": "clavidk/realesr-general-x4v3", | |
| "revision": "6aecc46ba1fc8cfdfe8643f090782e2e62c044cd", | |
| "file": "realesr-general-x4v3.pth", | |
| "sha256": "8dc7edb9ac80ccdc30c3a5dca6616509367f05fbc184ad95b731f05bece96292", | |
| "official": false, | |
| "note": "community mirror of the official GitHub release asset; GitHub is not reachable from the export host" | |
| }, | |
| "architecture_source": { | |
| "url": "https://files.pythonhosted.org/packages/b2/3e/e2f79917a04991b9237df264f7abab2b58cf94748e7acfb6677b55232ca1/realesrgan-0.3.0-py3-none-any.whl", | |
| "sha256": "59336c16c30dd5130eff350dd27424acb9b7281d18a6810130e265606c9a6088", | |
| "member": "realesrgan/archs/srvgg_arch.py", | |
| "package": "realesrgan==0.3.0 (PyPI, BSD-3-Clause)" | |
| }, | |
| "license": "BSD-3-Clause" | |
| }, | |
| "versions": { | |
| "python": "3.12.15+meta", | |
| "torch": "2.14.1+cpu", | |
| "torchao": "0.18.0+cpu", | |
| "executorch": "1.5.1+cpu", | |
| "executorch_git": "3b60683923245cf472b7323426920e15623ba361", | |
| "transformers": "5.19.0", | |
| "huggingface_hub": "2.2.0" | |
| }, | |
| "export": { | |
| "api": "torch.export.export(strict=False) -> to_edge_transform_and_lower(partitioner=[WebGPUPartitioner()]) -> to_executorch()", | |
| "partitioner": "executorch.backends.webgpu.partitioner.WebGPUPartitioner() (default compile options; wraps VulkanPartitioner)", | |
| "inputs": [ | |
| { | |
| "shape": [ | |
| 1, | |
| 3, | |
| 64, | |
| 64 | |
| ], | |
| "dtype": "float32", | |
| "layout": "NCHW" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "shape": [ | |
| 1, | |
| 3, | |
| 256, | |
| 256 | |
| ], | |
| "dtype": "float32" | |
| } | |
| ], | |
| "dtype": "float32", | |
| "quantization": "none (fp32)", | |
| "preprocessing_outside_graph": "RGB / 255 -> [0, 1]", | |
| "postprocessing_outside_graph": "clamp to [0, 1], * 255", | |
| "scale": 4 | |
| }, | |
| "files": { | |
| "realesr_x4v3_webgpu.pte": { | |
| "bytes": 4913472, | |
| "sha256": "a4c40616767829cf6d3dab2c272b147764db1e2a01d610b2a4178e9153a66e5d" | |
| }, | |
| "realesr_x4v3_portable.pte": { | |
| "bytes": 4897984, | |
| "sha256": "2cc91b1e2f4ddbbd904c8e397534f37ec0bf880b27f85d8b7da50a15dd7b83ec", | |
| "note": "CPU-only validation artifact (portable kernels, no delegate); not for release" | |
| } | |
| }, | |
| "graph": { | |
| "non_delegated_kernels": {}, | |
| "delegates": [ | |
| { | |
| "id": "VulkanBackend", | |
| "ops": { | |
| "et_vk.prepack.default": 33, | |
| "aten.convolution.default": 34, | |
| "aten.view_copy.default": 33, | |
| "aten.gt.Scalar": 33, | |
| "aten.mul.Tensor": 33, | |
| "aten.where.self": 33, | |
| "aten.pixel_shuffle.default": 1, | |
| "aten.upsample_nearest2d.vec": 1, | |
| "aten.add.Tensor": 1 | |
| }, | |
| "inputs": 1, | |
| "outputs": 1 | |
| } | |
| ] | |
| }, | |
| "command": "python recipes/real-esrgan.py --out out/real-esrgan" | |
| } | |