Code Monkey home page Code Monkey logo

Comments (8)

graphific avatar graphific commented on July 18, 2024

got a pull request to work with? :)

from deepdreamvideo.

suhr avatar suhr commented on July 18, 2024

Um... no. I don't have any experience with video processing.
Should I try though?

from deepdreamvideo.

denjello avatar denjello commented on July 18, 2024

What about using OpticalFlow? > https://github.com/timscaffidi/ofxOpticalFlowFarneback

Might make sense as a post-producing step (between 2_ and 3_ to smooth the frames by adding respective motion blur.

from deepdreamvideo.

suhr avatar suhr commented on July 18, 2024

@denjello
The idea is that blending with more fitting result of the previous frame would improve dreaming of the current frame and might make hallucinations more stable.
Btw there's also optical flow in OpenCV.

from deepdreamvideo.

graphific avatar graphific commented on July 18, 2024

@suhr blending is already implemented:
--blend 0.5 (constant)
--blend random (random factor 0.5 - 1.0)
--blend loop (loop 0.5 <-> 1.0 and everything in betwen).

@denjello means to next to blending also keep the movement into account with optical flow. I got some code working, will try to implement it one if these days, helped by reddit: https://www.reddit.com/r/deepdream/comments/3cesna/with_optical_flow_source_in_comments/
If anyone else has time, feel free to try the code from there -^

from deepdreamvideo.

suhr avatar suhr commented on July 18, 2024

@graphific I'm aware it's implemented, but consider words “more fitting”. For example, now if some head in video moves, two frames with different head positions are blended. With optical flow you can correct the head position before blending and dreaming.

I got some code working, will try to implement it one if these days, helped by reddit: https://www.reddit.com/r/deepdream/comments/3cesna/with_optical_flow_source_in_comments/

Well, this looks like the thing I'm talking about.

from deepdreamvideo.

denjello avatar denjello commented on July 18, 2024

@graphific > can you share a gist of what you are working on?

from deepdreamvideo.

graphific avatar graphific commented on July 18, 2024

@denjello its basically just an exact copy of the reddit code, but halfway implemented, with a flag to enable it (-of, --optical_flow), so if anyone else has time: I probably wont get to it until end of the week.

from deepdreamvideo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.