Host juwels
HostName juwels.fz-juelich.de
User salaj1
IdentityFile ~/.ssh/id_rsa_juwels.pub
To connect simply ssh juwels.
| import cv2 | |
| import numpy as np | |
| print(cv2.__version__) | |
| vidcap = cv2.VideoCapture('vid.mp4') | |
| success,image = vidcap.read() | |
| count = 0 | |
| success = True | |
| frames = [] | |
| while success: | |
| frames.append(image) |
| import nltk | |
| from nltk.parse.generate import generate | |
| # Define Reber grammar | |
| # http://christianherta.de/lehre/dataScience/machineLearning/neuralNetworks/pics/embeddedReberGrammar.png | |
| grammarStr = ''' | |
| START -> 'B' 'T' REBER 'T' 'E' | 'B' 'P' REBER 'P' 'E' | |
| REBER -> 'B' E1 | |
| E1 -> 'T' E2 | 'P' E3 |
| #!/usr/bin/python | |
| #!/usr/bin/python | |
| # Answer to this: | |
| # https://stackoverflow.com/questions/53442614/conways-game-of-life-in-python-3-with-matplotlib-problem-with-displaying-a-fo#53442614 | |
| # call with: python3 cgl.py 10 500 1 1 | |
| import os | |
| import argparse | |
| import numpy as np |
| import json | |
| import sys | |
| import os | |
| folders = [] | |
| files = [] | |
| RESULT_KEY = 'test_per' | |
| data = { | |
| 'subdir1': [], | |
| 'subdir2': [], |
| import os | |
| import cv2 | |
| dir_files = os.listdir('raw_data') | |
| extensions = [filename[-4:] for filename in dir_files] | |
| for ext in extensions: | |
| assert ext == '.jpg' | |
| max_width = 0 |