Skip to content

Commit 60b4826

Browse files
authored
General Improvements
1 parent 8630cce commit 60b4826

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

ReadMe.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ Or for Windows:
5252
path/to/python.exe -m pip install pytorch360convert
5353
```
5454

55+
#### ComfyUI registry install
56+
57+
```
58+
comfy node registry-install pytorch360convert
59+
```
60+
5561
## 💡 Usage Examples
5662

5763
See the provided workflow files in the `examples` directory for examples of how to use each new node.

nodes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def INPUT_TYPES(s) -> Dict:
1616
"e_img": ("IMAGE", {"default": None}),
1717
"h": ("INT", {"default": -1}),
1818
"w": ("INT", {"default": -1}),
19-
"padding_mode": ("STRING", {"default": "bilinear"}),
20-
"cube_format": ("STRING", {"default": "stack"}),
19+
"padding_mode": (["bilinear", "bicubic", "nearest"], {"default": "bilinear"}),
20+
"cube_format": (["stack", "dice", "horizon", "list", "dict"], {"default": "stack"}),
2121
},
2222
}
2323

@@ -61,8 +61,8 @@ def INPUT_TYPES(s) -> Dict:
6161
"required": {
6262
"e_img": ("IMAGE", {"default": None}),
6363
"face_width": ("INT", {"default": -1}),
64-
"padding_mode": ("STRING", {"default": "bilinear"}),
65-
"cube_format": ("STRING", {"default": "stack"}),
64+
"padding_mode": (["bilinear", "bicubic", "nearest"], {"default": "bilinear"}),
65+
"cube_format": (["stack", "dice", "horizon", "list", "dict"], {"default": "stack"}),
6666
},
6767
}
6868

@@ -112,7 +112,7 @@ def INPUT_TYPES(s) -> Dict:
112112
"out_h": ("INT", {"default": 512}),
113113
"out_w": ("INT", {"default": 512}),
114114
"in_rot_deg": ("FLOAT", {"default": 0.0}),
115-
"padding_mode": ("STRING", {"default": "bilinear"}),
115+
"padding_mode": (["bilinear", "bicubic", "nearest"], {"default": "bilinear"}),
116116
},
117117
}
118118

@@ -163,7 +163,7 @@ def INPUT_TYPES(s) -> Dict:
163163
"roll": ("FLOAT", {"default": 0.0}),
164164
"h_deg": ("FLOAT", {"default": 0.0}),
165165
"v_deg": ("FLOAT", {"default": 0.0}),
166-
"padding_mode": ("STRING", {"default": "bilinear"}),
166+
"padding_mode": (["bilinear", "bicubic", "nearest"], {"default": "bilinear"}),
167167
},
168168
}
169169

@@ -312,8 +312,8 @@ def INPUT_TYPES(s) -> Dict:
312312
"original_faces": ("IMAGE", {"default": None}),
313313
"modified_faces": ("IMAGE", {"default": None}),
314314
"original_equi": ("IMAGE", {"default": None}),
315-
"padding_mode": ("STRING", {"default": "bilinear"}),
316-
"cube_format": ("STRING", {"default": "stack"}),
315+
"padding_mode": (["bilinear", "bicubic", "nearest"], {"default": "bilinear"}),
316+
"cube_format": (["stack", "dice", "horizon", "list", "dict"], {"default": "stack"}),
317317
},
318318
}
319319

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "pytorch360convert"
33
description = "A collection of custom nodes for working with and converting between 360 degree equirectangular images, cubemap, and perspective images. Panoramic 360 images are also sometimes known as 'VR photography', 'image sphere', and 360 pano."
4-
version = "1.0.0"
4+
version = "1.0.1"
55
license = {file = "LICENSE"}
66
dependencies = ["pytorch360convert"]
77

0 commit comments

Comments
 (0)