Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in demo_patchVQ: Can't pickle local object #1

Open
mzalaki00 opened this issue May 17, 2022 · 0 comments
Open

error in demo_patchVQ: Can't pickle local object #1

mzalaki00 opened this issue May 17, 2022 · 0 comments

Comments

@mzalaki00
Copy link

hi
when i run
logger.remove()
logger.add(sys.stderr, level="SUCCESS")
dbinfo = load_dbinfo(JSON_FILE)
print('Extract 2d features')
PatchVQ.roipool(LegacyRoIPoolModel(), dbinfo, featname='paq2piq', bs=32, clip_size=1)
PatchVQ.soipool('paq2piq', dbinfo)

print('Extract 3d features')
PatchVQ.roipool(RoIPoolModel(backbone=r3d18_K_200ep), dbinfo, featname='r3d18', bs=1, clip_num=40, clip_size=16)
PatchVQ.soipool('r3d18', dbinfo)

in demo_patchVQ i get below error:

Extract 2d features
2022-05-17 10:51:26.742 | WARNING | fastiqa.paq2piq._roi_pool:init:128 - roipool: size = (2, 2), scale = 1/32
2022-05-17 10:51:28.190 | WARNING | fastiqa.bunch:setattr:213 - setattr roi_col not existed
2022-05-17 10:51:28.190 | WARNING | fastiqa.bunch:setattr:213 - setattr vid_id not existed
2022-05-17 10:51:28.190 | WARNING | fastiqa.bunch:setattr:213 - setattr split_mode not existed
Processing: G005: 0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\fastiqa\patchVQ.py", line 27, in
PatchVQ.roipool(LegacyRoIPoolModel(), dbinfo, featname='paq2piq', bs=32, clip_size=1)
File "C:\Users\fastiqa\fastiqa\patchvq\all.py", line 193, in roipool
e.run(process)
File "C:\Users\fastiqa\fastiqa\iqa_exp.py", line 191, in run
func(learn)
File "C:\Users\fastiqa\fastiqa\patchvq\all.py", line 186, in process
get_features(x, featname, bs=bs, vid_id=vid_id)
File "C:\Users\fastiqa\fastiqa\patchvq\all.py", line 61, in get_features
....
File "C:\Users\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'SingleVideo2MOS.get_block..'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant