18 lines
763 B
Python
18 lines
763 B
Python
import pickle
|
|
import numpy as np
|
|
from NormWear.pretrain_pipeline import dataset
|
|
import os
|
|
import tqdm
|
|
import torch
|
|
# np.set_printoptions(threshold=np.inf) # 禁用省略显示
|
|
if __name__ == "__main__":
|
|
with open(r"/home/bml/storage/mnt/v-044d0fb740b04ad3/org/wearable_data/data/ecgbalance3/sample_for_downstream/001d7c086ca9487cb3a4437df3492461_20240315223112_chunk_0.pkl", "rb") as f:
|
|
sample = pickle.load(f,encoding="latin1")
|
|
# del sample["cwt"]
|
|
# with open(r"C:\Users\yilv\Desktop\normwear\data\pretrain\dalia\00002384848d4e789cad2bc66153e519_20230615064144_seg1.pkl", 'wb') as f:
|
|
# pickle.dump(sample, f)
|
|
print(type(sample)) # 示例输出 (2, 1000) → n_var=2
|
|
print(sample)
|
|
|
|
# print(sample['cwt'].shape)
|