Skip to content
View mstftmk's full-sized avatar

Block or report mstftmk

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mstftmk/README.md

Hi, I'm Mustafa 👋

Computer Vision & Generative AI Engineer 💻 and Tifosi 🏎🏁

I train diffusion transformers for faces and video, and make models fast enough for real-time production.

What I work on

  • Diffusion Transformers: a 303M-parameter flow-matching DiT that swaps facial identity in video while keeping pose, expression and gaze, trained on the MareNostrum 5 supercomputer.
  • Real-time video: a GAN-based, landmark-free face anonymization model distilled from a slower teacher, and the video pipeline that runs it in production.
  • Inference optimization: PyTorch FP32 → TensorRT FP16, latency 49 → 14 ms (3.5x), throughput 20 → 70 FPS.
  • Video diffusion research: probing LTX-2.5 (22B) and temporal video DiTs with ablations, attention-head analysis and CKA.

My work code is private; these are my public projects:

Projects

Project What it shows
camera-motion-compensated-tracking OC-SORT multi-object tracker written from the paper, with global (camera) motion compensation. Checked against the official code on MOT17: +2.42 HOTA on moving-camera sequences. Tests and CI
language-model-pretraining Small GPT pre-trained from scratch on TinyStories: my own byte-level BPE tokenizer, RoPE, RMSNorm, SwiGLU and a KV cache (3.5x faster generation). 0.570 bits per byte after 58 minutes on an M2 laptop. Tests and CI
fast-fourier-transform-quality FFT metrics for lost detail, flicker and keyframe pulsing in images and video, shown on real photos and x264 encodes. Tests and CI
brain-tumor-detection-mri MSc project: YOLOv5 detection at 97.2% mAP (binary) and 94.6% mAP (4-class), CNN classifier, Grad-CAM
transformer-from-scratch Decoder-style Transformer from first principles in PyTorch, with attention visualization
dcgan-from-scratch DCGAN on CIFAR-10 with resumable training and FID / IS evaluation (FID 43.96)
Image-Understanding-Photogrammetry MSc course work on camera geometry: keypoints, matching, epipolar and multi-view geometry
Camera-Trackpad Real-time hand-gesture mouse with MediaPipe and OpenCV

Tools

PyTorch · Diffusion / Flow Matching · Transformers · LLM pre-training · GANs · TensorRT · ONNX · CUDA · PyTorch DDP · SLURM · OpenCV · YOLO · Multi-object tracking · MediaPipe · Python · C++ · pytest · GitHub Actions

Contact

LinkedIn · mstf.tmk@gmail.com · Kaggle

Pinned Loading

  1. camera-motion-compensated-tracking camera-motion-compensated-tracking Public

    OC-SORT multi-object tracking with global (camera) motion compensation, compared on MOT17

    Python

  2. language-model-pretraining language-model-pretraining Public

    A small GPT pre-trained from scratch on TinyStories in PyTorch: byte-level BPE tokenizer, RoPE, RMSNorm, SwiGLU and a KV cache. 0.570 bits per byte after 58 minutes on an M2 laptop.

    Python

  3. fast-fourier-transform-quality fast-fourier-transform-quality Public

    Fast Fourier Transform metrics for detail loss, flicker and keyframe pulsing in images and video

    Python

  4. brain-tumor-detection-mri brain-tumor-detection-mri Public

    Brain tumor detection and classification on MRI with YOLOv5, a CNN and Grad-CAM (97.2% mAP tumor vs. no tumor).

    Python

  5. dcgan-from-scratch dcgan-from-scratch Public

    Readable DCGAN for CIFAR-10 in PyTorch: resumable training and single-pass FID / Inception Score evaluation (FID 43.96).

    Python

  6. Image-Understanding-Photogrammetry Image-Understanding-Photogrammetry Public

    MSc Image Understanding course: keypoint detection and matching, epipolar and multi-view geometry (OpenCV).

    Jupyter Notebook 5