Instructions to use perilli/OCS_Models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use perilli/OCS_Models with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("perilli/OCS_Models", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload 84 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+2
- Encoding/Image/CLIP-ViT-H-fp16.safetensorsAdded+3
- Encoding/Image/sigclip_vision_patch14_384.safetensorsAdded+3
- Encoding/Text/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensorsAdded+3
- Encoding/Text/CLIP-ViT-bigG-14-laion2B-39B-b160k.safetensorsAdded+3
- Encoding/Text/clip_g.safetensorsAdded+3
- Encoding/Text/clip_l.safetensorsAdded+3
- Encoding/Text/stable-diffusion-2-1-clip-fp16.safetensorsAdded+3
- Encoding/Text/t5xxl_fp16.safetensorsAdded+3
- Encoding/Text/umt5-xxl-enc-bf16.safetensorsAdded+3
- I2I/Face Restoring/Codeformer/codeformer-v0.1.0.pthAdded+3
- I2I/Face Restoring/GFPGAN/._GFPGANv1.4.pthAdded+3
- I2I/Face Restoring/GFPGAN/._parsing_parsenet.pthAdded+3
- I2I/Face Restoring/GFPGAN/GFPGANv1.4.pthAdded+3
- I2I/Face Restoring/GFPGAN/parsing_parsenet.pthAdded+3
- I2I/Face Swapping/InstantID/ip-adapter.binAdded+3
- I2I/Face Swapping/Inswapper/inswapper_128.onnxAdded+3
- I2I/Face Swapping/PuLID/ip-adapter_pulid_sdxl_fp16.safetensorsAdded+3
- I2I/Face Swapping/antelopev2/1k3d68.onnxAdded+3
- I2I/Face Swapping/antelopev2/2d106det.onnxAdded+3
- I2I/Face Swapping/antelopev2/genderage.onnxAdded+3
- I2I/Face Swapping/antelopev2/glintr100.onnxAdded+3
- I2I/Face Swapping/antelopev2/scrfd_10g_bnkps.onnxAdded+3
- I2I/Face Swapping/buffalo_l/1k3d68.onnxAdded+3
- I2I/Face Swapping/buffalo_l/2d106det.onnxAdded+3
- I2I/Face Swapping/buffalo_l/det_10g.onnxAdded+3
- I2I/Face Swapping/buffalo_l/genderage.onnxAdded+3
- I2I/Face Swapping/buffalo_l/w600k_r50.onnxAdded+3
- Upscaling/Image/CCSR/real-world_ccsr-fp32.safetensorsAdded+3
- Upscaling/Image/ESRGAN/._4x-UltraSharp.pthAdded+3
- Upscaling/Image/ESRGAN/._4x_UniversalUpscalerV2-Neutral_115000_swaG.pthAdded+3
- Upscaling/Image/ESRGAN/._4x_UniversalUpscalerV2-Sharp_101000_G.pthAdded+3
- Upscaling/Image/ESRGAN/._x4-upscaler-ema.safetensorsAdded+3
- Upscaling/Image/ESRGAN/._x4-upscaler-ema.yamlAdded
- Upscaling/Image/ESRGAN/4x-UltraSharp.pthAdded+3
- Upscaling/Image/ESRGAN/4x_UniversalUpscalerV2-Neutral_115000_swaG.pthAdded+3
- Upscaling/Image/ESRGAN/4x_UniversalUpscalerV2-Sharp_101000_G.pthAdded+3
- Upscaling/Image/ESRGAN/ESRGAN_4x.pthAdded+3
- Upscaling/Image/ESRGAN/x4-upscaler-ema.safetensorsAdded+3
- Upscaling/Image/ESRGAN/x4-upscaler-ema.yamlAdded+75
- Upscaling/Image/LDSR/._model.ckptAdded+3
- Upscaling/Image/LDSR/model.ckptAdded+3
- Upscaling/Image/RealESRGAN/._RealESRGAN_x4plus.pthAdded+3
- Upscaling/Image/RealESRGAN/._RealESRGAN_x4plus_anime_6B.pthAdded+3
- Upscaling/Image/RealESRGAN/RealESRGAN_x4plus.pthAdded+3
- Upscaling/Image/RealESRGAN/RealESRGAN_x4plus_anime_6B.pthAdded+3
- Upscaling/Image/SUPIR/SUPIR-v0F_fp16.safetensorsAdded+3
- Upscaling/Image/SUPIR/SUPIR-v0Q_fp16.safetensorsAdded+3
- VAE/Image/SD3.5L_VAE.safetensorsAdded+3
- VAE/Image/difconsistencyRAWVAE_v10Safestensor.safetensorsAdded+3
32 unmodified lines333435363732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textVision/Segmentation/YOLO/efficient_sam_s_cpu.jit filter=lfs diff=lfs merge=lfs -textVision/Segmentation/YOLO/efficient_sam_s_gpu.jit filter=lfs diff=lfs merge=lfs -text123version https://git-lfs.github.com/spec/v1oid sha256:5846f524f8ebf9c3092cba64d1d2ed63b0997d00e80be32b0124114a592e8474size 1264217858123version https://git-lfs.github.com/spec/v1oid sha256:1fee501deabac72f0ed17610307d7131e3e9d1e838d0363aa3c2b97a6e03fb33size 856505640123version https://git-lfs.github.com/spec/v1oid sha256:6ca9667da1ca9e0b0f75e46bb030f7e011f44f86cbfb8d5a36590fcd7507b030size 2528373448123version https://git-lfs.github.com/spec/v1oid sha256:9908329b3ead722a693ea400fab1d7c9ec91d6736fd194a94d20d793457f9c2esize 3689911098123version https://git-lfs.github.com/spec/v1oid sha256:ec310df2af79c318e24d20511b601a591ca8cd4f1fce1d8dff822a356bcdb1f4size 1389382176123version https://git-lfs.github.com/spec/v1oid sha256:660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cddsize 246144152123version https://git-lfs.github.com/spec/v1oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668size 680821096123version https://git-lfs.github.com/spec/v1oid sha256:6e480b09fae049a72d2a8c5fbccb8d3e92febeb233bbe9dfe7256958a9167635size 9787841024123version https://git-lfs.github.com/spec/v1oid sha256:4fa971faf306cad919033d5bbe192e571dc08452f800cbf2ec3c73977c01b2ccsize 11361845464123version https://git-lfs.github.com/spec/v1oid sha256:1009e537e0c2a07d4cabce6355f53cb66767cd4b4297ec7a4a64ca4b8a5684b7size 376637898123version https://git-lfs.github.com/spec/v1oid sha256:b1195544610ee26f6f979bd3e5cae1f9ba149a56ffbc61b6d598df55726a6f3fsize 4096123version https://git-lfs.github.com/spec/v1oid sha256:46532b54ed776c0e86952d826822114ac9a01fd63fee1f006a70b92142df35ddsize 4096123version https://git-lfs.github.com/spec/v1oid sha256:e2cd4703ab14f4d01fd1383a8a8b266f9a5833dacee8e6a79d3bf21a1b6be5adsize 348632874123version https://git-lfs.github.com/spec/v1oid sha256:3d558d8d0e42c20224f13cf5a29c79eba2d59913419f945545d8cf7b72920de2size 85331193123version https://git-lfs.github.com/spec/v1oid sha256:02b3618e36d803784166660520098089a81388e61a93ef8002aa79a5b1c546e1size 1691134141123version https://git-lfs.github.com/spec/v1oid sha256:e4a3f08c753cb72d04e10aa0f7dbe3deebbf39567d4ead6dce08e98aa49e16afsize 554253681123version https://git-lfs.github.com/spec/v1oid sha256:b258a5cd2c0c7d35f4d3e59909d7648498686afae4d0c74917e9c47d7704fbf5size 791372856123version https://git-lfs.github.com/spec/v1oid sha256:df5c06b8a0c12e422b2ed8947b8869faa4105387f199c477af038aa01f9a45ccsize 143607619123version https://git-lfs.github.com/spec/v1oid sha256:f001b856447c413801ef5c42091ed0cd516fcd21f2d6b79635b1e733a7109dbfsize 5030888123version https://git-lfs.github.com/spec/v1oid sha256:4fde69b1c810857b88c64a335084f1c3fe8f01246c9a191b48c7bb756d6652fbsize 1322532123version https://git-lfs.github.com/spec/v1oid sha256:4ab1d6435d639628a6f3e5008dd4f929edf4c4124b1a7169e1048f9fef534cdfsize 260665334123version https://git-lfs.github.com/spec/v1oid sha256:5838f7fe053675b1c7a08b633df49e7af5495cee0493c7dcf6697200b85b5b91size 16923827123version https://git-lfs.github.com/spec/v1oid sha256:df5c06b8a0c12e422b2ed8947b8869faa4105387f199c477af038aa01f9a45ccsize 143607619123version https://git-lfs.github.com/spec/v1oid sha256:f001b856447c413801ef5c42091ed0cd516fcd21f2d6b79635b1e733a7109dbfsize 5030888123version https://git-lfs.github.com/spec/v1oid sha256:5838f7fe053675b1c7a08b633df49e7af5495cee0493c7dcf6697200b85b5b91size 16923827123version https://git-lfs.github.com/spec/v1oid sha256:4fde69b1c810857b88c64a335084f1c3fe8f01246c9a191b48c7bb756d6652fbsize 1322532123version https://git-lfs.github.com/spec/v1oid sha256:4c06341c33c2ca1f86781dab0e829f88ad5b64be9fba56e56bc9ebdefc619e43size 174383860123version https://git-lfs.github.com/spec/v1oid sha256:de43f66c5e5721331e83024b182adabef62b606e03339abe13cb83f1415621bdsize 6873874968123version https://git-lfs.github.com/spec/v1oid sha256:062154318a7f0e772cd9b81a97533d682a29a3434fdbcd7d9b4e9a8414e3cd72size 4096123version https://git-lfs.github.com/spec/v1oid sha256:aee5beeafa21e3a4f75874c65662a902b45f76a2a709d0da8a4f98826c7d1da3size 4096123version https://git-lfs.github.com/spec/v1oid sha256:17e2cd29da4833085345844e7e7457a04f3fa33bea320c778fd1190d68a886easize 4096123version https://git-lfs.github.com/spec/v1oid sha256:002e0e3b22b3cff62c881b1c7b227f9ef03a0201f6cdd5af2d448ad0ee4723basize 4096123version https://git-lfs.github.com/spec/v1oid sha256:a5812231fc936b42af08a5edba784195495d303d5b3248c24489ef0c4021fe01size 66961958123version https://git-lfs.github.com/spec/v1oid sha256:60fccf5f605c8aab7bba1c6e05f055967c6b693d24468bf42215599cd3d78323size 66906127123version https://git-lfs.github.com/spec/v1oid sha256:1c6fe5062f54074199f133d04e6a782501b6d98a27a2adc474d0c5cead5b8befsize 66961958123version https://git-lfs.github.com/spec/v1oid sha256:65fece06e1ccb48853242aa972bdf00ad07a7dd8938d2dcbdf4221b59f6372cesize 66929193123version https://git-lfs.github.com/spec/v1oid sha256:35c01d6160bdfe6644b0aee52ac2667da2f40a33a5d1ef12bbd011d059057bc6size 3531269371123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475model: base_learning_rate: 1.0e-04 target: ldm.models.diffusion.ddpm.LatentUpscaleDiffusion params: parameterization: "v" low_scale_key: "lr" linear_start: 0.0001 linear_end: 0.02 num_timesteps_cond: 1 log_every_t: 200 timesteps: 1000 first_stage_key: "jpg" cond_stage_key: "txt" image_size: 128 channels: 4 cond_stage_trainable: false conditioning_key: "hybrid-adm" monitor: val/loss_simple_ema scale_factor: 0.08333 use_ema: False
low_scale_config: target: ldm.modules.diffusionmodules.upscaling.ImageConcatWithNoiseAugmentation params: noise_schedule_config: # image space linear_start: 0.0001 linear_end: 0.02 max_noise_level: 350
unet_config: target: ldm.modules.diffusionmodules.openaimodel.UNetModel params: use_checkpoint: True num_classes: 1000 # timesteps for noise conditioning (here constant, just need one) image_size: 128 in_channels: 7 out_channels: 4 model_channels: 256 attention_resolutions: [ 2,4,8] num_res_blocks: 2 channel_mult: [ 1, 2, 2, 4] disable_self_attentions: [True, True, True, False] disable_middle_self_attn: False num_heads: 8 use_spatial_transformer: True transformer_depth: 1 context_dim: 1024 legacy: False use_linear_in_transformer: True
first_stage_config: target: ldm.models.autoencoder.AutoencoderKL params: embed_dim: 4 ddconfig: # attn_type: "vanilla-xformers" this model needs efficient attention to be feasible on HR data, also the decoder seems to break in half precision (UNet is fine though) double_z: True z_channels: 4 resolution: 256 in_channels: 3 out_ch: 3 ch: 128 ch_mult: [ 1,2,4 ] # num_down = len(ch_mult)-1 num_res_blocks: 2 attn_resolutions: [ ] dropout: 0.0
lossconfig: target: torch.nn.Identity
cond_stage_config: target: ldm.modules.encoders.modules.FrozenOpenCLIPEmbedder params: freeze: True layer: "penultimate"123version https://git-lfs.github.com/spec/v1oid sha256:ff1543514c38017443afda09ef3f21508f6d0ae85d8253e3776ae1cebd1c2fd7size 4096123version https://git-lfs.github.com/spec/v1oid sha256:c209caecac2f97b4bb8f4d726b70ac2ac9b35904b7fc99801e1f5e61f9210c13size 2039822129123version https://git-lfs.github.com/spec/v1oid sha256:48a030804b4340ff0a35685cfd28506be1d67eb8f3ef84917af70c8dad9a66fasize 4096123version https://git-lfs.github.com/spec/v1oid sha256:ddd37006bdfae0e07918d8fc70bdbc8d663be4c1aa324fa1c6d42673294ec7c4size 4096123version https://git-lfs.github.com/spec/v1oid sha256:4fa0d38905f75ac06eb49a7951b426670021be3018265fd191d2125df9d682f1size 67040989123version https://git-lfs.github.com/spec/v1oid sha256:f872d837d3c90ed2e05227bed711af5671a6fd1c9f7d7e91c911a61f155e99dasize 17938799123version https://git-lfs.github.com/spec/v1oid sha256:a8f1846de1985cf0473fac6d8c0ef17c9498a90d1c19906e944134c5572275d0size 2664825592123version https://git-lfs.github.com/spec/v1oid sha256:3eef33ec7633122ca23b1e5ef167faa048b5a0845768694d5e8070138ac013cesize 2664858464123version https://git-lfs.github.com/spec/v1oid sha256:8f53304a79335b55e13ec50f63e5157fee4deb2f30d5fae0654e2b2653c109dcsize 167666902123version https://git-lfs.github.com/spec/v1oid sha256:737a0c512486220c292a86d55d54e2a3e6f57c99c5ec2e7b18ed2a13e8b9f807size 334640988.gitattributes+2
Encoding/Image/CLIP-ViT-H-fp16.safetensorsAdded+3
Encoding/Image/sigclip_vision_patch14_384.safetensorsAdded+3
Encoding/Text/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensorsAdded+3
Encoding/Text/CLIP-ViT-bigG-14-laion2B-39B-b160k.safetensorsAdded+3
Encoding/Text/clip_g.safetensorsAdded+3
Encoding/Text/clip_l.safetensorsAdded+3
Encoding/Text/stable-diffusion-2-1-clip-fp16.safetensorsAdded+3
Encoding/Text/t5xxl_fp16.safetensorsAdded+3
Encoding/Text/umt5-xxl-enc-bf16.safetensorsAdded+3
I2I/Face Restoring/Codeformer/codeformer-v0.1.0.pthAdded+3
I2I/Face Restoring/GFPGAN/._GFPGANv1.4.pthAdded+3
I2I/Face Restoring/GFPGAN/._parsing_parsenet.pthAdded+3
I2I/Face Restoring/GFPGAN/GFPGANv1.4.pthAdded+3
I2I/Face Restoring/GFPGAN/parsing_parsenet.pthAdded+3
I2I/Face Swapping/InstantID/ip-adapter.binAdded+3
I2I/Face Swapping/Inswapper/inswapper_128.onnxAdded+3
I2I/Face Swapping/PuLID/ip-adapter_pulid_sdxl_fp16.safetensorsAdded+3
I2I/Face Swapping/antelopev2/1k3d68.onnxAdded+3
I2I/Face Swapping/antelopev2/2d106det.onnxAdded+3
I2I/Face Swapping/antelopev2/genderage.onnxAdded+3
I2I/Face Swapping/antelopev2/glintr100.onnxAdded+3
I2I/Face Swapping/antelopev2/scrfd_10g_bnkps.onnxAdded+3
I2I/Face Swapping/buffalo_l/1k3d68.onnxAdded+3
I2I/Face Swapping/buffalo_l/2d106det.onnxAdded+3
I2I/Face Swapping/buffalo_l/det_10g.onnxAdded+3
I2I/Face Swapping/buffalo_l/genderage.onnxAdded+3
I2I/Face Swapping/buffalo_l/w600k_r50.onnxAdded+3
Upscaling/Image/CCSR/real-world_ccsr-fp32.safetensorsAdded+3
Upscaling/Image/ESRGAN/._4x-UltraSharp.pthAdded+3
Upscaling/Image/ESRGAN/._4x_UniversalUpscalerV2-Neutral_115000_swaG.pthAdded+3
Upscaling/Image/ESRGAN/._4x_UniversalUpscalerV2-Sharp_101000_G.pthAdded+3
Upscaling/Image/ESRGAN/._x4-upscaler-ema.safetensorsAdded+3
Upscaling/Image/ESRGAN/._x4-upscaler-ema.yamlAdded
Upscaling/Image/ESRGAN/4x-UltraSharp.pthAdded+3
Upscaling/Image/ESRGAN/4x_UniversalUpscalerV2-Neutral_115000_swaG.pthAdded+3
Upscaling/Image/ESRGAN/4x_UniversalUpscalerV2-Sharp_101000_G.pthAdded+3
Upscaling/Image/ESRGAN/ESRGAN_4x.pthAdded+3
Upscaling/Image/ESRGAN/x4-upscaler-ema.safetensorsAdded+3
Upscaling/Image/ESRGAN/x4-upscaler-ema.yamlAdded+75
Upscaling/Image/LDSR/._model.ckptAdded+3
Upscaling/Image/LDSR/model.ckptAdded+3
Upscaling/Image/RealESRGAN/._RealESRGAN_x4plus.pthAdded+3
Upscaling/Image/RealESRGAN/._RealESRGAN_x4plus_anime_6B.pthAdded+3
Upscaling/Image/RealESRGAN/RealESRGAN_x4plus.pthAdded+3
Upscaling/Image/RealESRGAN/RealESRGAN_x4plus_anime_6B.pthAdded+3
Upscaling/Image/SUPIR/SUPIR-v0F_fp16.safetensorsAdded+3
Upscaling/Image/SUPIR/SUPIR-v0Q_fp16.safetensorsAdded+3
VAE/Image/SD3.5L_VAE.safetensorsAdded+3
VAE/Image/difconsistencyRAWVAE_v10Safestensor.safetensorsAdded+3