MidnightRunner commited on
Commit
644870a
·
verified ·
1 Parent(s): 9909d25

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -15
README.md CHANGED
@@ -69,18 +69,4 @@ 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.
73
-
74
- **⚠️ Quick Fix with ~.PT(s) in `ComfyUI/models/ultralytics`**
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
- ```
 
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.