This file contains hidden or 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
import copy, cv2, os, sys, pickle, time | |
import numpy as np | |
from os.path import join | |
TARGET = 'tmp/' | |
RAW_PICKLE_FILE = 'data_raw_115_items.pkl' | |
def prepare_data(): | |
"""Create the appropriate data for PyTorch using `ImageFolder`. From: |
This file contains hidden or 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
""" | |
For the BAIR Blog post. | |
(c) 2018 by Daniel Seita (and Michael Laskey). | |
""" | |
import numpy as np | |
import cv2 | |
def depth_to_3ch(img, cutoff): | |
"""Useful to turn the background into black into the depth images. |
This file contains hidden or 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
""" | |
Quick script I ran to visualuze some A2C results. Just run `python plot.py` in the same directory | |
as where the stuff in `files` is located. | |
""" | |
import argparse, csv, os, pickle, sys, matplotlib | |
from os.path import join | |
matplotlib.use('Agg') | |
import matplotlib.pyplot as plt | |
plt.style.use('seaborn-darkgrid') | |
import numpy as np |
This file contains hidden or 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
\documentclass[11pt]{article} | |
\usepackage{amsmath,amssymb,tikz} | |
\usetikzlibrary{positioning} | |
\begin{document} | |
\begin{center} | |
\begin{tikzpicture} | |
\node (1) [align=center] {$\mathsf{EXPSPACE}$}; | |
\node (2) [align=center, below=3mm of 1] {$\mathsf{MA}_{\mathsf{EXP}}$}; |
NewerOlder