(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # License: Apache 2.0 | |
| from typing import Dict, Optional | |
| import struct | |
| import json | |
| import numpy as np | |
| import torch | |
| def forward(self, x, timesteps=None, context=None, y=None, **kwargs): | |
| # broadcast timesteps to batch dimension | |
| timesteps = timesteps.expand(x.shape[0]) | |
| hs = [] | |
| t_emb = get_timestep_embedding(timesteps, self.model_channels) # , repeat_only=False) | |
| t_emb = t_emb.to(x.dtype) | |
| emb = self.time_embed(t_emb) | |
| assert x.shape[0] == y.shape[0], f"batch size mismatch: {x.shape[0]} != {y.shape[0]}" |
| aboriginal | |
| above average | |
| abstract composition | |
| abusive | |
| accessories | |
| accountant | |
| acid wash | |
| acne-prone skin | |
| acne scars |
| smiling mouth revealing white straight teeth - 24426 | |
| anxious expression with biting lower lip - 17012 | |
| shallow depth of field - 16806 | |
| early childhood age - 14067 | |
| social worker - 12566 | |
| smiling mouth revealing slightly crooked teeth - 12329 | |
| broad grin revealing straight white teeth - 11336 | |
| pediatrician - 11212 | |
| preschooler age - 10873 |
| { | |
| "⤡": "⤡", | |
| "⊞": "⊞", | |
| "×": "×", | |
| "❮": "❮", | |
| "❯": "❯", | |
| "Loading...": "加载中...", | |
| "Waiting...": "等待中...", | |
| "In queue...": "队列中...", | |
| "@@/^Waiting (.*)$/": "等待中 $1", |
| #!/usr/bin/env python3 | |
| """HTTP Server with auth and Upload. | |
| This module builds on SimpleHTTPRequestHandler, | |
| implements simple Authentication, use ssl | |
| full "multipart" rfc2046 handling, | |
| multi file upload, create folder and delete files, | |
| TableView file listing with icon/size/date | |
| from bones7456: https://github.com/bones7456/bones7456/blob/master/SimpleHTTPServerWithUpload.py / https://gist.github.com/UniIsland/3346170 |
| // erkanyildiz | |
| // 20160620-1913 | |
| // | |
| // EYDigitalCamouflageImage.h | |
| #import <UIKit/UIKit.h> | |
| typedef enum:NSInteger | |
| { | |
| EYDCIWoodland, |
| #!/usr/bin/env python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.