Skip to content

Commit 593da36

Browse files
committed
floats have no item()
1 parent 634be4c commit 593da36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/research_projects/lpl/lpl_sdxl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,8 +1402,8 @@ def compute_time_ids(original_size, crops_coords_top_left):
14021402
for layer_idx, stats in enumerate(lpl_fn.last_feature_stats):
14031403
log_data.update(
14041404
{
1405-
f"lpl/features/layer_{layer_idx}/mean": stats["mean"].item(),
1406-
f"lpl/features/layer_{layer_idx}/std": stats["std"].item(),
1405+
f"lpl/features/layer_{layer_idx}/mean": stats["mean"],
1406+
f"lpl/features/layer_{layer_idx}/std": stats["std"],
14071407
f"lpl/features/layer_{layer_idx}/outlier_ratio": stats.get(
14081408
"outlier_ratio", 0.0
14091409
),

0 commit comments

Comments
 (0)