Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: "access denied" error on colab when download latest_net_G.pth #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion colab/byod.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"\n",
"# Downloading merge model weights\n",
"# !wget https://sfu.ca/~yagiz/CVPR21/latest_net_G.pth\n",
"!gdown https://drive.google.com/u/0/uc?id=1cU2y-kMbt0Sf00Ns4CN2oO9qPJ8BensP&export=download\n",
"!gdown \"1cU2y-kMbt0Sf00Ns4CN2oO9qPJ8BensP&confirm=t\"\n",
"\n",
"!mkdir -p /content/BoostYourOwnDepth/pix2pix/checkpoints/mergemodel/\n",
"!mv /content/latest_net_G.pth /content/BoostYourOwnDepth/pix2pix/checkpoints/mergemodel/\n",
Expand Down
Binary file removed input/high-res/Lunch_atop_a_Skyscraper.png
Binary file not shown.
Binary file removed input/high-res/Lunch_atop_a_Skyscraper_mix.png
Binary file not shown.
Binary file removed input/high-res/Motorcycle-perfect.png
Binary file not shown.
Binary file removed input/low-res/Lunch_atop_a_Skyscraper.png
Binary file not shown.
Binary file removed input/low-res/Lunch_atop_a_Skyscraper_mix.png
Binary file not shown.
Binary file removed input/low-res/Motorcycle-perfect.png
Binary file not shown.
1 change: 1 addition & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def showimage(img):


def read_image(path):
print('read_image', path)
img = cv2.imread(path, cv2.IMREAD_GRAYSCALE)/255.0
#if img.ndim == 2:
# img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
Expand Down