Commit Graph
336 Commits
Author SHA1 Message Date
mcDandy 5072b191b7 Add tensor ops and parser support
Expose new tensor operations (softmax, softmin, argmin, argmax, unique, flatten, matmul, cross, and related tensor helpers) in the README and add corresponding grammar rules/tokens. Updated MathExpr.g4 to include new func productions and token definitions, and regenerated parser artifacts (MathExprLexer/Parser/Listener/Visitor/UnifiedMathVisitor and .interp/.tokens files). Also includes minor README formatting/typo fixes.
2026-02-10 15:38:47 +01:00
mcDandy f73a472324 Merge branch 'main' of https://github.com/mcDandy/more_math 2026-02-10 00:11:02 +01:00
mcDandy 4aeb009129 missed functions in readme 2026-02-10 00:10:59 +01:00
mcDandy d4cd834fb8 forgot to change video to output video... 2026-02-09 23:55:48 +01:00
mcDandy de65293966 batching 2026-02-09 23:54:11 +01:00
mcDandy 0010d31995 Update README with compatibility warning clarification
Clarified warning about compatibility with ComfyUI-Impact-Pack and ComfyUI-Ovi.
2026-02-09 19:40:02 +01:00
mcDandy b5f7ca83d0 Update README.md - add latest changes 2026-02-09 19:39:38 +01:00
mcDandy 7c5f644349 Clarify stack support in README
Updated README to clarify stack support and its usage.
2026-02-09 18:58:52 +01:00
mcDandy 4935791ebb rewrite index expression 2026-02-08 17:10:22 +01:00
mcDandy 6122ca4b0c unnecesery casting 2026-02-08 12:24:40 +01:00
mcDandy ebdaefbe14 forgot a zero 2026-02-08 11:16:11 +01:00
mcDandy fb3e41e54f fix 2026-02-08 11:10:25 +01:00
mcDandy b8b98cb758 add optional shape argument 2026-02-07 16:37:39 +01:00
mcDandy 74e5859366 Update README with new variable and function descriptions 2026-02-06 10:52:29 +01:00
mcDandy 29ecec9a9e return scalar instead of 1 element tensor 2026-02-06 10:28:31 +01:00
mcDandy ed2781d125 fix V not being acessable in some cases 2026-02-04 19:36:13 +01:00
mcDandy 0c1d3f52d6 argsort + add do nothing option on tensor size mismatch 2026-02-04 19:09:56 +01:00
mcDandy 8ffc9a394c AI refactor indexing 2026-02-04 14:05:01 +01:00
mcDandy f5e8c3ba8c fixed 2026-02-03 14:11:47 +01:00
mcDandy 38e795eb35 Better errors + batch shuffle (subject to rename) 2026-02-03 13:59:19 +01:00
mcDandy b06e26b82e Update ConditioningMathNode.py 2026-02-03 13:17:59 +01:00
mcDandy 7e637da47f dict ->{} 2026-02-03 13:17:39 +01:00
mcDandy e01a74d6ad add tensor creation and fix ruff 2026-02-03 10:17:43 +01:00
mcDandy 9d0f87e43f Int<->bool conversion 2026-02-02 20:44:20 +01:00
mcDandy d53d725fcc AI fix stack and large refactor + add count 2026-02-02 20:16:22 +01:00
mcDandy a1d1ce8c03 change stack to dict 2026-02-02 18:59:30 +01:00
mcDandy 881a18d392 added stack prefix to stack operations 2026-02-02 15:17:59 +01:00
mcDandy eae6b03f25 Add stack passing 2026-02-02 12:48:13 +01:00
mcDandy ac0c2f43d3 Add None. It is sometimes usefull to create empty variable 2026-02-01 17:26:53 +01:00
mcDandy 34eb4837cd how did this get there 2026-02-01 16:52:26 +01:00
mcDandy e501753407 AI: add F[x] along with cound and fixes 2026-02-01 16:52:09 +01:00
mcDandy 93c4559bfd add optional semicolon 2026-02-01 16:45:32 +01:00
mcDandy c4b270bc96 AI add a variable which contains all input V variables
V0 = V[0]
...
2026-02-01 16:33:33 +01:00
mcDandy 3467cf0663 (AI) set value based on position 2026-02-01 15:21:32 +01:00
mcDandy 4c5ef98571 (AI)get_value + crop 2026-02-01 15:20:01 +01:00
mcDandy 2ee4dfd507 crop, get_value + formating 2026-02-01 15:19:24 +01:00
mcDandy 270a539d91 Addid scientific notation. I forgot to commit. 2026-02-01 15:18:19 +01:00
mcDandy ce0c620a36 did I not puth it? 2026-02-01 15:17:23 +01:00
mcDandy 44e5bcc0e2 (BREAKING) (AI): using [,] to repeat batches was STUPID. Why did I even thought it was a good idea? 2026-02-01 15:15:48 +01:00
mcDandy c537f72d63 fix bug 2026-02-01 00:14:26 +01:00
mcDandy ef4c0c6f78 ability to batch latent + fixes 2026-01-31 12:27:19 +01:00
mcDandy a84a3b16e0 add support for scientific notation 2026-01-30 23:27:20 +01:00
mcDandy e13e3ac013 fixed an issue when (probably) multiplying list and tensor 2026-01-30 21:22:58 +01:00
mcDandy 9e2e4d4db6 make conditioning math batchable 2026-01-30 18:47:51 +01:00
mcDandy db8000d51e add device info to visitor and fixed forgotten ' 2026-01-30 14:22:13 +01:00
mcDandy a84c4f3048 fix stack not behaving correctly on model,vae and clip 2026-01-30 11:38:13 +01:00
mcDandy 03dcb7c424 aded break and continue 2026-01-30 11:35:20 +01:00
mcDandy e2bf6f1a20 Change to exception-less return
It was giving me problems in ModelMath
2026-01-29 17:26:17 +01:00
mcDandy e7d913ccd0 add time measurement and updated readme 2026-01-29 12:54:53 +01:00
mcDandy 13e5b4e800 Add comments 2026-01-29 11:19:02 +01:00