
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
A workflow for turning images into 2.5D animations with depth-based segmentation and inpainting
Create a new environment with Python 3.10+ and install the project in development mode:
# Create and activate a virtual environment
python3.12 -m venv .venv
source .venv/bin/activate # On macOS/Linux
# .venv\Scripts\activate # On Windows
# Install the project and dependencies
pip install -e .
After installation, you can start the application using the entry point:
# Using the installed entry point
parallax-maker
# Or run the module directly
python -m parallax_maker.webui
You can then reach the web ui via http://127.0.0.1:8050/. Be prepared that the first time, any new functionality is used, the corresponding models need to be downloaded first. This can take a few minutes based on your connection speed. If you want to prefetch the default models, you can start the application with:
parallax-maker --prefetch-models=default
[!NOTE] If you want to make changes to the styles, you need to set up
node
and runnpm run build
to rebuild the tailwind css file. This requires installingtailwindcss
vianpm install -D tailwindcss
.
[!IMPORTANT]
To use Stable Diffusion 3 Medium, you will need to install the current versio of diffusers from github.
Provides a workflow for turning images into 2.5D animation like the one seen above.
Using an input image, the tool runs a depth model like Midas or DINOv2 to generate a depth map
and then creates cards that can be used for 2.5 parallax animation.
This animation was created using the following command:
ffmpeg -framerate 24 -i rendered_image_%03d.png -filter_complex "fps=5,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" output.gif
The tool also supports generating a glTF2.0 scene file that an be easily imported into 3D apps like Blender or Unreal Engine.
[!TIP] To utilize depth of field camera effects for the Blender scene, the material needs to be changed to ALPHA HASHED.
[!TIP] To utilize depth of field camera effects for Unreal Engine, the material needs to be changed to Translucent Masked.
A Dash based Web UI provides a browser assisted workflow to generated slices from images, inpaint the slices and then export them as a glTF scene to Blender or Unreal Engine. The resulting glTF scene can also be visualized within the app or manipulated via a command line tool and the state file saved by the app.
The Docker image is available for both ARM64 (Apple Silicon) and AMD64 (Intel/AMD) architectures.
# Pull and run the container
docker pull nielsprovos/parallax-maker:v1.0.1
docker run -it -p 8050:8050 \
-v $(pwd)/.cache:/root/.cache/ \
-v $(pwd)/workdir:/app/workdir \
nielsprovos/parallax-maker:v1.0.1
Parallax Maker also supports the Automatic1111 and ComfyUI API endpoints. This allows the tool to utilize GPUs remotely and potentially achieve much higher performance compared to the local GPU. It also means that it's possible to use more specialzied inpainting models and workflows. Here is an example ComfyUI inpainting workflow that makes use the offset lora published by Stability AI.
FAQs
A workflow for turning images into 2.5D animations with depth-based segmentation and inpainting
We found that parallax-maker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.