Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import logging | |
import multiprocessing | |
import typing as T | |
import av | |
import numpy as np | |
import tqdm | |
def get_video_frame_at_timestamp(video_path: str, offset_s: float = 0) -> np.ndarray: |
This file contains 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
import av | |
import tqdm | |
import logging | |
import signal | |
import sys | |
import subprocess | |
import typing as T | |
import multiprocessing | |
This file contains 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
import click | |
import time | |
import multiprocessing | |
import concurrent.futures | |
import cv2 | |
import logging | |
import sys | |
import av | |
import numpy as np |
This file contains 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
import time | |
import multiprocessing | |
import concurrent.futures | |
import cv2 | |
import logging | |
def elapsed_time(end, start): | |
return round(end - start, 1) |
This file contains 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
import time | |
import multiprocessing | |
import concurrent.futures | |
import cv2 | |
import logging | |
def elapsed_time(end, start): | |
return round(end - start, 1) |
This file contains 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
import cv2 | |
import time | |
import sys | |
import logging | |
def get_frames_parts(total_frames=0): | |
max_workers = 4 | |
part = total_frames / max_workers | |
results = [(i * part, (i + 1) * part) for i in range(max_workers)] |
This file contains 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
ls -laR /home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new | |
/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new: | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.gitignore': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/requirements': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.pre-commit-config.yaml': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.venv': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.circleci': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/setup.py': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/..': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/wor |
This file contains 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
#include <iostream> | |
using namespace std; | |
struct Pc{ | |
int ram; | |
int storage; | |
double battery; | |
string brand; |
This file contains 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
version: 2 | |
jobs: | |
build: | |
working_directory: /app | |
docker: | |
- image: docker:17.05.0-ce-git | |
auth: | |
#Put the contents of keyfile.json into an environment variable for the build called GCR_CREDS, which is then passed in. | |
username: _json_key | |
password: $GOOGLE_AUTH |
NewerOlder