Push model using huggingface_hub.
Browse files- README.md +10 -0
- config.json +107 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: image-to-image
|
| 3 |
+
tags:
|
| 4 |
+
- model_hub_mixin
|
| 5 |
+
- pytorch_model_hub_mixin
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
|
| 9 |
+
- Library: https://github.com/kepengxu/PGTFormer
|
| 10 |
+
- Docs: [More Information Needed]
|
config.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adain": true,
|
| 3 |
+
"bottleneck_type": "rq",
|
| 4 |
+
"checkpointing": false,
|
| 5 |
+
"code_shape": [
|
| 6 |
+
32,
|
| 7 |
+
32,
|
| 8 |
+
1
|
| 9 |
+
],
|
| 10 |
+
"connect_list": [
|
| 11 |
+
"32",
|
| 12 |
+
"64",
|
| 13 |
+
"128",
|
| 14 |
+
"256"
|
| 15 |
+
],
|
| 16 |
+
"ddconfig": {
|
| 17 |
+
"attn_resolutions": [
|
| 18 |
+
32,
|
| 19 |
+
64,
|
| 20 |
+
128
|
| 21 |
+
],
|
| 22 |
+
"ch": 64,
|
| 23 |
+
"ch_mult": [
|
| 24 |
+
1,
|
| 25 |
+
2,
|
| 26 |
+
4,
|
| 27 |
+
4,
|
| 28 |
+
8
|
| 29 |
+
],
|
| 30 |
+
"depths": [
|
| 31 |
+
2,
|
| 32 |
+
2,
|
| 33 |
+
2,
|
| 34 |
+
2,
|
| 35 |
+
2
|
| 36 |
+
],
|
| 37 |
+
"double_z": false,
|
| 38 |
+
"dropout": 0.0,
|
| 39 |
+
"in_channels": 3,
|
| 40 |
+
"num_frames": 3,
|
| 41 |
+
"num_head": 8,
|
| 42 |
+
"num_heads": [
|
| 43 |
+
8,
|
| 44 |
+
8,
|
| 45 |
+
8,
|
| 46 |
+
8,
|
| 47 |
+
8
|
| 48 |
+
],
|
| 49 |
+
"num_res_blocks": 1,
|
| 50 |
+
"out_ch": 3,
|
| 51 |
+
"resolution": 512,
|
| 52 |
+
"stages_atten": 4,
|
| 53 |
+
"window_size": [
|
| 54 |
+
5,
|
| 55 |
+
5,
|
| 56 |
+
5
|
| 57 |
+
],
|
| 58 |
+
"window_sizes": [
|
| 59 |
+
[
|
| 60 |
+
4,
|
| 61 |
+
4
|
| 62 |
+
],
|
| 63 |
+
[
|
| 64 |
+
4,
|
| 65 |
+
4
|
| 66 |
+
],
|
| 67 |
+
[
|
| 68 |
+
4,
|
| 69 |
+
4
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
4,
|
| 73 |
+
4
|
| 74 |
+
],
|
| 75 |
+
[
|
| 76 |
+
4,
|
| 77 |
+
4
|
| 78 |
+
]
|
| 79 |
+
],
|
| 80 |
+
"z_channels": 256
|
| 81 |
+
},
|
| 82 |
+
"decay": 0.99,
|
| 83 |
+
"detach_16": true,
|
| 84 |
+
"dim_embd": 512,
|
| 85 |
+
"droprate": 0.0,
|
| 86 |
+
"embed_dim": 512,
|
| 87 |
+
"fix_modules": [
|
| 88 |
+
"quantizer",
|
| 89 |
+
"decoder",
|
| 90 |
+
"conditionnet"
|
| 91 |
+
],
|
| 92 |
+
"latent_loss_weight": 0.25,
|
| 93 |
+
"latent_shape": [
|
| 94 |
+
32,
|
| 95 |
+
32,
|
| 96 |
+
512
|
| 97 |
+
],
|
| 98 |
+
"loss_type": "mse",
|
| 99 |
+
"n_embed": 1024,
|
| 100 |
+
"n_head": 8,
|
| 101 |
+
"n_layers": 9,
|
| 102 |
+
"restart_unused_codes": true,
|
| 103 |
+
"shared_codebook": true,
|
| 104 |
+
"tf": 3,
|
| 105 |
+
"type": "PGTFormer",
|
| 106 |
+
"w": 1
|
| 107 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37f9a42b9e35e0ccb89016ca6cea6728a7bf783e70b99e886ac52bb37c6855f3
|
| 3 |
+
size 521861436
|