Nodes/comfyui-fvmtools/Reality Check (LM Studio)
ComfyUI Node

Reality Check (LM Studio)

Asks a local vision model perception questions about one picture and infers whether it is physically possible.

By ping1979ping·Created 6 months ago·Updated 2 days ago· 1
Reality Check (LM Studio)
  • image
  • passed
  • failed
  • score
  • report
  • json
  • image
◄base_urlhttp://localhost:1234/v1►
◄model►
◄expected_people1►
◄threshold0.50►
◄passes1►
◄temperature0.10►
◄aggregationmedian►
◄check_partstrue►
◄check_peopletrue►
◄check_landmarkstrue►
◄check_handsfalse►
◄check_physicsfalse►
◄check_textfalse►
◄max_image_size1024►
◄timeout120►
◄seed0►
◄on_errorpass►
◄system_prompt►
CategoryFVM Tools/Batch

Inputs (19)

NameTypeDefaultDescription
imageIMAGE—
base_urlSTRINGhttp://localhost:1234/v1LM Studio's OpenAI-compatible endpoint.
modelSTRINGVision model id. Empty uses whatever LM Studio has loaded. Needs a VLM — a text-only model answers nonsense.
expected_peopleINT11–10How many people the picture should show. More heads or limbs than this allows is a defect.
thresholdFLOAT0.500–1Fail when the worst weighted finding reaches this. Findings score ~1.0, so 0.5 is a wide margin.
passesINT11–9Runs per probe. At temperature 0.1 repeats give identical answers — raise both together, or leave at 1.
temperatureFLOAT0.100–2—
aggregationCOMBOmedianHow repeated passes are reduced. Only matters when passes > 1.
check_partsBOOLEANtrueCount heads, arms, hands, legs, feet — catches duplicated bodies and extra limbs.
check_peopleBOOLEANtrueCount people and spot merged bodies.
check_landmarksBOOLEANtrueFront-of-body and back-of-body landmarks seen at once — catches impossible torso twists.
check_handsBOOLEANfalseFinger counts. Off by default: small models cannot resolve fingers and raise false alarms.
check_physicsBOOLEANfalseFloating bodies and limbs through furniture. Off by default: reads a compressed mattress as a body sinking through it.
check_textBOOLEANfalseGarbled lettering. Worth turning on for scenes with signage.
max_image_sizeINT1024256–2048Long edge sent to the model. Below ~900 the giveaways blur away.
timeoutINT1205–900—
seedINT00–18446744073709550000—
on_errorCOMBOpassWhat to answer when the model cannot be reached. pass: keep the picture and say so — an inspector that cannot see should not reject a batch.
system_promptoptSTRINGOverrides the built-in instrument prompt. Empty uses the calibrated one.

Outputs (6)

NameTypeDescription
passedBOOLEAN—
failedBOOLEAN—
scoreFLOAT—
reportSTRING—
jsonSTRING—
imageIMAGE—