Skip to content

Instantly share code, notes, and snippets.

View RoostOne's full-sized avatar
🎥

Torsten Hahn RoostOne

🎥
  • Ulm
View GitHub Profile
@RoostOne
RoostOne / CopyYoloRun.md
Created January 28, 2026 12:17
Copy trained YOLO weights to Google Drive Persistence Storage

A problem I faced, that the model I trained is in the non persistence storage of google colab e.g. /content/runs/detect/train2 I added this codeblook to save the trained model weights and training results in the Googledrive /content/drive/MyDrive/yolov8_training_runs/train2

import shutil
import os

# Define the source directory (output of the last training run)
source_dir = '/content/runs/detect/train2'
@RoostOne
RoostOne / create-zip-for-unreal.yml
Created January 8, 2024 11:18
Github Workflow for creating a zip File based on a tag
on:
push:
tags:
- 'v*'
name: Save Project as Release Asset
jobs:
save_project:
@RoostOne
RoostOne / mouslook.cs
Created March 22, 2023 12:02
Mouselook Unity Smoot
using UnityEngine;
using System.Collections;
public class CameraOrbitControl: MonoBehaviour
{
protected Transform _XForm_Camera;
protected Transform _XForm_Parent;
protected Vector3 _LocalRotation;
@RoostOne
RoostOne / main.py
Last active March 21, 2023 10:58
Get Block in python
from notion_client import Client
from Entry import Entry
from latex_generator import createLatextFile, writeLatexFile
from pprint import pprint
# This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.