Skip to content

Instantly share code, notes, and snippets.

View mprostock's full-sized avatar

Marc P. Rostock mprostock

  • Freelancer
  • Munich, Germany
View GitHub Profile
@mprostock
mprostock / renamer.py
Last active August 6, 2019 15:21
quick script to rename all files in a folder
"""
very quick and dirty batch renamer - needed for downloaded files
"""
import sys
from pathlib import Path
if len(sys.argv)<2:
print("usage: renamer.py FOLDER")
print("argument 'FOLDER' missing.")
@mprostock
mprostock / dataloader_mem_leak_copy-on-access_problem.ipynb
Created December 10, 2018 10:32
"Memory Leak" copy-on-access problem in pytorch dataloaders
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.