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
""" | |
Required files: | |
https://github.com/mrdoob/three.js/blob/c8549a524bde688e8a55b32faa0a69b3308c4034/examples/models/stl/binary/pr2_head_tilt.stl | |
https://sipi.usc.edu/database/download.php?vol=misc&img=4.2.03 | |
https://sipi.usc.edu/database/database.php?volume=misc&image=5#top | |
""" | |
import bpy | |
base_path = '/Users/enric/Downloads/' |
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
bind-addr: 127.0.0.1:8080 | |
auth: password | |
password: yourpassword | |
cert: false |
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
# Config file | |
bind-addr: 127.0.0.1:8080 | |
auth: password | |
password: yourpassword | |
cert: false |
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
# Use this command to avoid the password prompt | |
# First generate an SSH key pair with: ssh-keygen | |
# Second, run this command on your system | |
# ssh-copy-id [email protected] | |
# To open server's tensorboard from my computer | |
# ssh myserver -L 6006:127.0.0.1:6006 | |
# Note that 'myserver' is the alias I use to connect to my server (see below) | |
# Acces to my server using the gateway using an alias: |
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 __future__ import print_function, division | |
import os | |
import torch | |
from skimage import io | |
import numpy as np | |
from torch.utils.data import Dataset, DataLoader | |
from torchvision import transforms, utils | |
import json | |
from sklearn import preprocessing | |
from PIL import Image |
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 tqdm import tqdm | |
import torch | |
import torch.nn as nn | |
import torch.optim as optim | |
from torch.optim import lr_scheduler | |
import numpy as np | |
import torchvision | |
from torchvision import datasets, models, transforms | |
import time |
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
#!/bin/bash | |
function gdrive_download () { | |
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p') | |
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2 | |
rm -rf /tmp/cookies.txt | |
} | |
gdrive_download 1E1lLxMKtLZwSBappJ9EIaOwo2shpk_Pb file.zip |
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
ln -s /usr/bin/python3 /usr/bin/python |
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
#Usage: python3 network.py input.csv output.csv | |
import csv | |
import re | |
import sys | |
input_file = sys.argv[1] | |
output_file = sys.argv[2] |
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 selenium import webdriver | |
import time | |
from bs4 import BeautifulSoup | |
import csv | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf8') | |
#write header |
NewerOlder