Skip to content

Commit

Permalink
Fix pretrained_urls on windows (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudalev authored Jun 15, 2021
1 parent 49b728d commit 73a3223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pl_bolts/models/autoencoders/basic_ae/basic_ae_module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
import urllib.parse
from argparse import ArgumentParser

import pytorch_lightning as pl
Expand Down Expand Up @@ -31,7 +31,7 @@ class AE(pl.LightningModule):
"""

pretrained_urls = {
'cifar10-resnet18': os.path.join(_HTTPS_AWS_HUB, 'ae/ae-cifar10/checkpoints/epoch%3D96.ckpt'),
'cifar10-resnet18': urllib.parse.urljoin(_HTTPS_AWS_HUB, 'ae/ae-cifar10/checkpoints/epoch%3D96.ckpt'),
}

def __init__(
Expand Down
6 changes: 3 additions & 3 deletions pl_bolts/models/autoencoders/basic_vae/basic_vae_module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
import urllib.parse
from argparse import ArgumentParser

import pytorch_lightning as pl
Expand Down Expand Up @@ -34,8 +34,8 @@ class VAE(pl.LightningModule):
"""

pretrained_urls = {
'cifar10-resnet18': os.path.join(_HTTPS_AWS_HUB, 'vae/vae-cifar10/checkpoints/epoch%3D89.ckpt'),
'stl10-resnet18': os.path.join(_HTTPS_AWS_HUB, 'vae/vae-stl10/checkpoints/epoch%3D89.ckpt'),
'cifar10-resnet18': urllib.parse.urljoin(_HTTPS_AWS_HUB, 'vae/vae-cifar10/checkpoints/epoch%3D89.ckpt'),
'stl10-resnet18': urllib.parse.urljoin(_HTTPS_AWS_HUB, 'vae/vae-stl10/checkpoints/epoch%3D89.ckpt'),
}

def __init__(
Expand Down

0 comments on commit 73a3223

Please sign in to comment.