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

DistMult Streambatcher #1

Closed
snash4 opened this issue May 3, 2020 · 2 comments
Closed

DistMult Streambatcher #1

snash4 opened this issue May 3, 2020 · 2 comments

Comments

@snash4
Copy link

snash4 commented May 3, 2020

Hi,
I followed your steps in running the DistMult. I got this error
File "src/main.py", line 182, in
main(args)
File "src/main.py", line 83, in main
train_batcher = StreamBatcher(args.data, 'train', args.batch_size, randomize=True, keys=input_keys, loader_threads=args.loader_threads)
File ".....HNE/Model/DistMult/src/spodernet/spodernet/preprocessing/batching.py", line 217, in init
log.error('Path {0} does not exists! Have you forgotten to preprocess your dataset?', config_path)
File "....HNE/Model/DistMult/src/spodernet/spodernet/utils/logger.py", line 106, in error
raise Exception(message.format(*args))
Exception: Path ...../.data/PubMed/train/hdf5_config.pkl does not exists! Have you forgotten to preprocess your dataset?
Exception ignored in: <bound method StreamBatcher.del of <spodernet.preprocessing.batching.StreamBatcher object at 0x7f4869e3b5c0>>
Traceback (most recent call last):
File ".....HNE/Model/DistMult/src/spodernet/spodernet/preprocessing/batching.py", line 268, in del
for worker in self.loaders:
AttributeError: 'StreamBatcher' object has no attribute 'loaders'

@xiaoyuxin1002
Copy link
Collaborator

Sorry, the order of preprocessing and execution was wrong.
The problem should be fixed now.
Thanks!

@snash4
Copy link
Author

snash4 commented May 4, 2020

thanks !

@snash4 snash4 closed this as completed May 4, 2020
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

2 participants