This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by cmdr2, anyone is free to use and modify this, without the need to give credit | |
import math | |
import ephem | |
import time | |
from datetime import datetime, timedelta | |
# consts | |
degrees_per_rad = 180.0 / math.pi | |
au = 149597892 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/processing.js/1.6.0/processing.min.js"></script> | |
<body> | |
<script type="application/processing"> | |
void setup(){ | |
size(200, 200); | |
} | |
void draw(){ | |
background(64); | |
ellipse(40, 40, 20, 20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// returns a gaussian random function with the given mean and stdev. | |
function gaussian(mean, stdev) { | |
var y2; | |
var use_last = false; | |
return function() { | |
var y1; | |
if (use_last) { | |
y1 = y2; | |
use_last = false; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install transforms3d numpy | |
import transforms3d as t3d | |
import numpy as np | |
scene_transform = {"pos": [0,0,0], "rot": [0,0,0,1], "scale": [1,1,1]} | |
# https://forum.unity.com/threads/whats-the-math-behind-transform-transformpoint.107401/#post-709765 | |
def local_to_world(p): | |
v = np.multiply(p, scene_transform["scale"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Follow the steps on http://www.angelofarina.it/DisableDiscrete.htm | |
if this doesn't work: | |
`sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00` | |
then try `sudo nvram 000fa4ce-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00` | |
Also check if any new NVidia or AMD drivers got created in /System/Library/Extensions, like GeForce* or NVDA* or NVIDIA* or CUDA*, which will need to be moved away |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/source/blender/makesrna/intern/rna_xr.c b/source/blender/makesrna/intern/rna_xr.c | |
index 6f43afe23fe..52efa1b6653 100644 | |
--- a/source/blender/makesrna/intern/rna_xr.c | |
+++ b/source/blender/makesrna/intern/rna_xr.c | |
@@ -1195,6 +1195,50 @@ static int rna_XrEventData_action_length(PointerRNA *ptr) | |
# endif | |
} | |
+static void rna_XrEventData_user_path_get(PointerRNA *ptr, char *r_value) | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Only in sd2: LICENSE-MODEL | |
Only in sd2/assets: stable-inpainting | |
Only in sd2/assets/stable-samples: depth2img | |
Only in sd2/assets/stable-samples/txt2img: 768 | |
Only in sd2/assets/stable-samples: upscaling | |
Only in sd1/configs: autoencoder | |
Only in sd1/configs: latent-diffusion | |
Only in sd1/configs: retrieval-augmented-diffusion | |
Only in sd1/configs/stable-diffusion: v1-inference.yaml | |
Only in sd2/configs/stable-diffusion: v2-inference-v.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model: | |
base_learning_rate: 1.0e-4 | |
target: ldm.models.diffusion.ddpm.LatentDiffusion | |
params: | |
parameterization: "v" | |
linear_start: 0.00085 | |
linear_end: 0.0120 | |
num_timesteps_cond: 1 | |
log_every_t: 200 | |
timesteps: 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Runs the desired Stable Diffusion models against the desired samplers. Saves the output images | |
to disk, along with the peak RAM and VRAM usage, as well as the sampling performance. | |
""" | |
import argparse | |
import os | |
import time | |
import traceback | |
from pathlib import Path |