Commit Graph

662 Commits (f783821d8a2366514eeed366010d2e2bbc489cb0)

Author SHA1 Message Date
hithereai f783821d8a C1 2023-05-17 14:39:16 +03:00
kabachuha 75eb62897c add switch to deprecated grayish colormatch 2023-05-15 01:22:16 +03:00
hithereai a678262ec0 remove old commented line 2023-05-09 18:55:47 +03:00
hithereai a050498053 add info to p2p cfg sch ui param 2023-05-09 18:48:25 +03:00
hithereai ccffd7435c make run tab a lil bit tidier 2023-05-09 18:47:16 +03:00
hithereai 1dfab22195 auto hide/show ddim and ancestral schedule related params in ui 2023-05-08 22:23:52 +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
hithereai d1f860e1ce remove mp4_path param (not in use) 2023-05-08 01:33:55 +03:00
hithereai 4b6106b357 fix pers_flip shown in ui if enabled before switching to interp or vid input mode 2023-05-07 13:26:10 +03:00
hithereai d82724452f move depth warp to its own tab, change persp_flip from accord to no accord 2023-05-07 02:43:50 +03:00
hithereai 02b2f32b35 del unused code 2023-05-07 00:20:32 +03:00
hithereai 004be005a6 remove output_format param from code 2023-05-06 23:51:08 +03:00
hithereai 79610c4f44 remove filename_format param from code 2023-05-06 23:42:29 +03:00
hithereai 6807cebafa remove display_samples param from code 2023-05-06 23:41:15 +03:00
hithereai 149b9bb8f9 remove path_name_modifier and render_steps params from code 2023-05-06 23:34:02 +03:00
hithereai 6d7bdea73d delete save_samples function and param from code 2023-05-06 23:27:44 +03:00
hithereai 3e8dd9fbe8 remove from_img2img_instead_of_link param from code 2023-05-06 22:51:07 +03:00
hithereai 344108a936 remove show_sample_per_step param from code 2023-05-06 22:50:03 +03:00
hithereai 5010c99470 remove init_c and init_latent params 2023-05-06 22:48:22 +03:00
hithereai d55a84b4c6 remove c and f params from code 2023-05-06 22:45:07 +03:00
hithereai 39a40e915f temporarily remove midas3.1beitlarge
since it causes some problems with extreme 3d movement and depth prediction. will return when it's fixed
2023-05-04 23:20:56 +03:00
hithereai c4d69cc13e set default 3d depth alg to 'Midas-3-Hybrid' 2023-05-03 23:33:16 +03:00
hithereai 4b9548fc68 bump version+
and credits in info accord
2023-05-03 21:42:33 +03:00
hithereai a1de5338bb add dynamic msg to gradio ui about leres license 2023-05-03 19:11:11 +03:00
hithereai 692aac9ee6 auto-hide midas/zoe weight param when not in legacy 3d mode(l) 2023-05-03 15:58:46 +03:00
hithereai b8e78908f8 rename legacy modes to have an (old) at their end 2023-05-03 15:30:41 +03:00
hithereai b6c631e6c7 add legacy zoe+adabins mode 2023-05-03 06:53:08 +03:00
hithereai 95ac505f02 add midas beit large 3.1 version too 2023-05-03 03:46:12 +03:00
hithereai 2b81316a10 Depth V2 - RBN changes included 2023-05-03 02:38:24 +03:00
hithereai 3f0d474b28 return kabas changes to prompt and fixed seed 2023-05-02 10:44:21 +03:00
hithereai cbdfa5dc3c Depth Revise Part 1 2023-05-02 04:51:25 +03:00
kabachuha 4b51be881c add nsfw, nude to default negative prompts 2023-05-01 17:34:36 +03:00
hithereai 0e9176f0c1 take gradio's ui arg values from da. instead of setting them manually 2023-04-30 21:29:25 +03:00
hithereai 7041917c2e deduplicate - use a loop gor gradio.change stuff 2023-04-30 21:19:22 +03: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
hithereai 94f0f08f47 revive missing raft and set to default too 2023-04-22 19:32:43 +03: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 a0ad08df8a set RAFT to default hybrid optical flow method 2023-04-18 03:04:42 +03:00
hithereai 98b5319008 auto-hide optical flow cadence stuff if cadence = 1 2023-04-18 00:57:36 +03:00
hithereai 13b6acbdaf Add RAFT Optical Flow 2023-04-17 21:57:01 +03:00
hithereai 41dd8aa9db del visible=false as it's default 2023-04-16 20:40:33 +03:00
reallybigname 65f9c3bf19 Made Optical flow cadence work in 2D mode
I figured out a hack to make optical flow cadence work in 2D.  To do optical flow cadence, I have to warp the flow field.  But, the 2D animation warping function, usually used on images, would mess with the values of the flow (as if they were colors).  So, I scaled them down by 1000 going in and scale them back up doing out, and it eliminates the effect it had which would make the image wobble around.

The same scaling actually messes with 3D optical flow cadence, so I leave that working at the normal scale factor.

I also made one modification to 3D optical flow cadence where it temporarily changes the sampling mehod (used by 3d warping function) to 'nearest' just for the flow warping, then restores it to it's previous value. This should help to minimize any pixel effects from warping.
2023-04-15 17:12:41 -07:00
hithereai a34cbcf22e Multi-Control-Net 2023-04-14 21:47:56 +03:00
hithereai a23c452eb5 fix wrong ffmpeg args in vid2depth (still not working though) 2023-04-14 09:04:32 +03:00
reallybigname 8fce400b46 Changed tile size from 64 to 8
After thorough testing of generation directly, I verified that it can handle tile sizes of 8.  If this tile size is not met, animation does now work correctly because the images coming out of generation don't match the specified dimensions, making the prev_img wrong, which makes animation warping wrong.

Previous tile size of 64 was legacy, from notebook, and old auto1111 I believe. But, the pipeline can handle divisors of 8, verified. However, still not sure if the images produced are as good as when you use the 64 tile size, which is the size of the latent representation.

In any case, there was no limit on this before, and with these changes, it will assure that animation is always accurate.  Suggest leaving slider at increments of 64. But, now if they select a dimension manually, it will be properly forced to tile size of 8, to ensure proper sizing through the engine.
2023-04-11 23:19:27 -07:00
hithereai c34fd6ae1a tiny fix 2023-04-11 22:34:31 +03:00
hithereai b987feb5d3 Introducing Zoe(Depth) 2023-04-11 22:31:19 +03:00
kabachuha 90f3c12eef
add info on exposed variables in the Guided images mode
as it confused a person in https://www.reddit.com/r/StableDiffusion/comments/12e75zd/whats_the_max_f_in_the_deforum_guided_images/
2023-04-08 23:14:05 +03:00
hithereai 72184b3211 skip to next file in batch if a file couldn't be loaded p1 2023-04-08 18:48:35 +03:00