MidnightRunner commited on
Commit
d5a9183
·
verified ·
1 Parent(s): 814c3cb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -1
README.md CHANGED
@@ -69,4 +69,18 @@ This whitelists set and allows safe loading with `weights_only=True`.
69
 
70
  Otherwise, never disable weights_only unless you 100% trust the file.
71
 
72
- Check [PyTorch's torch.load docs](https://pytorch.org/docs/stable/generated/torch.load.html) for more info.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
70
  Otherwise, never disable weights_only unless you 100% trust the file.
71
 
72
+ Check [PyTorch's torch.load docs](https://pytorch.org/docs/stable/generated/torch.load.html) for more info.
73
+
74
+ **Quick Fix with ~.PT(s) in `ComfyUI/models/`**
75
+ ```bash
76
+ find ~/ComfyUI/models/ultralytics -type f -name '*.pt' | while read file; do
77
+ echo "=== Loading: $file ==="
78
+ python3 <<EOF
79
+ import torch
80
+ # UNSAFE full load—only do this if you trust every .pt
81
+ checkpoint = torch.load(r"$file", weights_only=False)
82
+ print("✔️ Loaded:", r"$file")
83
+ print(" Keys:", list(checkpoint.keys()))
84
+ EOF
85
+ done
86
+ ```