Nodes Browser
ComfyDeploy: How Google Photos Loader - by PabloGFX works in ComfyUI?
What is Google Photos Loader - by PabloGFX?
A ComfyUI custom node that integrates Google Photos into your workflows. List albums, load images from specific albums, and search photos directly within ComfyUI. Features customizable image loading options, sorting, and efficient caching for seamless integration of your Google Photos library into AI image processing pipelines.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
Google Photos Loader - by PabloGFX
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
Google Photos Loader for ComfyUI
To correctly use this workflow you need to right click on each node that has "client_secrets.json" directory file definition, and click "fix node", than it brings the directory name to the default one.
Tutorial
Check out this video tutorial to see the Google Photos Loader for ComfyUI in action:
Google Photos Loader for ComfyUI
Table of Contents
- Description
- Features
- Installation
- Setting up Google Photos API
- Usage
- Node Types
- Troubleshooting
- Dependencies and Licenses
- License
- Contributing
- Support
- To-Do List
- About the Creator
Description
The Google Photos Loader for ComfyUI is a custom node that allows users to seamlessly integrate Google Photos into their ComfyUI workflows. This powerful tool enables direct access to your Google Photos library, making it easy to list albums, load images from specific albums, and load images based on various criteria - all within your ComfyUI environment.
Features
- ๐ List all Google Photos albums
- ๐ผ๏ธ Load images from a specific album
- ๐ Load images based on content categories, date, and other filters
- ๐ ๏ธ Customize image loading options (size, cropping, etc.)
- ๐ Efficient caching mechanism for improved performance
- ๐ Secure login and logout functionality
- ๐งน Cache management tools (in development)
Installation
- Ensure you have ComfyUI installed and set up.
- Clone this repository into your ComfyUI's
custom_nodes
directory:cd /path/to/ComfyUI/custom_nodes git clone https://github.com/lazniak/comfyui-google-photos-loader.git
- Install the required dependencies:
pip install -r requirements.txt
Setting up Google Photos API
To use this node, you need to set up a Google Cloud project and enable the Google Photos Library API:
- Go to the Google Cloud Console. Watch tutorial from beginning.
- Create a new project or select an existing one.
- Enable the Google Photos Library API for your project.
- Create credentials (OAuth 2.0 Client ID) for a desktop application.
- Download the client configuration and save it as
client_secrets.json
in the same directory as the custom node files.
Usage
- In ComfyUI, you'll find several new nodes related to Google Photos.
- Drag and drop the desired node into your workflow canvas.
- Connect the node to your workflow as needed.
- Configure the node settings according to your requirements.
- Run your workflow. The node will authenticate with Google Photos on first use.
Node Types
Google Photos Album Lister
- Lists all albums in your Google Photos library.
- Outputs album information including ID, title, and item count.
Google Photos Album Selector
- Allows you to select a specific album from the list generated by the Album Lister.
- Outputs the selected album ID for use in other nodes.
Google Photos Album Loader
- Loads images from a specified album.
- Customizable options for image size, count, and processing.
Google Photos Images Loader
- Loads images from your entire Google Photos library.
- Supports advanced filtering options like content categories and date ranges.
Google Photos Cache Manager
- Manages the local cache of downloaded images.
- Options to clear cache or limit cache size.
Google Photos Login/Logout
- Handles authentication with Google Photos.
- Allows for secure login and logout functionality.
Content Filter Node
- Allows you to specify content categories for filtering images.
Date Picker Node
- Provides a simple interface for selecting dates, useful for date-based image filtering.
Troubleshooting
- If you encounter authentication issues, use the Login/Logout node to reset your authentication.
- Ensure your
client_secrets.json
file is correctly placed and formatted. (IMPORTANT!!! NAME SHOULD HAVE "s" rather then original file was secret in this case use secrets) - Check the ComfyUI console for detailed logs if you enable the "Advanced Logs" option in the nodes.
- If you're experiencing performance issues, try using the Cache Manager node to optimize your local cache.
Dependencies and Licenses
This project uses the following main dependencies:
- aiohttp (Apache 2.0 License) - Version: >=3.7.4
- google-auth-oauthlib (Apache 2.0 License) - Version: >=0.4.1
- google-auth (Apache 2.0 License) - Version: >=1.30.0
- Pillow (HPND License) - Version: >=8.0.0
- torch (BSD 3-Clause License) - Version: >=1.7.0
- termcolor (MIT License) - Version: >=1.1.0
- numpy (BSD 3-Clause License) - Version: >=1.19.0
For full license details, please refer to the individual package repositories.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Support
If you encounter any issues or have questions, please file an issue on the GitHub repository. For more detailed support or custom development inquiries, you can reach out to Paul directly through his social media channels or website.
To-Do List
- Implement more advanced sorting and filtering options
- Enhance error handling and user feedback
- Optimize performance for large image libraries
- Develop more integration options with other ComfyUI nodes
About the Creator
This ComfyUI CustomNode was created by Paul Lazniak (Paweล ลaลบniak), also known as PabloGFX. Paul is a multifaceted professional with extensive experience in software development, filmmaking, VFX artistry, and entrepreneurship.
Professional Background
Paul began his career in the early 2000s, working on various projects for prominent Polish TV stations such as MTV, TVN, and TVP. His expertise spans compositing, editing, special effects, and software development.
As an innovator in virtual reality (VR), Paul co-founded the VR Visio Group, which later evolved into Ignibit S.A., one of Poland's leading companies focused on virtual reality and immersive technologies.
Current Ventures
Paul is currently involved in developing new projects through his companies:
- HexArt: Combining cinematography with advanced digital technologies
- Overbuilt Games: Game development studio
- Green Cave Studio: Creative digital solutions
Content Creation and Education
Paul is a Polish-speaking content creator focusing on technology and digital tools. He provides tutorials and guides, particularly on topics such as Stable Diffusion and other AI-based tools.
Contributions to Film and VR
Paul's contributions to the Polish film industry are documented in the Polish Film Database. He is also known for his thought leadership in digital and virtual realities.
Connect with Paul
- Website: hexart.pl
- YouTube: @Lazniak
- Facebook: PabloGFX
- Twitter: @PabloGFX
- GitHub: github.com/PabloGFX
- LinkedIn: linkedin.com/in/paul-lazniak
To learn more about Paul's journey and work, check out his bio video.
Enjoy using the Google Photos Loader in your ComfyUI workflows!