Giter Site home page Giter Site logo

comfyui-makeframe's Introduction

MakeFrame

BreakFrames:

Break any animation file that OpenCV will process into individual frames.

image

GetKeyFrames:

Process scene detection on all given frames, rank-orders, returns top N results. Also returns labeled images.

image

MakeGrid:

Plots given images on a grid. Calculates number of rows and columns for most even aspect ratio.

  • For concurrent frame generation. Creates potentially massive image.
  • Images are resized to be evenly-divisible by rows, columns, and 8 (to prevent "resize wobble").
  • Empty cells are padded with repeats of last image. Black space frustrates generation.

image

BreakGrid:

Breaks given image grid(s) back into individual images. Good practice to use rows/columns output from MakeGrid.

image

comfyui-makeframe's People

Contributors

lonicamewinsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

comfyui-makeframe's Issues

'ImageDraw' object has no attribute 'textsize'

I am using labeled Keyframes output

File "C:\Users\user\Documents\GitHub\ComfyUI\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\user\Documents\GitHub\ComfyUI\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\Users\user\Documents\GitHub\ComfyUI\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\Users\user\Documents\GitHub\ComfyUI\ComfyUI\custom_nodes\ComfyUI-MakeFrame\nodes\MakeFrame.py", line 104, in getkeyframes
keyframes_labeled = [mfu.ImgLabeler(frame, str(idx), size=72, color="#ffffff") for frame, idx in zip(pils, keyframe_indices)]
File "C:\Users\user\Documents\GitHub\ComfyUI\ComfyUI\custom_nodes\ComfyUI-MakeFrame\nodes\MakeFrame.py", line 104, in
keyframes_labeled = [mfu.ImgLabeler(frame, str(idx), size=72, color="#ffffff") for frame, idx in zip(pils, keyframe_indices)]
File "C:\Users\user\Documents\GitHub\ComfyUI\ComfyUI\custom_nodes\ComfyUI-MakeFrame\makeframeutils.py", line 104, in ImgLabeler
text_size = draw.textsize(text, font=font)

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.