r/StableDiffusion • u/PATATAJEC • Oct 03 '26
Tutorial - Guide Minimax H3 + RefMod = consistent location trick
Hey, I found a pretty cool way to keep locations consistent across generations.
I took 20 photos of my “office” where I work, making sure each photo included a bit of the previous one so everything connected.
I turned them into a refmod, although it probably doesn’t even need to be one. It’s basically a grid of all 20 photos in a single image, within 2048×2048 pixels, so I could probably just use that image as a regular reference.
Then I added references for the fly, my cat, and the start and end frames. You can see the result — that’s my actual room, and everything looks right and sits exactly where it should :)
Workflow + reference images here: link
Sorry about the mess, both in the room and in the workflow ;)
EDIT: All the room photos need to be combined into one reference image. I tried using several separate images, but that didn’t work for me — the room wouldn’t stay consistent. Putting them all into a single grid is what made it work.
29
u/ShutUpYoureWrong_ Oct 03 '26
I've tried this before and sadly didn't have as much success as you, but after seeing this, I'll give it another go.
Also, your video is awesome and very clever. Love it.
13
u/chloralhydrate Oct 03 '26
Awesome! Gonna try something tomorrow. Thank you
6
u/sharegabbo Oct 06 '26
10
u/vault_nsfw Oct 03 '26
That sound immediately triggered my mosquito defense mechanism.
4
u/DrKyoumasaur221 Oct 04 '26
A few questions:
2
u/SnooMacaroons1365 Oct 03 '26
If for example you didnt make a refmod, how would you use a grid of these images to tell h3 ehixh view is which?
2
u/Schwartzen2 Oct 04 '26
Good on you to bring more attention to RefMods, they're really versatile. You can also use them for motion and styles. Thanks for sharing your room, decidedly austere. 😄
58
u/Orbiting_Monstrosity Oct 04 '26
One interesting thing I discovered recently is that H3 can use fisheye lens photos as scene references, and it knows how to dewarp those references when reproducing them in a generated video. I was able to create completely normal-looking scenes set in my office and shot from many different angles using a single overhead fisheye image of the entire room as a reference, and was able to do the same thing with several other overhead fisheye images that I tried.
3
u/VRGoggles Oct 03 '26
You did the best move. Refmod does not kill VRAM and performance, but regular references totally do it.
12
u/extreme911 Oct 04 '26
Krea2 can generate panorama shots. Take that panorama still and generate a 1 sec video of that panorama turning 360. Feed that 1 sec video as reference for your H3 environment. Works like a charm
2
u/cbeaks Oct 03 '26
Funny, I too discovered this just yesterday. My images weren't joined up so it gets the layout a bit wrong between rooms but it is very impressive how accurate it is. My images were also just in a folder, I used about 10 images.
1
u/ForbiddenVisions Oct 03 '26
I want to check if I understood correctly. You made a refmod out of 20 images of your room, then used it with a start frame, an end frame, your cat and a fly to make this video?
1
u/iczerone Oct 03 '26
Is there any tips for using ref mods. I have mixed results when using them. Sometimes it will botch the voice or mix up the characters and other times it will be amazingly good.
1
u/ArttTaku Oct 03 '26
Qwewn Image 2.1 can create 360 panorama images... it would be interesting to see that combined with this workflow... thanks for sharing!
1
u/Smokeey1 Oct 04 '26
Amazing work man. Place it on github tho mate, i aint downloading shi from a random dude google drive
1
u/Local-External4193 Oct 04 '26
Awesome gotta ask can refmods bu plugged into any workflow, so I can keep other settings and loras or do they change it completely?
1
u/RepresentativeRude63 Oct 05 '26
What about the room reference image resolution? ( I mean the grid one)
1
u/Hopeful_Signature738 Oct 06 '26
Why not take a panorama image if you want to combined them into a single image? I also wondering whether we can just feed a panorama image as the reference image and try to work from that
3
u/SveSop Oct 05 '26
Nice! I have been struggling with the same thing. I have tried adding a "multi-photo" as a regular reference image, but not really gotten H3 to do it right.
However, through the magic of RefMod, it actually seem to figure out the room layout a lot better when adding that type of image to the Ref.
👍
1
u/Ok-Flatworm5070 Oct 04 '26
Question could we do apply this same logic using H3 360 spin of environment?
1
u/QuestionsGoHere Oct 03 '26
What's your setup. Great work on the video
1
u/Psyko_2000 Oct 03 '26
i wonder how this would work with a 360 panorama image of a room
1
u/cal_01 Oct 03 '26
What on earth, this is exactly what I need for my workflow. Thank you!
1
u/MeanderAndReturn Oct 04 '26
Shake Hands With Beef!
2
u/ChickyGolfy Oct 04 '26
Im actually doing the same thing with fictionnal places. I start with a still image, create a video that do a 360 degree, then feed that video as a scene reference.
But video are much heavier than images, so i might use images instead.
2
u/fallengt Oct 04 '26 edited Oct 04 '26
But you can also do that with ref image. Sheet pictures of your room; you don't need many angles: <subject 1> is the room from <picture 1>, preserve etc..
Then Minimax will keep the overall layout consistent. You can even draw where the fly will go this way :))
2
u/Enshitification Oct 04 '26
Here I've been trying to get H3 to work well with equirectangular pano images and projection cubes. All I really needed to do was give H3 the raw images used to knit the pano. Nice find with the refmod idea.
1
u/Exciting-Income-5840 Oct 27 '26
So a single image ref or an image refmod?
1
u/x_MASE_x Oct 04 '26
Nice work will give it a shoot. I was thinking about making something similar. Thank you so much.
1
u/Ok_Swimming6444 Oct 04 '26
Definitely gonna try this out. Thank you!
1
u/Free_Scene_4790 Oct 04 '26
You can do the same thing with a video that rotates the camera 360 degrees.
1
u/Potential_Wolf_632 Oct 04 '26
Nice work. Definitely helps that H3 is absurdly good at POV or near POV stuff to start with.
1
u/-becausereasons- Oct 04 '26
Very cool! I'm going to experiment with turning this kind of thing into a Gaussian Splat
1
u/Serssader Oct 04 '26
Do I need a custom node for refmod?
1
u/Both_Significance_84 Oct 04 '26
M8b a 360º photo could do the trick.
1
u/webAd-8847 Oct 04 '26
This looks amazing!
1
u/DescriptionSuperb262 Oct 05 '26
mind uploading an example of how you threw it together in a ref image? i tried this once and it turned out badly, but im curious on how you handled it
1
u/Broad_Relative_168 Oct 05 '26
Awesome! Great idea—well-conceived and well-executed—plus you shared the workflow and reference images. You're a legend!
1
u/_Standardissue Oct 05 '26
[Same energy](https://youtu.be/Jm0eDTe4TYo?t=55&is=jwhySSAuAIa6R1Or)
1
u/slimssshaddy Oct 06 '26
Damn, that looks quite impressive
1
u/exportkaffe Oct 07 '26
Men In Black intro
1
u/wildmonkeywrangler Oct 09 '26
I don't know if I can hate AI anymore lol
1
u/wildmonkeywrangler Oct 09 '26
This is awesome... now I gotta look up how to make a refmod
1
u/Divineboob Oct 09 '26
Can you make refmods of actions via videos to improve character movement and better prompt adherence?
1
u/Accomplished-Tax1050 Oct 10 '26
Good catch on combining the room photos into one grid instead of feeding them in separately.
1
u/bunnybunny_game 9d ago
can try to make a snorricam shot?
1
u/R34vspec Oct 03 '26
I love this, great job
1
u/Diligent-Childhood90 Oct 04 '26
Awesome turnaround, love the outcome. Thanks for sharing
0
u/Silver-Belt- Oct 03 '26
Awesome idea!
0
u/aumtek Oct 03 '26
Nice idea
0
u/Silvasbrokenleg Oct 03 '26
Very cool!
0
u/[deleted] Oct 04 '26
[deleted] — view deleted comment
1
u/[deleted] Oct 04 '26
[removed] — view removed comment