Skip to content

Commit

Permalink
switched to MIT license
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Smith committed Apr 4, 2023
1 parent f21f8ce commit 18542e3
Show file tree
Hide file tree
Showing 52 changed files with 126 additions and 401 deletions.
420 changes: 21 additions & 399 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions animated_drawings/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
2 changes: 2 additions & 0 deletions animated_drawings/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations
import logging
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/controller/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

""" Controller Abstract Base Class Module """

Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/controller/interactive_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

""" Interactive Controller Class Module """

Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/controller/video_render_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

""" Video Render Controller Class Module """

Expand Down
3 changes: 3 additions & 0 deletions animated_drawings/model/animated_drawing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import logging
import ctypes
import heapq
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/arap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import numpy as np
import numpy.typing as npt
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/box.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import numpy as np
import OpenGL.GL as GL
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/bvh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations # so we can refer to class Type inside class
import logging
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/camera.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.transform import Transform
from animated_drawings.model.vectors import Vectors
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/floor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.rectangle import Rectangle
from animated_drawings.model.transform import Transform
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/joint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations
from animated_drawings.model.transform import Transform
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/quaternions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations # so we can refer to class Type inside class
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/rectangle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import numpy as np
import OpenGL.GL as GL
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/retargeter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import logging
from animated_drawings.model.bvh import BVH
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/scene.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.transform import Transform
from animated_drawings.model.time_manager import TimeManager
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/time_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from typing import Optional
from abc import abstractmethod
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/transform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations # so we can refer to class Type inside class
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/transform_widget.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.transform import Transform
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/model/vectors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations # so we can refer to class Type inside class
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/render.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import logging
import sys
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from PIL import Image, ImageOps
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/mesa_view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import os
os.environ['PYOPENGL_PLATFORM'] = "osmesa"
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/shaders/bvh.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#version 330 core

Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/shaders/bvh.vert
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#version 330 core
uniform mat4 model;
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/shaders/color.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#version 330 core
out vec4 FragColor;
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/shaders/color.vert
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#version 330 core
layout(location = 0) in vec3 pos;
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/shaders/shader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import OpenGL.GL as GL
import logging
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/shaders/texture.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#version 330 core
out vec4 FragColor;
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/shaders/texture.vert
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#version 330 core
layout(location = 0) in vec3 pos;
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import numpy as np
import numpy.typing as npt
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import annotations
from abc import abstractmethod
Expand Down
2 changes: 2 additions & 0 deletions animated_drawings/view/window_view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.view.view import View
from animated_drawings.view.shaders.shader import Shader
Expand Down
2 changes: 2 additions & 0 deletions examples/annotations_to_animation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import animated_drawings.render
import logging
Expand Down
2 changes: 2 additions & 0 deletions examples/fix_annotations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import argparse
import base64
Expand Down
2 changes: 2 additions & 0 deletions examples/fixer_app/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

import React from "react";

Expand Down
2 changes: 2 additions & 0 deletions examples/fixer_app/Pose/Circle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

import React from "react";

Expand Down
4 changes: 3 additions & 1 deletion examples/fixer_app/Pose/Line.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

const Line = ({ isActive, ...props }) => {
return (
Expand Down
2 changes: 2 additions & 0 deletions examples/fixer_app/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

import { createRoot } from "react-dom/client";
import App from "./App";
Expand Down
4 changes: 3 additions & 1 deletion examples/fixer_app/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Copyright (c) Meta Platforms, Inc. and affiliates. */
/* Copyright (c) Meta Platforms, Inc. and affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. */

body {
font-family: sans-serif;
Expand Down
2 changes: 2 additions & 0 deletions examples/image_to_animation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from image_to_annotations import image_to_annotations
from annotations_to_animation import annotations_to_animation
Expand Down
2 changes: 2 additions & 0 deletions examples/image_to_annotations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import sys
import requests
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from setuptools import find_packages, setup

Expand Down
2 changes: 2 additions & 0 deletions tests/test_animated_drawing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.animated_drawing import AnimatedDrawing
from animated_drawings.config import Config
Expand Down
2 changes: 2 additions & 0 deletions tests/test_arap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import numpy as np
from animated_drawings.model.arap import ARAP, plot_mesh
Expand Down
2 changes: 2 additions & 0 deletions tests/test_bvh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.bvh import BVH
from pkg_resources import resource_filename
Expand Down
2 changes: 2 additions & 0 deletions tests/test_quaternions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.quaternions import Quaternions
from animated_drawings.model.vectors import Vectors
Expand Down
2 changes: 2 additions & 0 deletions tests/test_render.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings import render
from pkg_resources import resource_filename
Expand Down
2 changes: 2 additions & 0 deletions tests/test_transforms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.transform import Transform
from animated_drawings.model.quaternions import Quaternions
Expand Down
2 changes: 2 additions & 0 deletions tests/test_vectors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from animated_drawings.model.vectors import Vectors
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions torchserve/config.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

inference_address=http://0.0.0.0:8080
management_address=http://0.0.0.0:8081
Expand Down

0 comments on commit 18542e3

Please sign in to comment.