Skip to content

Commit

Permalink
fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy committed Mar 4, 2021
1 parent 7c3b87f commit e892bb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions examples/indoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import argparse
import numpy as np
from urllib.request import urlretrieve

try:
import open3d as o3d
except ImportError:
Expand All @@ -33,14 +34,14 @@
import torch
import MinkowskiEngine as ME
from examples.minkunet import MinkUNet34C
from examples.common import Timer

# Check if the weights and file exist and download
if not os.path.isfile('weights.pth'):
print('Downloading weights and a room ply file...')
urlretrieve("http://cvgl.stanford.edu/data2/minkowskiengine/weights.pth",
'weights.pth')
urlretrieve("http://cvgl.stanford.edu/data2/minkowskiengine/1.ply", '1.ply')
print('Downloading weights...')
urlretrieve("https://bit.ly/2O4dZrz", "weights.pth")
if not os.path.isfile("1.ply"):
print('Downloading an example pointcloud...')
urlretrieve("https://bit.ly/3c2iLhg", "1.ply")

parser = argparse.ArgumentParser()
parser.add_argument('--file_name', type=str, default='1.ply')
Expand Down
3 changes: 2 additions & 1 deletion examples/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@


if not os.path.isfile("1.ply"):
urlretrieve("http://cvgl.stanford.edu/data2/minkowskiengine/1.ply", "1.ply")
print('Downloading an example pointcloud...')
urlretrieve("https://bit.ly/3c2iLhg", "1.ply")


def load_file(file_name):
Expand Down

0 comments on commit e892bb8

Please sign in to comment.