Theme Basics is a series of tutorial notes on building a Blogger theme.
Discover tips and learn how to start building your own Blogger theme:
- Minimum code requirements.
- Basic templates.
- Tags & Data definitions.
- Resources and examples.
| # Force model to always use specified device | |
| # Place in `ComfyUI\custom_nodes` to use | |
| # City96 [Apache2] | |
| # | |
| import types | |
| import torch | |
| import comfy.model_management | |
| class OverrideDevice: | |
| @classmethod |
| TEXTURE2D(_CameraColorTexture); | |
| SAMPLER(sampler_CameraColorTexture); | |
| float4 _CameraColorTexture_TexelSize; | |
| TEXTURE2D(_CameraDepthTexture); | |
| SAMPLER(sampler_CameraDepthTexture); | |
| TEXTURE2D(_CameraDepthNormalsTexture); | |
| SAMPLER(sampler_CameraDepthNormalsTexture); | |