You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| bl_info = { | |
| "name": "MY_SMPL_FRAMES_ANIMATION", | |
| "blender": (4, 0, 0), | |
| "category": "Object", | |
| } | |
| import bpy | |
| import os |
| import torch | |
| import numpy as np | |
| from matplotlib import pyplot as plt | |
| TARGET = 2.7 | |
| LR = 1 | |
| l1 = lambda hypo, target: (hypo - target).abs() | |
| l2 = lambda hypo, target: (hypo - target) ** 2 | |
| weights_init = torch.ones(1, 4) + torch.rand(1, 4) |
| #from this: https://blender.stackexchange.com/a/231881 | |
| import bpy | |
| import gpu | |
| # Draw function which copies data from the 3D View | |
| def draw(self, context): | |
| if self.modal_redraw == True: |
| import random | |
| from scapy.all import * | |
| # Function to generate a random MAC address | |
| def random_mac(): | |
| return "02:%02x:%02x:%02x:%02x:%02x" % ( | |
| random.randint(0, 255), | |
| random.randint(0, 255), | |
| random.randint(0, 255), | |
| random.randint(0, 255), |
| //source from: https://stackoverflow.com/a/68178683/19835902 | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class AnimationExtractor: MonoBehaviour | |
| { | |
| [MenuItem("Assets/Extract Animation")] | |
| private static void ExtractAnimation() |
| import os, ssl, certifi | |
| # adress | |
| host, port = "baidu.com", "443" | |
| # the ca relative path | |
| ca_certs=os.path.relpath(certifi.where()) | |
| # Retrieve the server certificate, validate the certificate by specify the ca_certs arg | |
| cert = ssl.get_server_certificate((host, port), ca_certs=ca_certs) | |
| # print the cert | |
| print(cert) |
| #%% | |
| import numpy as np | |
| from hmmlearn import hmm | |
| #%% | |
| states = ["Rainy", "Sunny"] | |
| n_states = len(states) | |
| observations = ["walk", "shop", "clean"] | |
| n_observations = len(observations) |