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
# report every 1 minute, this is way too often, but we are testing here | |
optimizer.set_report_period(1) | |
# start the optimization process | |
# this function returns immediately | |
optimizer.start() | |
# set the time limit for the optimization process (2 hours) | |
optimizer.set_time_limit(in_minutes=120.0) | |
# wait until process is done (notice we are controlling the optimization process in the background) | |
optimizer.wait() | |
# optimization is completed, print the top performing experiments id |
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
task.execute_remotely(queue_name='services', exit_process=True) |
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
# All these commands will be launched from a remote SSH session | |
# so we need to add the DISPLAY=:0 environment variable to tell the command | |
# to use the main screen, otherwise it will whine that it found no display | |
$ export DISPLAY=:0 | |
# Launch i3lock with a custom screensaver | |
$ i3lock -i /path/to/custom/screensaver.png | |
# Spam backspace | |
$ xdotool key BackSpace | |
# Fill in password | |
$ xdotool type mypassword |
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
$ gnome-screensaver-command --lock | |
$ i3lock | |
$ xdg-screensaver lock |
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
# Get the previous dataset or create one if it doesn't exist yet | |
dataset = Dataset.get( | |
dataset_project=CLEARML_PROJECT, | |
dataset_name=CLEARML_DATASET_NAME, | |
auto_create=True, | |
writable_copy=True | |
) | |
# Add the labeled files (can include the old ones) | |
dataset.add_files(path=save_path, dataset_path=save_path) | |
# Upload only files that are new |
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
class PushupLockscreen: | |
def __init__(self): | |
sg.theme('Black') | |
# define the window layout | |
layout = [ | |
[ | |
sg.Column( | |
[[sg.Image(filename='', key='image')]] | |
), | |
sg.Column( |
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
$ xset -display :0 dpms force on | |
$ xset -display :0 dpms force off |
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
pip install clearml |
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
clearml-init |
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
python train.py --img 640 --batch 16 --epochs 3 --data coco128.yaml --weights yolov5s.pt --cache |