comfyui_pytorch360convert
Custom ComfyUI nodes using pytorch360convert
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.8%) to scientific vocabulary
Keywords
Repository
Custom ComfyUI nodes using pytorch360convert
Basic Info
Statistics
- Stars: 16
- Watchers: 1
- Forks: 3
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
ReadMe.md
📷 PyTorch 360° Image Conversion Toolkit for ComfyUI
Overview
This project implements the functions from pytorch360convert as custom ComfyUI nodes, along with a few additional useful functions for working with equirectangular 360 images and cubemaps.
The pytorch360convert library provides powerful and differentiable image transformation utilities for converting between different panoramic image formats like Equirectangular (360°) Images, Cubemap Representations, and Perspective Projections.
| E2C -> C2E | E2C -> Split -> Rebuild -> C2E |
| :---: | :----: |
|
|
|
🔧 Requirements
📦 Installation
If the provided installation information below is not enough, then please see here for more details on installing custom ComfyUI nodes: https://www.comflowy.com/advanced/how-to-install-comfyui-extension
ComfyUI Manager install
If ComfyUI-Manager is installed, then you can download via pasting in the github link to this repo, or via the built-in install menu.
Installation for portable ComfyUI
Basic install
Download this repo as a zip file and then unzip it inside the ComfyUI custom_nodes directory.
Then install the dependency:
python -m pip install pytorch360convert
git install
If using Windows, you can install git from here: https://git-scm.com/download/win if you have not done so already and wish to use Git. Then navigate to the custom nodes directory and then run:
git clone https://github.com/ProGamerGov/ComfyUI_pytorch360convert --recursive
Then install the dependency for Linux and MacOS:
python -m pip install pytorch360convert
Or for Windows:
path/to/python.exe -m pip install pytorch360convert
ComfyUI registry install
comfy node registry-install comfyui-pytorch360convert
💡 Usage Examples
See the provided workflow files in the examples directory for examples of how to use each new node.
📚 Nodes
The custom nodes added by this project are available under the 'pytorch360convert' heading in the node selection tab.
Equirectangular to Cubemap (E2C)
The E2C node converts equirectangular images into cubemaps. For more information see the pytorch360convert repo here.
Cubemap to Equirectangular (C2E)
The C2E node converts cubemaps into equirectangular images. For more information see the pytorch360convert repo here.
Equirectangular to Perspective (E2P)
The E2P node converts equirectangular images into perspective images. For more information see the pytorch360convert repo here.
Equirectangular to Equirectangular (E2E)
The E2E node rotates an equirectangular image along one or more axes (roll, pitch, and yaw) to produce a horizontal shift, vertical shift, or to roll the image. For more information see the pytorch360convert repo here.
Roll Image Axes
The Roll Image node rolls an image along the height dimension (y axis) or the width dimension (x axis). This can help make artifacts like seams more accessible. Note that y axis rotations are not correct for final equirectangular outputs. Use the E2E node instead for y axis rotations.
If you set 'rollxby50percent' to True, then any x and y axis values are ignored, and the image is shifted horizontally to be 50%. This is equivalent to a 180 degree rotation on an equirectangular image.
Roll Mask Axes
The Roll Mask node rolls an mask along the height dimension (y axis) or the width dimension (x axis). This can help make artifacts like seams more accessible. Note that y axis rotations are not correct for final equirectangular outputs. Use the E2E node instead for y axis rotations.
If you set 'rollxby50percent' to True, then any x and y axis values are ignored, and the image is shifted horizontally to be 50%. This is equivalent to a 180 degree rotation on an equirectangular image.
Crop Image with Coords & Paste Image with Coords
These two nodes allow you to crop a section of an image out to make things like in-painting faster and more memory efficient, before pasting the cropped section back into the original image.
By default, the cropping node center crops images according to the provided croph and cropw values. If croph2 and cropw2 are used, then the image will be cropped according to [..., crop_h:crop_h2, crop_w:crop_w2, ...].
Masked Diff C2E
This is an experimental node for only pasting the modified parts of face images to the original equirectangular image. This is meant to help lessen the loss of image quality caused by converting between equirectangular and cubemap formats.
Pad 180 to 360 Equirectangular
This node pads a given 180 degree equirectangular image, so that it becomes a 360 degree equirectangular image.
Crop 360 to 180 Equirectangular
This node crops a 360 degree equirectangular image into a 180 degree equirectangular image.
Crop Stereo to Monoscopic
This node allows you to horizontally or vertically crop a 360 degree equirectangular image that is in stereo format or 3D format, into two separate monoscopic images.
Merge Monoscopic into Stereo
This node allows you to combine two separate monoscopic 360 degree images into a single stereo or 3D image.
Apply Circular Padding Model
This node allows you to apply circular padding to the x-axis of all Conv2d layers in a model. This can help with reducing the seam where the left and right sides of the image connect.
Apply Circular Padding VAE
This node allows you to apply circular padding to the x-axis of all the Conv2d layers in a VAE. This can help with reducing the seam where the left and right sides of the image connect.
Equirectangular to Face (E2Face)
This node allows you to get a single face from an equirectangular image.
Face to Equirectangular (Face2E)
This node allows you to create an equirectangular image from a single face.
Create Pole Mask
This node allows you to create a circle shaped mask in the center of a face tensor if set the 'face' mode. If set to equirectangular mode, It creates a circle shaped center mask in the Up face and the Down face, and then builds those faces into an equirectangular output. Optional feathering can be be applies at the boundaries between the hard mask and the background.
Create Seam Mask
This node allows you to create a vertical mask in the center of an equirectangular image that extends from top to bottom, and has a user specified width. When combined with the 'Roll Image Axes' node and 'rollxby50percent' set to True, you can move the seam/border of your equirectangular image to the center. Then you can use the mask to perform inpainting and masked compositing to erase any visible boundaries. Optional feathering can be be applies at the boundaries between the hard mask and the background.
Panorama Viewer
For viewing 360 images inside ComfyUI, see the github.com/ProGamerGov/ComfyUI_preview360panorama custom node.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
🔬 Citation
If you use this library in your research or project, please refer to the included CITATION.cff file or cite it as follows:
BibTeX
bibtex
@software{Egan_ComfyUI_pytorch360convert_2025,
author = {Egan, Ben},
license = {MIT},
month = jan,
title = {{ComfyUI\_pytorch360convert}},
url = {https://github.com/ProGamerGov/ComfyUI_pytorch360convert},
year = {2025}
}
APA Style
Egan, B. (2025). ComfyUI_pytorch360convert [Computer software]. https://github.com/ProGamerGov/ComfyUI_pytorch360convert
Owner
- Login: ProGamerGov
- Kind: user
- Location: Multiverse
- Repositories: 15
- Profile: https://github.com/ProGamerGov
Citation (CITATION.cff)
abstract: "ComfyUI custom nodes for padding, sampling, and converting between cubemap, equirectangular, and panoramic formats."
authors:
- family-names: Egan
given-names: Ben
cff-version: 1.2.0
date-released: "2025-01-26"
keywords:
- equirectangular
- panorama
- "360 degrees"
- "360 degree images"
- cubemap
- research
license: MIT
message: "If you use this software, please cite it using these metadata."
repository-code: "https://github.com/ProGamerGov/ComfyUI_pytorch360convert"
title: "ComfyUI_pytorch360convert"
GitHub Events
Total
- Issues event: 2
- Watch event: 15
- Delete event: 12
- Issue comment event: 4
- Push event: 104
- Public event: 1
- Pull request event: 28
- Fork event: 3
- Create event: 14
Last Year
- Issues event: 2
- Watch event: 15
- Delete event: 12
- Issue comment event: 4
- Push event: 104
- Public event: 1
- Pull request event: 28
- Fork event: 3
- Create event: 14
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 25
- Average time to close issues: 5 days
- Average time to close pull requests: about 4 hours
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 5.0
- Average comments per pull request: 0.0
- Merged pull requests: 20
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 25
- Average time to close issues: 5 days
- Average time to close pull requests: about 4 hours
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 5.0
- Average comments per pull request: 0.0
- Merged pull requests: 20
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- razvanab (1)
Pull Request Authors
- ProGamerGov (21)
- robinjhuang (4)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- Comfy-Org/publish-node-action v1 composite
- actions/checkout v4 composite
- pytorch360convert *
- pytorch360convert *