Skip navigation
spent some time on 🇨🇦 day making a version that's just c++ and compiled kernels
0:00 / 0:48

spent some time on 🇨🇦 day making a version that's just c++ and compiled kernels

gandamu

@gandamu_ml16K followers

Visit on X
155 likesDownloadOriginal post

18,027 views

spent some time on 🇨🇦 day making a version that's just c++ and compiled kernels most of the effort was actually a tool not seen here.. but then I didn't use the tool since I ended up automating the flying

24 Comments

Comments from the original post on X (Twitter)

  • XWAVΞ's profile picture

    @XWAVEart

    love to see it

    2 likes

  • The Nose's profile picture

    @MeatMan_Inc

    I miss this kind of AI video

    2 likes

  • ‏۟'s profile picture

    @c0ok3d

    Hell Yeah

    2 likes

  • J's profile picture

    @parkhjaey

    What did the tool end up doing then

    1 like

  • gandamu's profile picture

    @gandamu_ml

    You can steer the video as it's rendering. Also, DD is modified so basically all the settings are per-frame in a CSV file. You can edit it as it's rendering to change the prompt or other settings. Works very well, but requires extreme patience to actually steer based on output.

    1 like

  • AbandonedMuse's profile picture

    @abandonedmuse

    Will you be putting this on GitHub?

    1 like

  • gandamu's profile picture

    @gandamu_ml

    I'm aiming for a simple Windows exe first. This isn't what most people who've gotten into it want first, but that's part of the point.

    1 like

  • AbandonedMuse's profile picture

    @abandonedmuse

    Idc I will use it with Wine. I want random Ai like this. I like having the option to do this kind of insanity

  • Chris Hackett's profile picture

    @thehackettman

    This is awesome

    1 like

  • Chris Hackett's profile picture

    @thehackettman

    Is there anything you'd recommend if someone was going to have this recoded? Might try.

    1 like

  • gandamu's profile picture

    @gandamu_ml

    "rewrite this in c++ make no mistakes" hehe. In reality there is some iteration. I probably asked for c++ + libtorch first. It used TorchScript first but it was slow. Ultimately it's AOT compiled kernels that use fp16 without quality degradation. Just don't let it be mediocre.

    3 likes

  • Chris Hackett's profile picture

    @thehackettman

    Thank you so much.

    1 like

  • X Girls's profile picture

    @thesoragirls

    @yacineMTB This is that circa 2022 ai video nostalgia vibe

    1 like

  • 𓆏's profile picture

    @voatfellow

    What made you rewrite it? Still love disco, best creative experience and exploration I've had with any image creation.

    1 like

  • gandamu's profile picture

    @gandamu_ml

    I knew from recent experience that I can simply ask Codex or Claude to rewrite the whole thing in C++ and it's done in no time 😅 I do need to give it some advice to do things well.. and getting it to compile the kernels in the best way required persistence, but it's easy.

    3 likes

  • gandamu's profile picture

    @gandamu_ml

    I had a tool for flying the camera during rendering in late 2021 (for Pytti, then DD) but I never properly released it because: a) it was written in Python (hard to distribute), b) required dev packages for GPU use, c) most users used Colab (ToS violation when driven by my app)

    3 likes

  • gandamu's profile picture

    @gandamu_ml

    A C++ rewrite ironically (similar to how native iOS apps are often easier to build and distribute than Java) is easier to distribute. I can just pack an executable with the models and prebuilt kernels and people can install it. Python on the other hand is weird.

    3 likes

  • gandamu's profile picture

    @gandamu_ml

    I also almost always end up iterating faster when a project is native C/C++ rather than something that runs slower. Rather than need to profile and target certain slow points, I can just make it all good and fast and basically not worry about it. Also unintuitive.

    3 likes

  • 𓆏's profile picture

    @voatfellow

    I hope you're going to release it with all the improvements you're cooking up. DD is something for the museums looking back at this time :)

    1 like

  • Denis Shiryaev 💙💛's profile picture

    @literallydenis

    nostalgic, will you push a code?