I created MosaicDiff. It restores NSFW mosaic censorship using minimax h3 and custom lora.
Could be used in comfy ui but I made a tool that makes usage more easy.
It is free: github.com/dotaku22/MosaicDiff
If you want to use comfy ui anyway you can get workflow and custom nodes here: https://github.com/dotaku22/MosaicDiff-Comfy
I added censorship to random AI generated videos to show of what it can do, credits go to the creators of the original clips.
Description
FAQ
Comments (40)
I don't understand the Japanese; here we are in 2026 and they still censor porn like that.
You're right; you don't understand them.
It's kinda funny because they are WAY more sexually permissive than almost any country in the world. I mean, America doesn't have hentai porn.
well at least now we have a way to reverse it :D
@herpderpmerp That video isn't originally censored. Does that just happen over there no matter what you look at?
Their choice.
@jdoe_55513 and my choice is to not respect their choice
@Mahfakah it works for any censored video
@herpderpmerp But that Goblintide video isn't censored. It kinda looks like you blurred it and then put the original video as the "after" result.
@herpderpmerp hentai anime too?
I mean the USA is MUCH more about censorship. Look at all the video games that have been censored, the book bans (Over 6000 books banned in the USA this year so far), the TV censorship. I mean America is puritanical. Movies have been changed in the USA so that they push puritanical ideals (The Girl with a Dragon Tattoo is a great example of this) and censored content that challenges the status quo.
The USA is extremely prudish and uneasy about nudity, even the topic of sex from an educational standpoint bothers them, shit science in general is an issue in the USA. Seriously, sex is considered sinful and should be avoided as a topic, but violence is glorified and encouraged.
It's barbaric.
Make no mistake, this sorta stuff we're downloading here is being put on the table to be banned in the USA. Project 2025 , Turning Point, and others are working their way towards that future very soon for the USA if the midterms go in the GOP's favor.
@Mahfakah well if you think it's the original it did a good job :D
Since I can not post anything with real humans and none creates censored ai porn I had to add censorship myself. But it is actually just the result when putting in the mosaic version, and it was not part of the training data.
Also if you look at the original version you will see it looks different. https://civitai.red/images/143821823
@LuringSuccubus not tested, but was not part of my training data, could still work tho.
@herpderpmerp You're right it does. Towards the end of your sample video it looks like the dick really wanted to censor itself again. 😂
Japan censoring industry : we're worth billions
Also Japan : we're run by right wing nutjobs who LOVE to control people and act like we're superior because of our supposed moral superiority (basically like the evangelical nutjobs in the US)...
Basically once again CONSERVATIVES ruining everything thanks to religion and their tiny little brains
To hide bushy pubic hair :-)
@lolmao500 The Japanese religion has no real moral opposition to sex, I don't think. They're Shinto-Buddhist, and to my knowledge, neither Shinto nor Buddhism teach that all people everywhere should be prudish. The censorship was more likely influenced by America's views on sex in the 80's and 90's, and I believe I once heard that they elected to keep it because they didn't want the people who did the censorship work to lose their jobs.
That's how Japanese law works. If you want to publish legally, you have to add mosaics. Otherwise, it's illegal content, which not only can't be sold through normal channels but also can get you in legal trouble. It's kind of like their bubble bath and similar entertainment industries—you can offer body-to-body rubbing services, but actually paying for sex (on the premises) is illegal. That's Japan for you.
lora.safetensors. at least it is not named v1.safetensors.
Could this eventually be used to de-blur faces?
it probably already does fine with faces as you can see half of widow makers face is covered in the example
Great work , can you provide a workflow and a general purpose prompt
the workflow is on the github.
Great now all the fake "uncensored leaked" javs will be impossible to tell.
Thanks for making it! It seems it also uses basicvsr for restoration. Is H3 alone not capable of full restoration?
results are better with it, and it is so much faster that it does not really slow it down
Does this only work with video? Would this also work with images that have a mosaic censor? I think it would turn them into a video, but that's fine, right? Instead of a video loader node, could you use an image loader node?
It does smart stuff by taking multiple frames into account for it, for images just inpaint
There are plenty easier ways to uncensor an image. Just use qwen edit
@thisisnotduy164 what prompt?
Thanks for making it. I do have an idea, though: would it be possible to make an IC-LoRA version for LTX-2.5? It might be probably run faster.
probaply, correct me if I am wrong but isn't h3 much better in text 2 video for genitals? And that's what matters here.
@herpderpmerp Since I usually only use H3, I don't really know all that much about LTX 2.5. I just feel like the current speed is pretty slow, which is why I had this thought. I think you're right, too.
Any chance for a linux release?
The node version throws
ModuleNotFoundError: No module named 'mosaicdiff.paths'
Do we have to install the desktop version as well?
The current repository appears to be missing two modules required by mosaicdiff/pipeline.py.
pipeline.py imports:
from mosaicdiff.paths import nodes_dir, worker_script
from mosaicdiff.settings import Settings
However, neither mosaicdiff/paths.py nor mosaicdiff/settings.py exists in the cloned repository, and neither file appears in git ls-files.
This causes ModuleNotFoundError: No module named 'mosaicdiff.paths' when running the custom node.
Could you check whether these files were accidentally omitted or whether the code needs to be updated to match the current repository?
@triall I fixed it. Just get the two files from the original repo and put them in ComfyUI-MosaicDiff\mosaicdiff\
https://github.com/dotaku22/MosaicDiff/blob/main/mosaicdiff/paths.py
https://github.com/dotaku22/MosaicDiff/blob/main/mosaicdiff/settings.py
Replacing the model with fastH3 omni model, 2x speedup.
Details
Files
lora.safetensors
Mirrors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
Mirrors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors
DecensoreH3_000002500.safetensors