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
from tkinter import ttk | |
import tkinter as tk | |
import functools | |
fp = functools.partial | |
class VerticalScrolledFrame(ttk.Frame): | |
""" | |
A pure Tkinter scrollable frame that actually works! | |
* Use the 'interior' attribute to place widgets inside the scrollable frame | |
* Construct and pack/place/grid normally |
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
from model import Net | |
from trainer import Trainer | |
import torch | |
from torch import nn | |
from matplotlib import pyplot as plt | |
model = Net() | |
ckpt = torch.load('path_to_checkpoint') | |
model.load_state_dict(ckpt['state_dict']) | |
filter = model.conv1.weight.data.numpy() |
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
# RST ===================== | |
============================ | |
# Code block for RST # | |
============================ | |
.. code-block:: python | |
$END$ | |
============================= | |
# Inline code block for RST # | |
============================= |