Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoviolet committed Mar 8, 2021
2 parents d1c98df + 261a098 commit f411fbe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pl_bolts/datasets/imagenet_dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import gzip
import hashlib
import os
import sys
import shutil
import tarfile
import tempfile
Expand All @@ -9,11 +10,12 @@

import numpy as np
import torch
from torch._six import PY3

from pl_bolts.utils import _TORCHVISION_AVAILABLE
from pl_bolts.utils.warnings import warn_missing_pkg

PY3 = sys.version_info[0] == 3

if _TORCHVISION_AVAILABLE:
from torchvision.datasets import ImageNet
from torchvision.datasets.imagenet import load_meta_file
Expand Down
2 changes: 1 addition & 1 deletion pl_bolts/models/autoencoders/basic_ae/basic_ae_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AE(pl.LightningModule):
ae = AE()
# pretrained on cifar10
ae = AE.from_pretrained('cifar10-resnet18')
ae = AE(input_height=32).from_pretrained('cifar10-resnet18')
"""

pretrained_urls = {
Expand Down
4 changes: 2 additions & 2 deletions pl_bolts/models/autoencoders/basic_vae/basic_vae_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class VAE(pl.LightningModule):
vae = VAE()
# pretrained on cifar10
vae = VAE.from_pretrained('cifar10-resnet18')
vae = VAE(input_height=32).from_pretrained('cifar10-resnet18')
# pretrained on stl10
vae = VAE.from_pretrained('stl10-resnet18')
vae = VAE(input_height=32).from_pretrained('stl10-resnet18')
"""

pretrained_urls = {
Expand Down

0 comments on commit f411fbe

Please sign in to comment.