David Marx

Results 167 comments of David Marx

https://discord.com/channels/869630568818696202/869675528494391307/911779334312837161 >Я — 11/20/2021 >To rotate about an axis [x, y, z] by a degrees you will need > >`rotate_3d: [cos(radians(a/2)),x*sin(radians(a/2)),y*sin(radians(a/2)),z*sin(radians(a/2))]`. > >For example to rotate by 3 degrees per...

> you need to understand how much you want to rotate each frame and also what axis you want to rotate around > representing the axis as a unit vector...

``` https://t.co/7y7B0XyTKmrotate_3d: [cos(radians(6)),0,-sin(radians(6))/sqrt(2),sin(radians(6))/sqrt(2)]translate_x: -1700*sin(radians(6)) pic.twitter.com/BCQTYkRRjz— ya (@sportsracer48) October 22, 2021 ```

Alternatively, the [R_is_Ris](https://www.reddit.com/r/deepdream/comments/rkljoc/observer_pytticlip_psychedelic_trip/hpdcdfy/?context=3) vesrion > `[cos(pi/a),cos(pi/(a*b)),d*cos(pi/(a*c)),cos(pi/a)]`, where abcd are constants that suit the motion of the scene (higher value, slower rotation)

this isn't a docs thing, but this feels like the right place to put it for now: https://github.com/moble/quaternion

https://thenumb.at/Exponential-Rotations/

some sample animation presets via nerdy rodent here: https://www.youtube.com/watch?v=YCK8Jmxd0fo

something like this: ``` python -m pytti.workhorse conf=empty init_image=/home/dmarx/Downloads/joe-biden.jpeg scenes="'[/home/dmarx/Downloads/van-gogh.jpg]'" height=512 width=410 pixel_size=1 direct_init_weight=1 image_model="VQGAN" vqgan_model=coco steps_per_frame=500 steps_per_scene=500 save_every=20 cutouts=128 cut_pow=1.5 gradient_accumulation_steps=1 ``` prior to building this tutorial though, I...

documenting related idea: better support for generating looping animations

I'm pretty sure this is something pytti can already do, just need to build a demonstration. moving this to the pytti-book backlog as a tutorial.