RIAEvangelist/node-ipc is malware / protestware
The RIAEvangelist/node-ipc module contains protestware peacenotwar.
Excerpt from RIAEvangelist/node-ipc:
as of v11.0.0 & v9.2.2 this module uses the peacenotwar module.
| ''' | |
| https://arxiv.org/abs/2312.00858 | |
| 1. put this file in ComfyUI/custom_nodes | |
| 2. load node from <loaders> | |
| start_step, end_step: apply this method when the timestep is between start_step and end_step | |
| cache_interval: interval of caching (1 means no caching) | |
| cache_depth: depth of caching | |
| ''' |
| from argparse import ArgumentParser | |
| from pathlib import Path | |
| from vsexprtools import ExprOp, norm_expr | |
| from vstools import ( | |
| CustomRuntimeError, Keyframes, KwargsT, Sentinel, clip_async_render, core, get_w, mod4, mod_x, ranges_product, | |
| shift_clip, split, vs | |
| ) | |
| name = 'SetsuNoKeyframes' |
The RIAEvangelist/node-ipc module contains protestware peacenotwar.
Excerpt from RIAEvangelist/node-ipc:
as of v11.0.0 & v9.2.2 this module uses the peacenotwar module.
| # Modified StyleGAN2 Projector with CLIP, addl. losses, kmeans, etc. | |
| # by Peter Baylies, 2021 -- @pbaylies on Twitter | |
| # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. | |
| # | |
| # NVIDIA CORPORATION and its licensors retain all intellectual property | |
| # and proprietary rights in and to this software, related documentation | |
| # and any modifications thereto. Any use, reproduction, disclosure or | |
| # distribution of this software and related documentation without an express | |
| # license agreement from NVIDIA CORPORATION is strictly prohibited. |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from argparse import ArgumentParser | |
| import torch | |
| import torch.distributed as dist | |
| from torch.nn.parallel import DistributedDataParallel as DDP | |
| from torch.utils.data import DataLoader, Dataset | |
| from torch.utils.data.distributed import DistributedSampler | |
| from transformers import BertForMaskedLM |
ICNR is an initialization method for sub-pixel convolution.
Papar
Github or Gist
| # Lint as: python2, python3 | |
| # Copyright 2018 The TensorFlow Authors. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
| import onnx | |
| import torch | |
| from caffe2.python.onnx import backend | |
| from torch import nn | |
| from torch.autograd import Variable | |
| from torch.nn import PixelShuffle | |
| class MyPixelShuffle(nn.Module): | |
| """ | |
| Alternative version of pixel shuffle that was copied from the C++ version |