##Sequence to Sequence -- Video to Text
Paper : ICCV 2015 PDF
Download Model: S2VT_VGG_RGB_MODEL (333MB)
| #!/bin/bash | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
| // These hashes are for algorithmic use cases, such as bucketing in hashtables, where security isn't | |
| // needed and 32 or 64 bits is enough (that is, rare collisions are acceptable). These are way simpler | |
| // than sha1 (and all its deps) or similar, and with a short, clean (base 36 alphanumeric) result. | |
| // A simple, *insecure* 32-bit hash that's short, fast, and has no dependencies. | |
| // Output is always 7 characters. | |
| // Loosely based on the Java version; see | |
| // https://stackoverflow.com/questions/6122571/simple-non-secure-hash-function-for-javascript | |
| const simpleHash = str => { | |
| let hash = 0; |
| from django.db import models | |
| class StoredOriginalValuesModel(models.Model): | |
| """ | |
| Model that stores original data in a dictionary and provides the | |
| field_has_changed(field_name) method to check if a field has been modified | |
| after loading the data from the db. | |
| Original values are stored in the _original dictionary only when creating | |
| the object or calling refresh_from_db(), so the field_has_changed() method |
| # VERSION 1.0.4 | |
| # Author: @madhavajay | |
| # This currently works for iOS and watchOS in the Simulator and Devices | |
| # Changes | |
| # Using ${TOOLCHAIN} in two places now | |
| # Added double quotes " around paths | |
| # Fixed watchOS Issues | |
| # Instructions iOS |
##Sequence to Sequence -- Video to Text
Paper : ICCV 2015 PDF
Download Model: S2VT_VGG_RGB_MODEL (333MB)
| // This will open up a prompt for text to send to a console session on digital ocean | |
| // Useful for long passwords | |
| (function () { | |
| var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split(""); | |
| function f() { | |
| var character = t.shift(); | |
| var i=[]; | |
| var code = character.charCodeAt(); | |
| var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1 |
| #!/bin/bash | |
| # This script can be used in "run & hope" mode or you can use it as a recipe to | |
| # do things manually - you probably want the latter if you really care about | |
| # the data in your databases. | |
| # Happy hacking | |
| # /Eoin/ | |
| # Tell bash to stop if something goes wrong | |
| set -e |
| class DisableMigrations(object): | |
| def __contains__(self, item): | |
| return True | |
| def __getitem__(self, item): | |
| return "notmigrations" | |
| MIGRATION_MODULES = DisableMigrations() |
| // | |
| // CollectionViewDataSource.swift | |
| // Khan Academy | |
| // | |
| // Created by Andy Matuschak on 10/14/14. | |
| // Copyright (c) 2014 Khan Academy. All rights reserved. | |
| // | |
| import UIKit |
| # If your test settings file doesn't import any other settings file | |
| # then you can use the function directly: | |
| def prevent_tests_migrate(db): | |
| import django | |
| from django.db import connections | |
| from django.db.migrations.executor import MigrationExecutor | |
| django.setup() | |
| ma = MigrationExecutor(connections[db]).loader.migrated_apps | |
| return dict(zip(ma, ['{a}.notmigrations'.format(a=a) for a in ma])) |