We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b26fd9 commit 1ac8029Copy full SHA for 1ac8029
notebooks_jason/wandb_models_rename.py
@@ -12,12 +12,12 @@
12
model_base.mkdir(exist_ok=True, parents=True)
13
known_models = set()
14
for path in tqdm(list(model_base.glob("*.pth")), "Known models"):
15
- known_models.add(path.read_bytes())
+ known_models.add(hash(path.read_bytes()))
16
17
with tqdm(wandbs) as pbar:
18
for path in pbar:
19
pbar.set_postfix({})
20
- if path.read_bytes() in known_models:
+ if hash(path.read_bytes()) in known_models:
21
continue
22
cache = torch.load(path, map_location="cpu")
23
# if cache["run_config"]["experiment"]["p"] not in (7, 12):
0 commit comments