Skip to content

Instantly share code, notes, and snippets.

View samedii's full-sized avatar

Richard Löwenström samedii

View GitHub Profile
instance_loss = (
F.mse_loss(
predictions.predicted_noise,
diffused_latent_images.noise,
reduction="none",
)
.flatten(start_dim=1)
.mean(dim=1)
)
@samedii
samedii / gist:111920400eeca3794ddf2409c9e29a22
Created November 30, 2020 11:43
Poetry source - should not work
[tool.poetry]
name = "test-packagr"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies]
python = "^3.8"
skyfog = "^0.2.0"