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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/atmosphere/fixers.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.634490 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/atmosphere/transforms_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.683087 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.684358 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/atmosphere/transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.685961 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/atmosphere/state_conversion.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.695927 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/api.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.723289 | # Copyright 2024 Google LLC
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/api_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.793838 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/array_transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:13.799259 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/boundaries.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.025242 | # Copyright 2022 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/checkpointing_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.290992 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/atmosphere/idealized_states_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.316563 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/coordinates.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.317909 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/boundaries_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.319653 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/data_specs.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.327682 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/checkpointing.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.330347 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/coordinates_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.331799 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/diagnostics.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.404610 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/data_specs_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.431917 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/diagnostics_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.653168 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/dynamic_io.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.890608 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/equations.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.891193 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/fiddle_tags.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.914934 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/feature_transforms_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.916003 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/field_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.932602 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/feature_transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.934720 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/field_utils_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:14.935394 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/interpolators_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:15.002416 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/interpolators.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:15.022382 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/learned_transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:15.259409 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/learned_transforms_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:15.465101 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/module_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:15.492162 | # Copyright 2024 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/normalizations.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:15.513677 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
neuralgcm/neuralgcm | https://github.com/neuralgcm/neuralgcm | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | neuralgcm/experimental/core/module_utils_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:15.538365 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/diffusion/pipelines/diffusers.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.731925 | import inspect
from dataclasses import dataclass
from typing import *
import numpy as np
import PIL.Image
import torch
from diffusers import AutoencoderKL, DDPMScheduler, UNet2DConditionModel
from transformers import CLIPTextModel, CLIPTokenizer
from api.models.diffusion import ImageGenerationOptions
from api.plugin ... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/events/common.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.733172 | from dataclasses import dataclass
from typing import *
from fastapi import FastAPI
from gradio import Blocks
from . import BaseEvent
@dataclass
class PreAppLaunchEvent(BaseEvent):
pass
@dataclass
class PostAppLaunchEvent(BaseEvent):
app: FastAPI
@dataclass
class PreUICreateEvent(BaseEvent):
pass
@... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/models/tensorrt.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.736075 | from typing import *
from pydantic import BaseModel
class BuildEngineOptions(BaseModel):
hf_token: Optional[str] = None
subfolder: Optional[str] = None
max_batch_size: int = 1
opt_image_height: int = 512
opt_image_width: int = 512
min_latent_resolution: int = 256
max_latent_resolution: in... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/events/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.737059 | import inspect
from dataclasses import dataclass
from typing import *
handlers: Dict[str, List[Callable]] = {}
T = TypeVar("T", bound="BaseEvent")
class BaseEvent:
__event_name__: ClassVar[str] = ""
@classmethod
def register(cls, handler):
if cls not in handlers:
handlers[cls] = []
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/plugin.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.743403 | import inspect
def get_plugin_id(frm=None):
if frm is None:
frm = inspect.stack()[1]
mod = inspect.getmodule(frm[0])
return mod.__name__.split(".")[1]
|
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | launch.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.747522 | import importlib.util
import os
import platform
import shlex
import subprocess
import sys
from glob import glob
commandline_args = os.environ.get("COMMANDLINE_ARGS", "")
sys.argv += shlex.split(commandline_args)
python = sys.executable
git = os.environ.get("GIT", "git")
index_url = os.environ.get("INDEX_URL", "")
sto... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/events/generation.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.748091 | from dataclasses import dataclass, field
from typing import *
from typing import Any
import torch
from api.diffusion.pipelines.diffusers import DiffusersPipelineModel
from . import BaseEvent, SkippableEvent
@dataclass
class LoadResourceEvent(BaseEvent):
pipe: DiffusersPipelineModel
@dataclass
class PromptTok... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/models/diffusion.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.753854 | import json
from dataclasses import asdict, dataclass, field
from typing import *
import PIL.Image
@dataclass
class HiresfixOptions:
enable: bool = False
mode: str = "bilinear"
scale: float = 1.5
@dataclass
class MultidiffusionOptions:
enable: bool = False
views_batch_size: int = 1
window_s... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | api/models/plugin.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:17.817670 | from typing import *
from pydantic import BaseModel
class PluginMetaData(BaseModel):
main: str
name: str
version: str
author: Optional[str]
url: Optional[str]
javascript: Optional[str]
|
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | lib/diffusers/scheduler.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.362167 | import diffusers
# TODO: add rest Auto111 samplers
# Commented schedulers are still unavailable in diffusers 0.16.1
SCHEDULERS = {
"unipc": diffusers.schedulers.UniPCMultistepScheduler,
"euler_a": diffusers.schedulers.EulerAncestralDiscreteScheduler,
"euler": diffusers.schedulers.EulerDiscreteScheduler,
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/components/gallery.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.372767 | import json
from typing import *
import gradio as gr
import gradio.blocks
import gradio.utils
from PIL import Image
def outputs_gallery_info_ui(elem_classes=[], **kwargs):
elem_classes = [*elem_classes, "info-gallery"]
format: str = "<span>{0}: {1}</span>"
def get_root(block: gradio.blocks.BlockContext)... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | lib/tensorrt/utilities.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.375943 | #! fork: https://github.com/NVIDIA/TensorRT/blob/main/demo/Diffusion/utilities.py
#
# Copyright 2022 The HuggingFace Inc. team.
# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | lib/tensorrt/models.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.378701 | #! fork: https://github.com/NVIDIA/TensorRT/blob/main/demo/Diffusion/models.py
#
# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file ... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | lib/tensorrt/engine.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.380442 | from typing import *
import torch
from diffusers.models.unet_2d_condition import UNet2DConditionOutput
from diffusers.models.vae import DecoderOutput
from polygraphy import cuda
from lib.tensorrt.utilities import Engine, device_view
class CLIPTextModelEngine:
def __init__(self, filepath: str, stream: cuda.Strea... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/acceleration/tensorrt/engine.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.382657 | import gc
import os
import tensorrt
import torch
from diffusers.models.attention_processor import AttnProcessor
from api.models.tensorrt import BuildEngineOptions, TensorRTEngineData
from lib.tensorrt.utilities import (
build_engine,
create_models,
export_onnx,
optimize_onnx,
)
from modules import mod... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/components/header.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.390577 | import gradio as gr
from modules import model_manager, vae
def ui():
model_list_str = lambda: [x.model_id for x in model_manager.sd_models]
model_id = (
lambda: model_manager.sd_model.model_id
if model_manager.sd_model is not None
else None
)
with gr.Box():
with gr.Ro... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.396249 | import argparse
import os
from typing import *
import toml
from packaging.version import Version
from .version import update
DEFAULT_CONFIG = toml.loads(
"""
version = "0.0.1"
model_dir = "models"
model = "runwayml/stable-diffusion-v1-5"
models = [ "runwayml/stable-diffusion-v1-5" ]
[common]
output-dir-txt2img ... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/components/image_generation_options.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.409071 | import gradio as gr
from lib.diffusers.scheduler import SCHEDULERS
from modules import plugin_loader
def prompt_ui():
with gr.Column(scale=3):
prompt_textbox = gr.TextArea(
"",
lines=3,
placeholder="Prompt",
show_label=False,
elem_classes=["prom... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/embeddings.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.474054 | import glob
import os
from typing import *
import torch
from safetensors.torch import load_file
from transformers import CLIPTextModel
from api.events import event_handler
from api.events.generation import LoadResourceEvent, PromptTokenizingEvent
from modules.shared import ROOT_DIR
token_replaces = {}
loaded_embeddi... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/networks/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.968625 | import os
import re
from glob import glob
from typing import *
import torch
from api.events import event_handler
from api.events.generation import LoadResourceEvent
from api.models.diffusion import ImageGenerationOptions
from modules.logger import set_logger
from modules.shared import ROOT_DIR
from . import lyco
lo... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/pipelines/tensorrt.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:18.995679 | import gc
import os
from typing import *
from typing import Optional
import tensorrt as trt
import torch
from diffusers import AutoencoderKL, DDPMScheduler
from diffusers.utils import randn_tensor
from PIL import Image
from polygraphy import cuda
from transformers import CLIPTextModel, CLIPTokenizer
from api.models.d... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.003588 | import gc
import os
from typing import *
import torch
from diffusers import AutoencoderKL, UNet2DConditionModel
from diffusers.pipelines.stable_diffusion import convert_from_ckpt
from transformers import CLIPTextModel
from modules.shared import ROOT_DIR, hf_diffusers_cache_dir, hf_transformers_cache_dir
def convert... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/networks/lyco.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.005518 | import os
import safetensors.torch
import torch
from lycoris import kohya
from lycoris.modules import locon, loha
kohya.LycorisNetwork.UNET_TARGET_REPLACE_MODULE.remove("Attention")
class LoConModule(locon.LoConModule):
def make_weight(self):
org_weight = self.org_module[0].weight.to(torch.float)
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/pipelines/diffusers.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.006775 | import copy
import gc
import inspect
import os
from dataclasses import dataclass
from typing import *
import numpy as np
import PIL.Image
import torch
from diffusers import (
AutoencoderKL,
DDPMScheduler,
DiffusionPipeline,
StableDiffusionPipeline,
UNet2DConditionModel,
)
from diffusers.pipelines.s... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/upscalers/multidiffusion.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.008294 | import copy
from typing import *
import torch
from diffusers import (
AutoencoderKL,
DDPMScheduler,
EulerAncestralDiscreteScheduler,
KDPM2AncestralDiscreteScheduler,
UNet2DConditionModel,
)
from tqdm import tqdm
from transformers import CLIPTextModel, CLIPTokenizer
from .samplers import EulerAnces... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/pipelines/lpw.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.038685 | import re
from typing import *
import torch
from api.events.generation import PromptTokenizingEvent
from modules.logger import set_logger
logger = set_logger(__name__)
re_attention = re.compile(
r"""
\\\(|
\\\)|
\\\[|
\\]|
\\\\|
\\|
\(|
\[|
:([+-]?[.\d]+)\)|
\)|
]|
[^\\()\[\]:]+|
:
""",
re.X,
)
def parse... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/diffusion/upscalers/samplers.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.059463 | # Fake Ancestral sampler for multidiffusion
# (random noise was removed and sigma_up was extracted)
from dataclasses import dataclass
from typing import *
import torch
from diffusers import EulerAncestralDiscreteScheduler, KDPM2AncestralDiscreteScheduler
from torch import FloatTensor
@dataclass
class SamplerOutput:
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/javascripts.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.062535 | import os
from fastapi import FastAPI
from fastapi.responses import FileResponse
def apply_javascript_api(app: FastAPI):
def get(file_path: str):
dirname = os.path.dirname(file_path)
basename = os.path.basename(file_path)
if "." not in basename:
basename = f"{basename}.js"
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/images.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.063753 | import glob
import json
import os
import re
from datetime import datetime
from PIL import Image
from PIL.PngImagePlugin import PngInfo
from api.models.diffusion import ImageGenerationOptions
from modules import config
def get_category(opts: ImageGenerationOptions):
return "img2img" if opts.image is not None els... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/logger.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.543543 | import logging
import logging.handlers
import sys
def set_logger(module_name: str):
logger = logging.getLogger(module_name)
logger.handlers = []
stdout_handler = logging.StreamHandler(stream=sys.stdout)
stdout_handler.setFormatter(
logging.Formatter("[%(levelname)s] %(message)s")
)
log... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/model_manager.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.580312 | import os
from glob import glob
from typing import *
from huggingface_hub import HfApi, ModelFilter
from modules.logger import set_logger
from modules.shared import ROOT_DIR
from . import config
from .model import DiffusersModel
logger = set_logger(__name__)
sd_models: List[DiffusersModel] = []
sd_model: Optional[... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/setting.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.591082 | from typing import *
import gradio as gr
from modules import config
class DisplaySetting:
def __init__(self, key: str, title: str, ui_class, ui_kwargs={}) -> None:
self.key = key
self.title = title
self.ui_class = ui_class
self.ui_kwargs = ui_kwargs
self.ui = None
de... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/model.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.598499 | import gc
import json
import os
import random
from concurrent.futures import ThreadPoolExecutor
from queue import Queue
from typing import *
import torch
from packaging.version import Version
from api.models.diffusion import ImageGenerationOptions
from api.models.tensorrt import TensorRTEngineData
from lib.diffusers.... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/plugin_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.633562 | import importlib
import os
from glob import glob
import toml
from fastapi import HTTPException
from fastapi.responses import FileResponse
from api.events import event_handler
from api.events.common import PostAppLaunchEvent
from api.models.plugin import PluginMetaData
from .shared import ROOT_DIR
plugin_store = {}
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/shared.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.653291 | import os
import torch
from modules import config
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def hf_diffusers_cache_dir():
cache_dir = os.path.join(config.get("model_dir"), "diffusers")
os.makedirs(cache_dir, exist_ok=True)
return cache_dir
def hf_transformers_cache_dir():... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/tabs/images_browser.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.654903 | import glob
import os
from typing import *
import gradio as gr
from modules import config
from modules.components import gallery
from modules.ui import Tab
class ImagesBrowser(Tab):
def title(self):
return "Images Browser"
def sort(self):
return 2.5
def ui(self, outlet):
output... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/tabs/settings.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.655963 | from typing import *
import gradio as gr
from modules import setting
from modules.ui import Tab
class Settings(Tab):
def title(self):
return "Settings"
def sort(self):
return 3
def ui(self, outlet):
loaded = []
with gr.Row():
apply = gr.Button("Apply", varia... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/tabs/generate.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.673991 | import time
from typing import *
import gradio as gr
from api.models.diffusion import (
HiresfixOptions,
ImageGenerationOptions,
MultidiffusionOptions,
)
from modules import model_manager
from modules.components import gallery, image_generation_options
from modules.ui import Tab
def generate_fn(fn):
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/tabs/tensorrt.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:19.692186 | from typing import *
import gradio as gr
from modules import config, model_manager
from modules.ui import Tab
from modules.utils import tensorrt_is_available
class TensorRT(Tab):
def title(self):
return "TensorRT"
def sort(self):
return 2
def visible(self):
return tensorrt_is_a... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/ui.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:20.151513 | import importlib
import os
from typing import *
import gradio as gr
import gradio.routes
from modules import model_manager, shared
from .components import header
from .shared import ROOT_DIR
class Tab:
TABS_DIR = os.path.join(ROOT_DIR, "modules", "tabs")
def __init__(self, filepath: str) -> None:
... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/version/update.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:20.166091 | import importlib
import os
from glob import glob
from packaging.version import Version
def update(from_version: str, to_version: str):
updaters_dir = os.path.join(os.path.dirname(__file__), "updaters")
for updater in glob(os.path.join(updaters_dir, "*.py")):
basename = os.path.splitext(os.path.basen... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:20.166582 | import asyncio
import base64
import importlib
import io
from typing import *
import numpy as np
import torch
from PIL import Image
from lib.diffusers.scheduler import SCHEDULERS
from . import config
from .shared import hf_diffusers_cache_dir
def img2b64(img: Image.Image, format="png"):
buf = io.BytesIO()
i... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/vae.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:20.168374 | import os
from modules.shared import ROOT_DIR
def list_vae_models():
dir = os.path.join(ROOT_DIR, "models", "vae")
os.makedirs(dir, exist_ok=True)
return os.listdir(dir)
def resolve_vae(name: str):
return os.path.join(ROOT_DIR, "models", "vae", name)
|
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | webui.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:20.217571 | import os
import time
from fastapi import FastAPI
if "--tensorrt" in os.environ.get("COMMANDLINE_ARGS", ""):
import tensorrt as trt
from lib.tensorrt.utilities import TRT_LOGGER
print(f"TensorRT version: {trt.__version__}")
trt.init_libnvinfer_plugins(TRT_LOGGER, "")
from api.events.common import (... |
ddPn08/Radiata | https://github.com/ddPn08/Radiata | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | modules/version/updaters/0-0-1.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:20.239123 | from modules import config
def run():
cfg = config.get_config()
if "models" in cfg:
cfg["models"] = [x["model_id"] for x in cfg["models"]]
else:
cfg["models"] = ["runwayml/stable-diffusion-v1-5"]
if "mode" in cfg:
del cfg["mode"]
config.save_config(cfg)
|
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.537596 | import os
import sys
sys.path.append(os.path.split(sys.path[0])[0])
from .unet import UNet3DConditionModel
from torch.optim.lr_scheduler import LambdaLR
def customized_lr_scheduler(optimizer, warmup_steps=5000): # 5000 from u-vit
from torch.optim.lr_scheduler import LambdaLR
def fn(step):
if... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/resnet.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.540331 | # Adapted from https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/resnet.py
import os
import sys
sys.path.append(os.path.split(sys.path[0])[0])
import torch
import torch.nn as nn
import torch.nn.functional as F
from einops import rearrange
class InflatedConv3d(nn.Conv2d):
def forward(self, ... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | 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:36:22.542540 | # 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/gaussia... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/clip.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.544556 | import numpy
import torch.nn as nn
from transformers import CLIPTokenizer, CLIPTextModel
import transformers
transformers.logging.set_verbosity_error()
"""
Will encounter following warning:
- This IS expected if you are initializing CLIPTextModel from the checkpoint of a model trained on another task
or wit... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/diffusion_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.545627 | # 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/gaussia... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/video_transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.546794 | import torch
import random
import numbers
from torchvision.transforms import RandomCrop, RandomResizedCrop
from PIL import Image
def _is_tensor_video_clip(clip):
if not torch.is_tensor(clip):
raise TypeError("clip should be Tensor. Got %s" % type(clip))
if not clip.ndimension() == 4:
... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/timestep_sampler.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.548441 | # 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/gaussia... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/attention.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.548935 | # Adapted from https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention.py
import os
import sys
sys.path.append(os.path.split(sys.path[0])[0])
from dataclasses import dataclass
from typing import Optional
import math
import torch
import torch.nn.functional as F
from torch import nn
from diff... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/gaussian_diffusion.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.550063 | # 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/gaussia... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/respace.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:22.581353 | # 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/gaussia... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:23.450730 | import os
import math
import torch
import logging
import subprocess
import numpy as np
import torch.distributed as dist
# from torch._six import inf
from torch import inf
from PIL import Image
from typing import Union, Iterable
from collections import OrderedDict
from torch.utils.tensorboard import SummaryWriter
_t... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | sample_scripts/with_mask_sample.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:23.478312 | # 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.
"""
Sample new images from a pre-trained DiT.
"""
import os
import sys
import math
try:
import utils
... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/unet_blocks.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:23.479209 | # Adapted from https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_2d_blocks.py
import os
import sys
sys.path.append(os.path.split(sys.path[0])[0])
import torch
from torch import nn
try:
from .attention import Transformer3DModel
from .resnet import Downsample3D, ResnetBlock3D, Upsampl... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/unet.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:23.514551 | # Adapted from https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/unet_2d_condition.py
from dataclasses import dataclass
from typing import List, Optional, Tuple, Union
import os
import sys
sys.path.append(os.path.split(sys.path[0])[0])
import math
import json
import torch
import einops
import t... |
Vchitect/SEINE | https://github.com/Vchitect/SEINE | null | null | null | null | 969 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:24.096739 | # adopted from
# https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_diffusion.py
# and
# https://github.com/lucidrains/denoising-diffusion-pytorch/blob/7706bdfc6f527f58d33f84b7b522e61e6e3164b3/denoising_diffusion_pytorch/denoising_diffusion_pytorch.py
# and
# https://github.com/open... |
GoogleCloudPlatform/functions-framework-python | https://github.com/GoogleCloudPlatform/functions-framework-python | null | null | null | null | 968 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/cloud_run_cloud_events/send_cloud_event.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:26.623987 | #!/usr/local/bin/python
# Copyright 2020 Google LLC
#
# 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 ... |
GoogleCloudPlatform/functions-framework-python | https://github.com/GoogleCloudPlatform/functions-framework-python | null | null | null | null | 968 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/cloud_run_cloud_events/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:26.661849 | # Copyright 2020 Google LLC
#
# 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, ... |
GoogleCloudPlatform/functions-framework-python | https://github.com/GoogleCloudPlatform/functions-framework-python | null | null | null | null | 968 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/cloud_run_event/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:26.662538 | # Copyright 2020 Google LLC
#
# 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, ... |
GoogleCloudPlatform/functions-framework-python | https://github.com/GoogleCloudPlatform/functions-framework-python | null | null | null | null | 968 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/cloud_run_http/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:26.666599 | # Copyright 2020 Google LLC
#
# 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, ... |
GoogleCloudPlatform/functions-framework-python | https://github.com/GoogleCloudPlatform/functions-framework-python | null | null | null | null | 968 | null | null | apache-2.0 | null | null | null | null | null | null | null | conftest.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:26.667687 | # Copyright 2020 Google LLC
#
# 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, ... |
GoogleCloudPlatform/functions-framework-python | https://github.com/GoogleCloudPlatform/functions-framework-python | null | null | null | null | 968 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/cloud_run_decorator/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:26.668924 | # Copyright 2021 Google LLC
#
# 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, ... |
GoogleCloudPlatform/functions-framework-python | https://github.com/GoogleCloudPlatform/functions-framework-python | null | null | null | null | 968 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/cloud_run_streaming_http/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:36:26.673872 | # Copyright 2025 Google LLC
#
# 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, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.