46 Commits
Author SHA1 Message Date
bmad4ever 2c582c2baf Merge pull request #8 from ComfyNodePRs/update-publish-yaml
Update Github Action for Publishing to Comfy Registry
2025-03-17 14:51:47 +00:00
snomiao 9ce6455c69 chore(publish): update GitHub Actions workflow for node publishing
- Add permissions for issue writing
- Restrict job execution to specific repository owner
- Update action version from `main` to `v1` for stability and consistency
2025-01-20 22:55:57 +00:00
bmad4ever a16f0d73fc Merge pull request #6 from ComfyNodePRs/licence-update
Update PyProject Toml - License
2024-08-02 23:01:12 +01:00
snomiao 24d7eaee84 chore(licence-update): Update PyProject Toml - License 2024-08-02 13:37:54 +00:00
bmad4ever e07d90d029 Merge pull request #5 from haohaocreates/publish
Add Github Action for Publishing to Comfy Registry
2024-06-03 00:06:36 +01:00
bmad4ever e40a5c3d2c Update pyproject.toml 2024-06-03 00:04:26 +01:00
bmad4ever e13cce53ee Merge pull request #4 from haohaocreates/pyproject
Add pyproject.toml for Custom Node Registry
2024-06-03 00:03:31 +01:00
Bruno Madeira a9dac445da workflow examples 2024-06-02 23:57:27 +01:00
Bruno Madeira d55657d0e7 bugfix + refactor
fixed wrong indices when opening initial positions when dealing with a non empty starting world.
2024-06-02 21:51:58 +01:00
Bruno Madeira 4ac1d4c7b3 replace commented code with TODO and exception with a msg. 2024-05-30 17:30:28 +01:00
Bruno Madeira ae37811012 refactoring.
cleaning validate_adjacent function.
2024-05-30 17:22:54 +01:00
Bruno Madeira dfda945d98 refactoring
* added type aliases
* extracted methods
* more code documentation
* other minor stuff

note: self._update_state might be blunder. It might obfuscate behavior instead of help with readability. Might consider rolling back this specific change.
2024-05-30 01:44:03 +01:00
Bruno Madeira 30525e8ca2 minor refactor
* remove string duplication in node declaration.
likely the most useless so far, but makes the linter happier.
2024-05-29 00:31:56 +01:00
Bruno Madeira 87e111066b more refactoring
* extracted methods for end search checks
* removed takewhile abstraction and re-implemented potential_collapses using a for loop ( should be very explicit now )
* temperature and weight configs have their own dataclasses now, in shared_types.py
2024-05-29 00:13:08 +01:00
Bruno Madeira 5dab9a070f refactoring + more caching
* use bool arg in get adjacent tiles to indicate explicitly whether out of bound tiles are included or excluded
* cache latest fetched adjacency coordinates.
2024-05-28 14:49:27 +01:00
Bruno Madeira 5dcaeb72ac quick fix
! fix upper bounds when getting adjacent tile coords !
+ and missing outbound items when getting adjacent states.

* TODO: check if 5x5 roi zero check is still needed. since None positions are now filtered prior.
* might rollback some of the latest changes; they may not be improving readability...
2024-05-28 12:49:01 +01:00
Bruno Madeira 85aad1b220 remove some unneeded comments 2024-05-28 01:06:28 +01:00
Bruno Madeira 6e1165f872 refactoring continuation.
- re-use adjacent_tiles_coords and avoid filtering valid indices within get_cell_potential_states_and_costs.
- in the same func, remove branching to get potential states and setup the correct func in the constructor.
2024-05-28 01:04:06 +01:00
Bruno Madeira 51c1642a44 removed cv dependency + refactoring
- img is no longer scaled when dimensions don't match the tile size. Instead it is cropped from the pixel 0 to the height/width that fits the last full tile. Supposes that the (0,0) corner is a tile corner.
- separated updated_open_nodes into two different functions: close_node and reopen_node.
- re-implemented reopen_node using convolution (requires scipy and it is not yet used).
- other refactors for easier readability and linter stuff.
2024-05-27 23:41:06 +01:00
haohaocreates 92e57bcba5 chore(pyproject): Add pyproject.toml for Custom Node Registry 2024-05-22 14:12:42 -04:00
haohaocreates 776f7198ab chore(publish): Add Github Action for Publishing to Comfy Registry 2024-05-22 14:12:38 -04:00
Bruno Madeira c0ad6c829b refactoring + minor changes.
entropy is returned as before, but when computing costs the normalized entropy is used instead.
replaced comparisons w/ zero and commented out asserts that execute during the generation loop.
refactored some code blocks.
2024-05-20 22:41:53 +01:00
Bruno Madeira 942df589c1 Merge branch 'main' of https://github.com/bmad4ever/comfyui_wfc_like 2024-05-15 19:34:27 +01:00
Bruno Madeira b19fc690c3 remove old comments and assert world sample size.
- comment related to the hashcode is not relevant in the current implementation.
- adjacency rules are required, otherwise can fail when sampling or generating; asserting they were obtained might prevent confusion.
2024-05-15 19:34:12 +01:00
bmad4ever 5df55d1abf Update README.md
clarify; different terms were used to refer to the same thing, likely confusing for the reader.
2024-03-19 23:02:45 +00:00
Bruno Madeira ae23136ef2 reworked first documentation section.
added new paragraphs explaining the use of hashcodes and potential problems.
2024-03-19 22:54:49 +00:00
Bruno Madeira e87c503957 Catch key error exception and print warning. 2024-03-19 21:30:04 +00:00
bmad4ever 65b67c3144 Update README.md
Removed quotation mark at the end.
2024-03-16 23:19:15 +00:00
bmad4ever 8c86752ec0 Update README.md
fix line.
2024-03-16 23:18:02 +00:00
bmad4ever efd3ae98ff Update README.md 2024-03-14 10:36:05 +00:00
bmad4ever 30daaa1226 Update README.md
fix indentation
2024-03-14 10:31:54 +00:00
bmad4ever 612f1cff9c Update README.md
Make sections collapsible and add a separator between them.
2024-03-14 10:30:03 +00:00
bmad4ever 01c8f975a2 Update README.md
Troubleshooting
2024-03-14 10:21:26 +00:00
bmad4ever 184e2bb4fd Update README.md 2024-03-14 01:34:20 +00:00
bmad4ever 1739bee837 Update README.md
Added documentation for: Encode; Decode; EmptyState; Filter; and GenParallel nodes.
2024-03-14 01:30:30 +00:00
bmad4ever 5895ffad02 Update README.md
Added documentation for the Sample and Generate nodes.
2024-03-13 10:01:16 +00:00
Bruno Madeira d14d3c0440 improved search.
- when computing possible next states, stop early if a contradiction or a collapse is found.
- search space is pruned -> when a state leads to a collapse, only the collapse is added to queue; this improves backtracking considerably, and should have been implemented at day 1.

also renamed open tiles variable.
2024-03-05 20:52:56 +00:00
Bruno Madeira 8683708ccb Merge branch 'main' of https://github.com/bmad4ever/comfyui_wfc_like 2024-03-04 17:19:58 +00:00
Bruno Madeira 02a9112f36 changed state hashing & nodes costs.
entropy zero results in zero cost ( tries to force "collapse" cascade via the neighbors );
entropy is now used to weight rand & freq_adjust;
hash discriminates data order, e.g hash(1,2)!=hash(2,1) AND works similarly to zobrist, xoring prev state w/ the action instead of using the entire state.
2024-03-04 17:19:28 +00:00
bmad4ever 6e31a428d0 Update README.md
Important disclaimer.
2024-02-29 17:03:46 +00:00
Bruno Madeira 2ef7166245 address points in issue #1. 2024-02-28 23:08:37 +00:00
Bruno Madeira 67b9d931a0 workaround to get rid of Manager. 2024-02-26 03:32:58 +00:00
Bruno Madeira 912a0f5516 verify adjacent tiles when selecting potential candidates for a open cell & allow to use previous solution, skipping this newly added validation. ( on some rules it just results in empty endpoints, so it might be preferable to use the simpler version ) 2024-02-25 22:24:36 +00:00
bmad4ever 0e9b7c753c Update README.md 2024-02-25 01:27:14 +00:00
bmad4ever 1dba1b398c source code and requirements.
Should be working but might contain some old comments or unused code.  
Will try to add documentation and sample workflows next week.
2024-02-25 01:23:46 +00:00
bmad4ever 86d6fc843c Initial commit 2024-02-25 01:17:37 +00:00