Commit Graph

285 Commits (a7b829eb8a2a2571789267a3b3bcc3d26a62bdb9)

Author SHA1 Message Date
rewbs c01e57d926 Initial test framework 2023-07-31 13:24:26 +10:00
Robin Fernandes 02a13cf9e6
Merge pull request #807 from rewbs/parseq-guided-images
Allow Parseq to control guided images schedules
2023-07-28 14:19:30 +10:00
Robin Fernandes 0fafce9c57 Don't skip creating preview video if the preview frame is a cadence frame (create it on the next generation frame) 2023-07-21 23:48:00 +10:00
Robin Fernandes 45f5abc96c Rudimentary status tracking. 2023-07-20 01:12:19 +10:00
rewbs 71917cab9e Add support for Parseq to control guided images schedules. 2023-07-05 10:59:57 +10:00
hithereai 43273d8cc2 Merge remote-tracking branch 'upstream/automatic1111-webui' into pr/796 2023-07-02 19:56:40 +03:00
rewbs 9cedc48739 Add optional preview video render which generates the vid every N frames (either sync or async. Minor: improve error message if hybrid video finds no frames to use. Minor: include 2D centre transform x/y in the console log along side other anim params. 2023-06-26 19:34:15 +10:00
rewbs bec0817b72 Simplify PR #790 to include only changes to enable controlnet to be controlled by Parseq (not guided images). 2023-06-16 15:21:15 +10:00
rewbs 9805c3ff57 Add support for Parseq to control ControlNet and Guided Images. 2023-06-16 00:23:02 +10:00
hithereai 78ed48f9dc semantics 2023-05-21 22:33:33 +03:00
hithereai 9bf3f3d677 remove seed_enable_extras - unused 2023-05-21 17:51:36 +03:00
hithereai 1b9301d82f p 2023-05-21 17:20:47 +03:00
kabachuha 47f7140c4d Revert "add license notices"
This reverts commit 37504733b4.
2023-05-20 11:46:21 +03:00
kabachuha 4b07029029 Revert "change contact notices the discord server"
This reverts commit dc0031e1ac.
2023-05-20 11:46:16 +03:00
kabachuha dc0031e1ac change contact notices the discord server 2023-05-20 01:26:40 +03:00
kabachuha 37504733b4 add license notices 2023-05-20 01:21:16 +03:00
hithereai 504f38a831 פ 2023-05-19 23:53:19 +03:00
hithereai a7beb20909 clean 2023-05-19 00:19:31 +03:00
hithereai ee2bb0c7f2 Update render.py 2023-05-18 13:54:00 +03:00
hithereai b0b3f52a55 Update render.py 2023-05-17 15:12:29 +03:00
hithereai ee024d4bfe Update render.py 2023-05-17 15:12:11 +03:00
hithereai f783821d8a C1 2023-05-17 14:39:16 +03:00
hithereai 9912465870 Merge remote-tracking branch 'upstream/automatic1111-webui' into pr/709 2023-05-15 16:36:07 +03:00
kabachuha dac0121fc9 add switch to deprecated grayish colormatch 2023-05-15 01:23:39 +03:00
kabachuha b280841d1e fix frames grayness 2023-05-15 00:50:04 +03:00
hithereai e2ca6c067a Merge remote-tracking branch 'upstream/automatic1111-webui' into pr/709 2023-05-12 19:12:40 +03:00
reallybigname 1856db88b2
Makes optical flow cadence work with hybrid motion (#708)
* Revert "Merge pull request #422 from hithereai/sampler_sch_fixes"

This reverts commit 09c99d10ed, reversing
changes made to 97ab68b13b.

* more vertically compact ui

* Revert "more vertically compact ui"

This reverts commit 0826d76e2d.

* Makes optical flow cadence work with hybrid motion

this one simple change of moving the routine allows for optical flow cadence to play nicely with hybrid motion during cadence

---------

Co-authored-by: hithereai <121192995+hithereai@users.noreply.github.com>
2023-05-12 19:11:26 +03:00
rewbs 5955abb18d Better output formatting (including error cases). Include whether current frame is a cadence frame or not in the subtitles. 2023-05-12 16:35:40 +10:00
rewbs ab05c05850 Allow prompts as subtitles. Optionally embed subtitles into mp4. Fix subtitles with Parseq: use getattr() instead of __dict__ to ensure fallback to non-Parseq controlled params works correctly. 2023-05-12 11:45:33 +10:00
reallybigname f39acbf486 fixed frames for 0-based counting in inputframes
also removed the stupid switching behavior for max frames when using a mask??? wtf
2023-05-08 13:41:13 -07:00
hithereai ea2d899851 fix 2023-05-08 22:27:43 +03:00
hithereai c360360b51 add ancestral_eta_scheduling
todo: auto-show/hide in ui
2023-05-08 03:28:20 +03:00
hithereai 6095dd757c replace ddim_eta with ddim_eta_schedule
turns out ddim_eta is a global general setting param now, not passed directly as a p.ddim_eta any more. So i made it a schedule.

Todo: only show in ui if ddim is selected.
2023-05-08 02:57:45 +03:00
kabachuha b5055fe7d0 fix frame_idx not being passed into prepare_prompt
Pointed out in https://github.com/deforum-art/sd-webui-deforum/pull/610

Co-Authored-By: ali42 <7451075+ali42@users.noreply.github.com>
2023-05-06 15:34:30 +03:00
reallybigname 03f54a3768 FIXED optical flow cadence
Properly normalized the optical flow field before warping and after warping based on width and height.  Now, because the range of the values are between -1 and 1 (usually much smaller), the flow doesn't get corrupted by the grid_sample for 3D or the warpPerspective for 2D anymore. So, I was able to remove all workarounds and just fix the abs to rel and rel to abs functions.
2023-05-04 12:37:34 -07:00
hithereai 0348eb683c some cleanups 2023-05-02 11:45:52 +03:00
hithereai cbdfa5dc3c Depth Revise Part 1 2023-05-02 04:51:25 +03:00
hithereai dde01b3915 remove commented unused imports from render.py 2023-04-30 21:24:49 +03:00
reallybigname eec4c7a348 quick fix for progress bar during cadence
makes progress advance smoothly during cadence rather than skipping ahead suddenly after cadence completes

left line commented for state.current_image, since I'm not sure what that variable actually does. It doesn't update the preview when I try it, even when turning up the speed of preview updates in auto1111.  But, if we decide to make a preview mechanism or need that state var for cadence, it can just be uncommented.  It matches the format of the one in the main non-cadence loop.
2023-04-29 23:31:19 -07:00
reallybigname 352a8fdb07 Consistency flow masks & fixed Frames to Video
added consistency flow masks
- there is now an option to use flow consistency masks and an attached option for consistency mask blur, defaulted to 2.
- if you save extra frames, it also save consistency masks now
- you can see the effect on the flow in the flow outputs as well
- it doesn't work as great with cadence because you see afterimages, but if you up the blur it can be a little better.

fixed Frames to Video
- made the ffmpeg routine that Frames to Video uses able to take image files other than png.  If png, it includes the -vcodec png as normal. But, if anything else it includes vcodec libx264, which works for jpgs. (jpgs don't work if using vcodec png, so I made it switchable). I haven't tested it with other filetypes, but I bet it works with others too. The png vcodec was specific to png.
- also added two more lines of instruction for how to use the file string.

- I also changed a few ransac functions for future use. They work as normal, but now have a switching behavior if passed depth. But, I'm not passing depth to them for now.
- a few minor code var name edits in hybrid video to align code better (mostly changed matrices to M, as is often convention

- commented a bunch of unused imports in render.py
  - I'll leave it up to someone else to delete them after it's verified that everything works fine with them commented.  I searched and didn't find them in that file. VSCode showed them as gray automatically, but I also verified.
2023-04-29 22:37:49 -07:00
reallybigname 2826e6d476 removed extra generation after generation for Image and Video Input
It wasn't working anyway, so I removed that mechanism and restored it to the previous behavior of just color matching after generation when using Image of Video Input.

Also cleaned up some code and added console reporting about Redo cycles.
2023-04-24 13:37:10 -07:00
reallybigname 5f3c4ac82e consolidated prompt code
saw an easy area where I could get some prompt code out of render_animation and into prompt.py
2023-04-24 11:57:40 -07:00
reallybigname 96e374844e Updates to Hybrid Video & More + Temporary Removal of RAFT
Discovered that RAFT wasn't actually working due to an issue with the function that got the flows.  There was a missing "elif".  So, the RAFT flow would get calculated and stored in the variable 'r', but then 'r' would always be overwritten by the default Farneback at the end.  We were fooling ourselves into thinking that was RAFT, when in actuality the RAFT flow is invalid and causes an error if actually used.
  - Changed function call for flow methods so that this can never happen. Now, each case returns directly.
  - Added to deprecation utils for now. We can remove the RAFT to Farneback conversion when we get RAFT working

Realignment of the way I handled frame indexes in motion routines to align everything more clearly

Major improvement to motion using prev_img during cadence!
  - added a prev_img during cadence so that there is a prev_img to refer to for the flow

Fixed color matching issue with first frame on Image and Video Init modes
  - first frame color match can't be done beforehand, so it's done afterwards. But, that normally makes for a very bad first frame. So, I added a redo for it to clean up the color matched image on first frame.

Major improvement to RANSAC
  - switched to use SIFT for feature matching instead of Lucas-Kanade
  - changed all border_mode to REFLECT_101, which matched how optical flow handled it, removed all the excess silly border_mode translations. This works much better.
2023-04-22 06:22:15 -07:00
hithereai 18c5c5aab7 set raft quality default to 50 instead of 12, fix optical flow cadence always being Farnback 2023-04-21 22:32:27 +03:00
hithereai 41b9e5220c fix 3d depth glitches 2023-04-20 16:28:52 +03:00
hithereai 2d66ccbb85 Update render.py 2023-04-18 12:05:22 +03:00
hithereai 7a1bec43a5 activate raft on redo_generation 2023-04-18 12:04:38 +03:00
hithereai 599fef64f5 fix raft error 2023-04-18 11:39:23 +03:00
rewbs 20c4fac824 Parseq: when delegating seed control to Deforum, prevent "AttributeError: 'DeformAnimKeys' object has no attribute 'subseed_series'" 2023-04-18 14:18:24 +10:00
hithereai 13b6acbdaf Add RAFT Optical Flow 2023-04-17 21:57:01 +03:00