repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/sampling.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:48.869705 | # Adapted from https://github.com/lucidrains/muse-maskgit-pytorch
import math
from functools import partial
import torch
import torch.nn.functional as F
def log(t, eps=1e-20):
return torch.log(t.clamp(min=eps))
def gumbel_noise(t, generator=None):
noise = torch.zeros_like(t).uniform_(0, 1, generator=gener... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/phi.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.016076 | # coding=utf-8
# Copyright 2023 Microsoft and the HuggingFace Inc. team. 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.... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/training_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.038698 | # coding=utf-8
# Copyright 2023 The HuggingFace Inc. team.
#
# 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... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/datasets/mixed_dataloader.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.040650 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/datasets/image_text_dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.042180 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/datasets/imagenet_dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.044855 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/datasets/mmu_dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.045893 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | parquet/refinedweb_dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.149806 | # coding=utf-8
# Copyright 2024 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/datasets/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:49.151035 | from .mixed_dataloader import MixedDataLoader
from .image_text_dataset import create_imagetext_dataloader
from .imagenet_dataset import create_imagenet_dataloader
from .mmu_dataset import MMUDataset
from .vist_dataset import VISTDataset |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/inference_mmu.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:50.809758 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/datasets/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:50.838545 | import copy
import math
import random
import torch
from PIL import Image
from torchvision import transforms
from torchvision.transforms import functional as TVF
from torchvision.transforms.functional import InterpolationMode
def image_transform(image, resolution=256, normalize=True, mean=[0.5, 0.5, 0.5], std=[0.5, 0... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:50.944473 | from .modeling_showo2_qwen2_5 import Showo2Qwen2_5
from .modeling_semantic_layers import ShowoSemanticLayers
from .omni_attention import omni_attn_mask, omni_attn_mask_naive, causal, causal_attn_mask_naive
from .wan21_vae import WanVAE |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/inference_mmu_vid.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:50.983332 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/evaluation/compute_dpg_bench.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.081061 | import argparse
import os
import os.path as osp
import time
from collections import defaultdict
import numpy as np
import pandas as pd
import torch
from accelerate import Accelerator
from accelerate.utils import gather_object
from PIL import Image
from tqdm import tqdm
def parse_args():
parser = argparse.Argumen... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/lr_schedulers.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.367541 | # coding=utf-8
# Copyright 2023 The HuggingFace Inc. team.
#
# 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... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/misc.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.407031 | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
from .modules import modulate, RMSNorm
from timm.layers.helpers import to_2tuple
from transformers import AutoTokenizer
def next_token_prediction(logits, labels, vocab_szie):
return F.cross_entropy(logits[:, :-1].contiguous().view(-1,... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/modeling_semantic_layers.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.555455 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/modeling_showo2_qwen2_5.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.584878 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/modeling_siglip.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.654988 | # coding=utf-8
# Copyright 2024 Google AI and The HuggingFace Team. 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
#
#... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/modeling_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.981471 | # coding=utf-8
# Copyright 2024 The HuggingFace Inc. team.
# Copyright (c) 2022, NVIDIA CORPORATION. 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.a... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/modules.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:51.984868 | import math
import warnings
from typing import List, Optional, Tuple, Union, TypedDict
import torch
import torch.nn.functional as F
import torch.utils.checkpoint
from torch import nn
from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss
from transformers.activations import ACT2FN
from transformers.cache_ut... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/my_logging.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:52.340380 | # coding=utf-8
# Copyright 2023 Optuna, Hugging Face
#
# 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 o... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/omni_attention.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:52.341088 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/models/qwen2.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:52.342063 | # coding=utf-8
# Copyright 2024 The Qwen team, Alibaba Group and the HuggingFace Inc. team. All rights reserved.
#
# This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX
# and OPT implementations in this library. It has been modified from its
# original forms to accommodate minor architectural differenc... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/evaluation/inference_dpg.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:54.621172 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/datasets/vist_dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:54.784607 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/evaluation/inference_geneval.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:54.821948 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/inference_mixed_modality.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:54.838641 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
showlab/Show-o | https://github.com/showlab/Show-o | null | null | null | null | 1,921 | null | null | apache-2.0 | null | null | null | null | null | null | null | show-o2/inference_t2i.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:54.868141 | # coding=utf-8
# Copyright 2025 NUS Show Lab.
#
# 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 agree... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_alpha_config/PixArt_xl2_img512_internalms.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.227989 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data'
image_list_json = ['data_info.json',]
data = dict(type='InternalDataMS', root='InternData', image_list_json=image_list_json, transform='default_train', load_vae_feat=True)
image_size = 512
# model setting
model = 'PixArtMS_XL_2' # model for multi-scale tra... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_alpha_config/PixArt_xl2_img1024_internalms.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.229876 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data'
image_list_json = ['data_info.json',]
data = dict(type='InternalDataMS', root='InternData', image_list_json=image_list_json, transform='default_train', load_vae_feat=True)
image_size = 1024
# model setting
model = 'PixArtMS_XL_2' # model for multi-scale tr... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/PixArt_xl2_internal.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.241991 | data_root = '/data/data'
data = dict(type='InternalData', root='images', image_list_json=['data_info.json'], transform='default_train', load_vae_feat=True, load_t5_feat=True)
image_size = 256 # the generated image resolution
train_batch_size = 32
eval_batch_size = 16
use_fsdp=False # if use FSDP mode
valid_num=0 ... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_alpha_config/PixArt_xl2_img1024_dreambooth.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.242530 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data/dreambooth/dataset'
data = dict(type='DreamBooth', root='dog6', prompt=['a photo of sks dog'], transform='default_train', load_vae_feat=True)
image_size = 1024
# model setting
model = 'PixArtMS_XL_2' # model for multi-scale training
fp32_attention = True
lo... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | asset/examples.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.258454 |
examples = [
[
"A small cactus with a happy face in the Sahara desert.",
"dpm-solver", 20, 4.5,
],
[
"An extreme close-up of an gray-haired man with a beard in his 60s, he is deep in thought pondering the history"
"of the universe as he sits at a cafe in Paris, his eyes focu... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_alpha_config/PixArt_xl2_img512_internal.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.261881 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data'
image_list_json = ['data_info.json',]
data = dict(type='InternalData', root='InternData', image_list_json=image_list_json, transform='default_train', load_vae_feat=True)
image_size = 512
# model setting
model = 'PixArt_XL_2'
fp32_attention = True
load_from = N... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | app/app_pixart_dmd.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.262891 | #!/usr/bin/env python
from __future__ import annotations
import argparse
import os
import sys
from pathlib import Path
current_file_path = Path(__file__).resolve()
sys.path.insert(0, str(current_file_path.parent.parent))
import random
import gradio as gr
import numpy as np
import uuid
from diffusers import Consistency... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_alpha_config/PixArt_xl2_img256_internal.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.313758 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data'
image_list_json = ['data_info.json',]
data = dict(type='InternalData', root='InternData', image_list_json=image_list_json, transform='default_train', load_vae_feat=True)
image_size = 256
# model setting
model = 'PixArt_XL_2'
fp32_attention = True
load_from = N... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_alpha_config/PixArt_xl2_img1024_internal.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.323542 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data'
image_list_json = ['data_info.json',]
data = dict(type='InternalData', root='InternData', image_list_json=image_list_json, transform='default_train', load_vae_feat=True)
image_size = 1024
# model setting
model = 'PixArt_XL_2'
fp32_attention = True
load_from = ... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | app/app_pixart_sigma.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:57.385618 | #!/usr/bin/env python
from __future__ import annotations
import argparse
import os
import sys
from pathlib import Path
current_file_path = Path(__file__).resolve()
sys.path.insert(0, str(current_file_path.parent.parent))
import random
import gradio as gr
import numpy as np
import uuid
from diffusers import ConsistencyD... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_app_config/PixArt-DMD_xl2_img512_internalms.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:58.373295 | # Config for PixArt-DMD
_base_ = ['../PixArt_xl2_internal.py']
data_root = 'pixart-sigma-toy-dataset'
image_list_json = ['data_info.json']
data = dict(
type='DMD', root='InternData', image_list_json=image_list_json, transform='default_train',
load_vae_feat=True, load_t5_feat=True
)
image_size = 512
# model s... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_sigma_config/PixArt_sigma_xl2_img1024_internalms.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:58.452703 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'pixart-sigma-toy-dataset'
image_list_json = ['data_info.json']
data = dict(
type='InternalDataMSSigma', root='InternData', image_list_json=image_list_json, transform='default_train',
load_vae_feat=False, load_t5_feat=False
)
image_size = 1024
# model setting... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_sigma_config/PixArt_sigma_xl2_img256_internal.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:58.482104 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'pixart-sigma-toy-dataset'
image_list_json = ['data_info.json']
data = dict(
type='InternalDataSigma', root='InternData', image_list_json=image_list_json, transform='default_train',
load_vae_feat=False, load_t5_feat=False,
)
image_size = 256
# model setting
m... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/data/datasets/InternalData.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:58.977377 | import os
import random
from PIL import Image
import json
import numpy as np
import torch
from torchvision.datasets.folder import default_loader, IMG_EXTENSIONS
from torch.utils.data import Dataset
from diffusers.utils.torch_utils import randn_tensor
from torchvision import transforms as T
from diffusion.data.builder i... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/data/datasets/InternalData_ms.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.053820 | import os
import numpy as np
import torch
import random
from torchvision.datasets.folder import default_loader
from diffusion.data.datasets.InternalData import InternalData, InternalDataSigma, replace_img_ext
from diffusion.data.builder import get_data_path, DATASETS
from diffusion.utils.logger import get_root_logger
i... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/data/datasets/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.070104 | from .InternalData import InternalData, InternalDataSigma
from .InternalData_ms import InternalDataMS, InternalDataSigma
from .dmd import DMD
from .utils import *
|
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_sigma_config/PixArt_sigma_xl2_img1024_lcm.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.216858 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'pixart-sigma-toy-dataset'
image_list_json = ['data_info.json']
data = dict(
type='InternalDataMSSigma', root='InternData', image_list_json=image_list_json, transform='default_train',
load_vae_feat=True, load_t5_feat=True,
)
image_size = 1024
# model setting
... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_sigma_config/PixArt_sigma_xl2_img512_internalms.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.242816 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'pixart-sigma-toy-dataset'
image_list_json = ['data_info.json']
data = dict(
type='InternalDataMSSigma', root='InternData', image_list_json=image_list_json, transform='default_train',
load_vae_feat=False, load_t5_feat=False,
)
image_size = 512
# model setting... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.270899 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_d... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/data/builder.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.282806 | import os
import time
from mmcv import Registry, build_from_cfg
from torch.utils.data import DataLoader
from diffusion.data.transforms import get_transform
from diffusion.utils.logger import get_root_logger
DATASETS = Registry('datasets')
DATA_ROOT = '/cache/data'
def set_data_root(data_root):
global DATA_ROO... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/data/datasets/dmd.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.520555 | from torch.utils.data import Dataset
import os
import numpy as np
import glob, torch
from diffusion.data.builder import get_data_root_and_path
from PIL import Image
import json
from diffusers.utils.torch_utils import randn_tensor
from torchvision import transforms as T
from torchvision.datasets.folder import default_lo... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/data/transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.626786 | import torchvision.transforms as T
TRANSFORMS = dict()
def register_transform(transform):
name = transform.__name__
if name in TRANSFORMS:
raise RuntimeError(f'Transform {name} has already registered.')
TRANSFORMS.update({name: transform})
def get_transform(type, resolution):
transform = TR... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/data/datasets/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.686145 |
ASPECT_RATIO_2880 = {
'0.25': [1408.0, 5760.0], '0.26': [1408.0, 5568.0], '0.27': [1408.0, 5376.0], '0.28': [1408.0, 5184.0],
'0.32': [1600.0, 4992.0], '0.33': [1600.0, 4800.0], '0.34': [1600.0, 4672.0], '0.4': [1792.0, 4480.0],
'0.42': [1792.0, 4288.0], '0.47': [1920.0, 4096.0], '0.49': [1920.0, 3904.0], ... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/iddpm.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.788066 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_d... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/lcm_scheduler.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.863220 | # Copyright 2023 Stanford University Team and The HuggingFace Team. 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
#
#... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/builder.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.893119 | from mmcv import Registry
from diffusion.model.utils import set_grad_checkpoint
MODELS = Registry('models')
def build_model(cfg, use_grad_checkpoint=False, use_fp32_attention=False, gc_step=1, **kwargs):
if isinstance(cfg, str):
cfg = dict(type=cfg)
model = MODELS.build(cfg, default_args=kwargs)
... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/dpm_solver.py | null | null | null | null | null | null | Python | 2026-05-04T02:47:59.911448 | import torch
from .model import gaussian_diffusion as gd
from .model.dpm_solver import model_wrapper, DPM_Solver, NoiseScheduleVP
def DPMS(
model,
condition,
uncondition,
cfg_scale,
model_type='noise', # or "x_start" or "v" or "score"
noise_schedule="linear",
g... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/diffusion_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.073797 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_d... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/dpm_solver.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.179735 | import torch
from tqdm import tqdm
class NoiseScheduleVP:
def __init__(
self,
schedule='discrete',
betas=None,
alphas_cumprod=None,
continuous_beta_0=0.1,
continuous_beta_1=20.,
dtype=torch.float32,
):
"""Create a wrap... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/edm_sample.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.261174 | import random
import numpy as np
from tqdm import tqdm
from diffusion.model.utils import *
# ----------------------------------------------------------------------------
# Proposed EDM sampler (Algorithm 2).
def edm_sampler(
net, latents, class_labels=None, cfg_scale=None, randn_like=torch.randn_like,
... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/gaussian_diffusion.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.331011 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_d... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_sigma_config/PixArt_sigma_xl2_img1024_internalms_kvcompress.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.384925 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data'
image_list_json = ['data_info.json']
data = dict(
type='InternalDataMSSigma', root='InternData', image_list_json=image_list_json, transform='default_train',
load_vae_feat=False, load_t5_feat=False
)
image_size = 1024
# model setting
model = 'PixArtMS_X... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/llava/llava_mpt.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.411915 | # Copyright 2023 Haotian Liu
#
# 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 agre... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/llava/mpt/attention.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.474317 | """Attention layers."""
import math
import warnings
from typing import Optional
import torch
import torch.nn as nn
from einops import rearrange
from torch import nn
from .norm import LPLayerNorm
def _reset_is_causal(num_query_tokens: int, num_key_tokens: int, original_is_causal: bool):
if original_is_causal and nu... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/llava/mpt/blocks.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.485212 | """GPT Blocks used for the GPT Model."""
from typing import Dict, Optional, Tuple
import torch
import torch.nn as nn
from .attention import ATTN_CLASS_REGISTRY
from .norm import NORM_CLASS_REGISTRY
class MPTMLP(nn.Module):
def __init__(self, d_model: int, expansion_ratio: int, device: Optional[str]=None):
... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/llava/mpt/configuration_mpt.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.601242 | """A HuggingFace-style model configuration."""
from typing import Dict, Optional, Union
from transformers import PretrainedConfig
attn_config_defaults: Dict = {'attn_type': 'multihead_attention', 'attn_pdrop': 0.0, 'attn_impl': 'triton', 'qk_ln': False, 'clip_qkv': None, 'softmax_scale': None, 'prefix_lm': False, 'attn... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/llava/mpt/modeling_mpt.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.724247 | """A simple, flexible implementation of a GPT model.
Inspired by https://github.com/karpathy/minGPT/blob/master/mingpt/model.py
"""
import math
import warnings
from typing import List, Optional, Tuple, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
from transformers import PreTrainedModel, Pr... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/llava/mpt/norm.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.806422 | import torch
def _cast_if_autocast_enabled(tensor):
if torch.is_autocast_enabled():
if tensor.device.type == 'cuda':
dtype = torch.get_autocast_gpu_dtype()
elif tensor.device.type == 'cpu':
dtype = torch.get_autocast_cpu_dtype()
else:
raise NotImplemented... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/llava/mpt/param_init_fns.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.897606 | import math
import warnings
from collections.abc import Sequence
from functools import partial
from typing import Optional, Tuple, Union
import torch
from torch import nn
from .norm import NORM_CLASS_REGISTRY
def torch_default_param_init_fn_(module: nn.Module, verbose: int=0, **kwargs):
del kwargs
if verbose >... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/nets/PixArtMS.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:00.976488 | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# --------------------------------------------------------
# References:
# GLIDE: https://github.com/openai/glide-text2im
#... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/nets/PixArt.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:01.090238 | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# --------------------------------------------------------
# References:
# GLIDE: https://github.com/openai/glide-text2im
#... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/nets/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:01.095241 | from .PixArt import PixArt, PixArt_XL_2
from .PixArtMS import PixArtMS, PixArtMS_XL_2, PixArtMSBlock |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/nets/PixArt_blocks.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:01.146066 | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# --------------------------------------------------------
# References:
# GLIDE: https://github.com/openai/glide-text2im
#... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/respace.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:01.153767 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_d... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/sa_solver.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:01.187531 | import torch
import torch.nn.functional as F
import math
from tqdm import tqdm
class NoiseScheduleVP:
def __init__(
self,
schedule='discrete',
betas=None,
alphas_cumprod=None,
continuous_beta_0=0.1,
continuous_beta_1=20.,
dtype=to... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/model/t5.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:01.251208 | # -*- coding: utf-8 -*-
import os
import re
import html
import urllib.parse as ul
import ftfy
import torch
from bs4 import BeautifulSoup
from transformers import T5EncoderModel, AutoTokenizer
from huggingface_hub import hf_hub_download
class T5Embedder:
available_models = ['t5-v1_1-xxl']
bad_punct_regex = re... |
PixArt-alpha/PixArt-sigma | https://github.com/PixArt-alpha/PixArt-sigma | null | null | null | null | 1,919 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/pixart_sigma_config/PixArt_sigma_xl2_img2K_internalms_kvcompress.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:03.049192 | _base_ = ['../PixArt_xl2_internal.py']
data_root = 'data'
image_list_json = ['data_info.json']
data = dict(
type='InternalDataMSSigma', root='InternData', image_list_json=image_list_json, transform='default_train',
load_vae_feat=False, load_t5_feat=False
)
image_size = 2048
# model setting
model = 'PixArtMS_X... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | apm-server/tests/apmserver_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.486064 | import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], "../../helpers"))
from helpers import helm_template
project = "apm-server"
name = "release-name-" + project
def test_defaults():
config = ""
r = helm_template(config)
assert name in r["deployment"]
assert name in r["service"]
s ... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | filebeat/tests/filebeat_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.495794 | import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], "../../helpers"))
from helpers import helm_template
project = "filebeat"
name = "release-name-" + project
def test_defaults():
config = """
"""
r = helm_template(config)
assert name in r["daemonset"]
assert "deployment" not in r... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | elasticsearch/tests/elasticsearch_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.519147 | import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], "../../helpers"))
from helpers import helm_template
import yaml
clusterName = "elasticsearch"
nodeGroup = "master"
uname = clusterName + "-" + nodeGroup
def test_defaults():
config = """
"""
r = helm_template(config)
# Statefulset
... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | metricbeat/tests/metricbeat_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.520274 | import os
import sys
import base64
sys.path.insert(1, os.path.join(sys.path[0], "../../helpers"))
from helpers import helm_template
project = "metricbeat"
name = "release-name-" + project
kube_state_metric_name = "release-name-kube-state-metrics"
def test_defaults():
config = """
"""
r = helm_template(... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | helpers/helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.534070 | import tempfile
import yaml
import os
import json
from subprocess import check_output
def helm_template(config):
with tempfile.NamedTemporaryFile() as temp:
with open(temp.name, "w") as values:
values.write(config)
helm_cmd = "helm template release-name -f {0} ./".format(temp.name)
... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | logstash/tests/logstash_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.534953 | import base64
import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], "../../helpers"))
from helpers import helm_template
name = "release-name-logstash"
def test_defaults():
config = """
"""
r = helm_template(config)
# Statefulset
assert r["statefulset"][name]["spec"]["replicas"] == 1
... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | kibana/tests/kibana_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.537568 | import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], "../../helpers"))
from helpers import helm_template
name = "release-name-kibana"
elasticsearchHosts = "https://elasticsearch-master:9200"
def test_defaults():
config = """
"""
r = helm_template(config)
assert name in r["deployment"]... |
elastic/helm-charts | https://github.com/elastic/helm-charts | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | helpers/bumper.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:05.595665 | #!/usr/bin/env python2
#
# Usage:
# ./bumper.py
#
# Configurable environment variables:
# - BUMPER_USE_STAGING_IMAGES set to "true" causes the
# docker.elastic.co/staging/ docker registry namespace to be used.
#
import re
import os
import glob
import fileinput
os.chdir(os.path.join(os.path.dirname(__file__), "..... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.273756 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.274792 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/cartpole.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.281828 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/acrobot.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.286338 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | learning/train_rsl_rl.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.290199 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | learning/train_jax_ppo.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.291855 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/cheetah.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.293490 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/ball_in_cup.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.294869 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | learning/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.375242 | # Copyright 2026 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.379570 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/dm_control_suite_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.867716 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/common.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.878227 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/finger.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.880137 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/point_mass.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.881089 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/hopper.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.894852 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
google-deepmind/mujoco_playground | https://github.com/google-deepmind/mujoco_playground | null | null | null | null | 1,916 | null | null | apache-2.0 | null | null | null | null | null | null | null | mujoco_playground/_src/dm_control_suite/fish.py | null | null | null | null | null | null | Python | 2026-05-04T02:48:10.905983 | # Copyright 2025 DeepMind Technologies Limited
#
# 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 agre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.