Skip to content

Commit

Permalink
add animesharpv2 + pbrify (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim2091 authored Oct 25, 2024
1 parent 84f0c3c commit b65c118
Show file tree
Hide file tree
Showing 6 changed files with 311 additions and 1 deletion.
14 changes: 13 additions & 1 deletion data/collections.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{
"c-animesharpv2": {
"name": "AnimeSharpV2",
"author": "kim2091",
"description": "",
"models": [
"2x-AnimeSharpV2-RPLKSR-Sharp",
"2x-AnimeSharpV2-RPLKSR-Soft",
"2x-AnimeSharpV2-MoSR-Sharp",
"2x-AnimeSharpV2-MoSR-Soft"
]
},
"c-normal-map-upscaling": {
"name": "Normal Map Upscaling",
"description": "This collection contain my RG0 normal map upscaling models.\n\nAll models here are for upscaling *tangent-space* normal maps in RG0 format. RG0 means that the B channel is set to 0. These models will work not correctly if you give them images with non-zero B channel, so you either have to zero the B channel manually or use tool like chaiNNer to do it.\n\n## DDS Compression\n\nI made 3 versions: \n- Normal RG0 is for uncompressed normal map textures. Since it hasn't been trained on compression artifacts, it's highly sensitive to quantization artifacts and noise.\n- Normal RG0 BC1 is for BC1-compressed DDS normal map textures.\n- Normal RG0 BC7 is for BC7-compressed DDS normal map textures. This model sometimes produces images that aren't as sharp. In those cases, you can try the BC1 version to see whether it gives better results.",
Expand All @@ -18,7 +29,8 @@
"1x-PBRify-RoughnessV2",
"4x-PBRify-UpscalerSPANV4",
"4x-PBRify-UpscalerSIR-M-V2",
"4x-PBRify-UpscalerDAT2-V1"
"4x-PBRify-UpscalerDAT2-V1",
"4x-PBRify-RPLKSRd-V3"
],
"author": "kim2091"
}
Expand Down
60 changes: 60 additions & 0 deletions data/models/2x-AnimeSharpV2-MoSR-Sharp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "2x-AnimeSharpV2_MoSR_Sharp",
"author": "kim2091",
"license": "CC-BY-NC-SA-4.0",
"tags": [
"anime",
"compression-removal",
"restoration"
],
"description": "GitHub Link: https://github.com/Kim2091/Kim2091-Models/releases/tag/2x-AnimeSharpV2_Set\n\nThis is my first anime model in years. Hopefully you guys can find a good use-case for it. Included are 4 models:\n\n1. RealPLKSR (Higher quality, slower)\n2. MoSR (Lower quality, faster)\n\nThere are Sharp and Soft versions of both\nWhen to use each:\n- __Sharp:__ For heavily degraded sources. Sharp models have issues depth of field but are best at removing artifacts \n- __Soft:__ For cleaner sources. Soft models preserve depth of field but may not remove other artifacts as well\n\n__Notes:__\n- MoSR doesn't work in chaiNNer currently\n- To use MoSR:\n 1. Use the ONNX version in tools like [VideoJaNai](<https://github.com/the-database/VideoJaNai>)\n 2. Update spandrel in the latest version of ComfyUI\n\nThe ONNX version may produce slightly different results than the .pth version. If you have issues, try the .pth model.",
"date": "2024-10-05",
"architecture": "mosr",
"size": null,
"scale": 2,
"inputChannels": 3,
"outputChannels": 3,
"resources": [
{
"platform": "pytorch",
"type": "pth",
"size": 17324914,
"sha256": "5a69d1c681aef2251802e69131631868b451c3874e0afb46f55bd6cc820e6400",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_MoSR_Sharp.pth"
]
},
{
"platform": "onnx",
"type": "onnx",
"size": 8844378,
"sha256": "027cd4d14b5c9ef860cb74d7c17b45f6fa84cfe916e75378f6ad78d554afb6d4",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_MoSR_Sharp_fp16.onnx"
]
}
],
"trainingIterations": 150000,
"trainingBatchSize": 10,
"trainingHRSize": 256,
"trainingOTF": false,
"dataset": "HFA2k Modified",
"datasetSize": 3000,
"images": [
{
"type": "paired",
"LR": "https://i.slow.pics/7JZs9Otd.webp",
"SR": "https://i.slow.pics/Sz54sRjY.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/mJZnrE4U.webp",
"SR": "https://i.slow.pics/kfXY7KhO.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/4RUqHkln.webp",
"SR": "https://i.slow.pics/8A1U5Fwf.webp"
}
]
}
60 changes: 60 additions & 0 deletions data/models/2x-AnimeSharpV2-MoSR-Soft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "2x-AnimeSharpV2_MoSR_Soft",
"author": "kim2091",
"license": "CC-BY-NC-SA-4.0",
"tags": [
"anime",
"compression-removal",
"restoration"
],
"description": "GitHub Link: https://github.com/Kim2091/Kim2091-Models/releases/tag/2x-AnimeSharpV2_Set\n\nThis is my first anime model in years. Hopefully you guys can find a good use-case for it. Included are 4 models:\n\n1. RealPLKSR (Higher quality, slower)\n2. MoSR (Lower quality, faster)\n\nThere are Sharp and Soft versions of both\nWhen to use each:\n- __Sharp:__ For heavily degraded sources. Sharp models have issues depth of field but are best at removing artifacts \n- __Soft:__ For cleaner sources. Soft models preserve depth of field but may not remove other artifacts as well\n\n__Notes:__\n- MoSR doesn't work in chaiNNer currently\n- To use MoSR:\n 1. Use the ONNX version in tools like [VideoJaNai](<https://github.com/the-database/VideoJaNai>)\n 2. Update spandrel in the latest version of ComfyUI\n\nThe ONNX version may produce slightly different results than the .pth version. If you have issues, try the .pth model.",
"date": "2024-10-05",
"architecture": "mosr",
"size": null,
"scale": 2,
"inputChannels": 3,
"outputChannels": 3,
"resources": [
{
"platform": "pytorch",
"type": "pth",
"size": 17324914,
"sha256": "141bd9b90c323f84cbeb17b4238f3b27df29fb43aeb09916aa6791d00e9352e4",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_MoSR_Soft.pth"
]
},
{
"platform": "onnx",
"type": "onnx",
"size": 8844378,
"sha256": "e29db0e4b50e0a09b929ad9014ee455802d9f493a82d3d542e6accfccff42743",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_MoSR_Soft_fp16.onnx"
]
}
],
"trainingIterations": 150000,
"trainingBatchSize": 10,
"trainingHRSize": 256,
"trainingOTF": false,
"dataset": "HFA2k Modified",
"datasetSize": 3000,
"images": [
{
"type": "paired",
"LR": "https://i.slow.pics/7JZs9Otd.webp",
"SR": "https://i.slow.pics/UHvWgH7C.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/mJZnrE4U.webp",
"SR": "https://i.slow.pics/x0uFFn4T.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/4RUqHkln.webp",
"SR": "https://i.slow.pics/4jyrfzDy.webp"
}
]
}
60 changes: 60 additions & 0 deletions data/models/2x-AnimeSharpV2-RPLKSR-Sharp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "2x-AnimeSharpV2_RPLKSR_Sharp",
"author": "kim2091",
"license": "CC-BY-NC-SA-4.0",
"tags": [
"anime",
"compression-removal",
"restoration"
],
"description": "GitHub Link: https://github.com/Kim2091/Kim2091-Models/releases/tag/2x-AnimeSharpV2_Set\n\nThis is my first anime model in years. Hopefully you guys can find a good use-case for it. Included are 4 models:\n\n1. RealPLKSR (Higher quality, slower)\n2. MoSR (Lower quality, faster)\n\nThere are Sharp and Soft versions of both\nWhen to use each:\n- __Sharp:__ For heavily degraded sources. Sharp models have issues depth of field but are best at removing artifacts \n- __Soft:__ For cleaner sources. Soft models preserve depth of field but may not remove other artifacts as well\n\n__Notes:__\n- MoSR doesn't work in chaiNNer currently\n- To use MoSR:\n 1. Use the ONNX version in tools like [VideoJaNai](<https://github.com/the-database/VideoJaNai>)\n 2. Update spandrel in the latest version of ComfyUI\n\nThe ONNX version may produce slightly different results than the .pth version. If you have issues, try the .pth model.",
"date": "2024-10-05",
"architecture": "realplksr",
"size": null,
"scale": 2,
"inputChannels": 3,
"outputChannels": 3,
"resources": [
{
"platform": "pytorch",
"type": "pth",
"size": 29581322,
"sha256": "ff5230dec962235e2ffbc542c232ba438537aefe6cb2db8d072c7bdf1247fbc9",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_RPLKSR_Sharp.pth"
]
},
{
"platform": "onnx",
"type": "onnx",
"size": 15324988,
"sha256": "b8704239f9cbacec75f6a078257bb2ee7a9a0ee7917c7029a331d1fbf4d59054",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_RPLKSR_Sharp_fp16.onnx"
]
}
],
"trainingIterations": 150000,
"trainingBatchSize": 10,
"trainingHRSize": 256,
"trainingOTF": false,
"dataset": "HFA2k Modified",
"datasetSize": 3000,
"images": [
{
"type": "paired",
"LR": "https://i.slow.pics/7JZs9Otd.webp",
"SR": "https://i.slow.pics/6Jxhk9W7.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/mJZnrE4U.webp",
"SR": "https://i.slow.pics/11ju3S94.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/4RUqHkln.webp",
"SR": "https://i.slow.pics/H1hh7YYK.webp"
}
]
}
60 changes: 60 additions & 0 deletions data/models/2x-AnimeSharpV2-RPLKSR-Soft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "2x-AnimeSharpV2_RPLKSR_Soft",
"author": "kim2091",
"license": "CC-BY-NC-SA-4.0",
"tags": [
"anime",
"compression-removal",
"restoration"
],
"description": "GitHub Link: https://github.com/Kim2091/Kim2091-Models/releases/tag/2x-AnimeSharpV2_Set\n\nThis is my first anime model in years. Hopefully you guys can find a good use-case for it. Included are 4 models:\n\n1. RealPLKSR (Higher quality, slower)\n2. MoSR (Lower quality, faster)\n\nThere are Sharp and Soft versions of both\nWhen to use each:\n- __Sharp:__ For heavily degraded sources. Sharp models have issues depth of field but are best at removing artifacts \n- __Soft:__ For cleaner sources. Soft models preserve depth of field but may not remove other artifacts as well\n\n__Notes:__\n- MoSR doesn't work in chaiNNer currently\n- To use MoSR:\n 1. Use the ONNX version in tools like [VideoJaNai](<https://github.com/the-database/VideoJaNai>)\n 2. Update spandrel in the latest version of ComfyUI\n\nThe ONNX version may produce slightly different results than the .pth version. If you have issues, try the .pth model.",
"date": "2024-10-05",
"architecture": "realplksr",
"size": null,
"scale": 2,
"inputChannels": 3,
"outputChannels": 3,
"resources": [
{
"platform": "pytorch",
"type": "pth",
"size": 29581666,
"sha256": "a4c2ca131646db2603a061082df726212fa0bcb89031b7d7182a0b7f66e418d9",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_RPLKSR_Soft.pth"
]
},
{
"platform": "onnx",
"type": "onnx",
"size": 15324988,
"sha256": "e4177ec9a15dd7219bb4a8b9394ff16a8b97942265ee949ca6c46f90ce4d52e9",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/2x-AnimeSharpV2_Set/2x-AnimeSharpV2_RPLKSR_Soft_fp16.onnx"
]
}
],
"trainingIterations": 150000,
"trainingBatchSize": 10,
"trainingHRSize": 256,
"trainingOTF": false,
"dataset": "HFA2k Modified",
"datasetSize": 3000,
"images": [
{
"type": "paired",
"LR": "https://i.slow.pics/7JZs9Otd.webp",
"SR": "https://i.slow.pics/YPeC8Ilj.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/mJZnrE4U.webp",
"SR": "https://i.slow.pics/h7e3IIGY.webp"
},
{
"type": "paired",
"LR": "https://i.slow.pics/4RUqHkln.webp",
"SR": "https://i.slow.pics/vRwR4fZK.webp"
}
]
}
58 changes: 58 additions & 0 deletions data/models/4x-PBRify-RPLKSRd-V3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "4x-PBRify_RPLKSRd_V3",
"author": "kim2091",
"license": "CC0-1.0",
"tags": [
"compression-removal",
"dds",
"debanding",
"dedither",
"dehalo",
"game-textures",
"restoration"
],
"description": "PBRify Github: https://github.com/Kim2091/PBRify_Remix\n\nRelease Link: https://github.com/Kim2091/Kim2091-Models/releases/tag/4x-PBRify_RPLKSRd_V3\n\nThis update brings a new upscaling model, 4x-PBRify_RPLKSRd_V3. This model is roughly 8x faster than the current DAT2 model, while being *higher quality*. It produces far more natural detail, resolves lines and edges more smoothly, and cleans up compression artifacts better.\n\nAs a result of those improvements, PBR is also much improved. It tends to be clearer with less defined artifacts. \n\nHowever, this model is currently **only compatible with ComfyUI**. chaiNNer has not yet been updated to support this architecture.\n\n[More Comparisons](https://imgsli.com/Mjk5NjQ5)",
"date": "2024-09-23",
"architecture": "realplksr-dysample",
"size": null,
"scale": 4,
"inputChannels": 3,
"outputChannels": 3,
"resources": [
{
"platform": "pytorch",
"type": "pth",
"size": 29717038,
"sha256": "1325a08842ebfc18aea90e71594aa9b9e82b9c7e16321dccf5b757884a22daf1",
"urls": [
"https://github.com/Kim2091/Kim2091-Models/releases/download/4x-PBRify_RPLKSRd_V3/4x-PBRify_RPLKSRd_V3.pth"
]
}
],
"trainingIterations": 160000,
"trainingBatchSize": 12,
"trainingHRSize": 256,
"trainingOTF": false,
"dataset": "PolyHaven, FreePBR, ambientCG, UltraSharpV2",
"datasetSize": 26000,
"images": [
{
"type": "paired",
"caption": "DAT2 vs RPLKSR",
"LR": "https://imgsli.com/i/e4d8eaad-956c-4145-b827-4cfceecb9801.jpg",
"SR": "https://imgsli.com/i/4d840f43-504b-4f15-bdf4-d548fdf7ec05.jpg"
},
{
"type": "paired",
"caption": "DAT2 vs RPLKSR 2",
"LR": "https://imgsli.com/i/edaa03e0-4c1f-4a5d-ae30-e07cec74cc89.jpg",
"SR": "https://imgsli.com/i/47d0cd27-2897-4749-b8c4-8aea10e49609.jpg"
},
{
"type": "paired",
"caption": "DAT2 vs RPLKSR 3",
"LR": "https://imgsli.com/i/dae8bf21-6d48-4e97-a4a8-acd58e343918.jpg",
"SR": "https://imgsli.com/i/747ffb24-619b-49a8-9720-6497a974549e.jpg"
}
]
}

0 comments on commit b65c118

Please sign in to comment.