Skip to content

Instantly share code, notes, and snippets.

@aki-hp
aki-hp / how to install detectron2 or anything from FAIR if torch is returning error (or not found).md
Last active September 4, 2024 04:59
How to install ANYTHING from facebook/FAIR (Detectron2, Pytorch3d etc) if torch is returning error/torch not found

This is how I did it, it's definitely not conventional but I didn't find any post about this. Try at your own risk!

  1. "python setup.py install"
  2. Check the egg packages with "pip list"
  3. Convert the egg packages to wheel (wheel convert )
  4. Extract the wheel
  5. Check the dist-info folder, and check if the folder names are proper. If you need to change it, change RECORD and top_level.txt in dist-info folder.
  6. Copy the main folder (detectron2), additional folder (tools, renamed to detectron2.tools), and the dist-info (detectron2-0.6.dist-info)
@aki-hp
aki-hp / install nvidia driver with real-time kernel.md
Last active May 15, 2024 01:06 — forked from FrankieWOO/install nvidia driver with real-time kernel.md
Minor revision for manual NVIDIA Driver installation
@aki-hp
aki-hp / modorganizer2-nxm-broker.sh
Last active May 12, 2024 08:35
Edited MO2 Broker for rockerbacon's script suite so that even if the NXMHandler fails, the download will still proceed. Might be useful for Steam Deck users (or Flatpak Protontricks users in general).
#!/usr/bin/env bash
# SUPPLY YOUR PERSONAL NEXUS API KEY HERE (nexus_apikey="yourNexusAPIKeyInsideDoubleQuotes")
nexus_apikey="yourNexusAPIKeyInsideDoubleQuotes"
### PARSE POSITIONAL ARGS ###
nxm_link=$1; shift
if [ -z "$nxm_link" ]; then
zenity --ok-label=Exit --ellipsize --error --text \