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

AssertionError: Checksum for gee_v1.tar.gz #7

Closed
jeremychang8 opened this issue Feb 2, 2022 · 5 comments
Closed

AssertionError: Checksum for gee_v1.tar.gz #7

jeremychang8 opened this issue Feb 2, 2022 · 5 comments

Comments

@jeremychang8
Copy link

I was trying to run the "eval_emocause.py", however, I got the following error:

AssertionError: Checksum for gee_v1.tar.gz from
1TEKp3YRowAZju4UPXOSufqzU6j6_Z4wy
does not match the expected checksum:
06d9b640bd7fa92528c6f3f4cd7715db593a0c1d3284151ba7f615f0d9c4989c != af0584e3c376dd364af0bbc122fea7303b9af52556f4dcbb0fbe8d6a136c0b2a

I followed all the instruction, including the environment creating. Not sure where it went wrong.

Btw, I'm really new to the ParlAI. Would you mind to give me some simple instructions for getting the emotional words with GEE?
For example, can I create the agent by using "DisplayModel.main"?
How to use the "reason_emotion_causes" function after creating the agent?

I am looking forward to your reply, many thanks!

@skywalker023
Copy link
Owner

Hello Jeremy!

Have you tried the installation step-by-step?
I tried it myself with a fresh installation and there were no errors!
Perhaps you can give it a try again?
There can be errors if the download was suspended due to various reasons :)

I'm not sure I can give you exact guides for using the ParlAI, but I recommend you to use the function below for using GEE to infer emotion cause words!

def gee_cause_inference(self, batch):

Hope this helps!

@jeremychang8
Copy link
Author

I've been trying this project since last time.
The hashcode of the model seems to keep changing every time it is downloaded.
I have no clue whether the code or Google drive cause this issue.

AssertionError: Checksum for gee_v1.tar.gz from
1TEKp3YRowAZju4UPXOSufqzU6j6_Z4wy
does not match the expected checksum:
06d9b640bd7fa92528c6f3f4cd7715db593a0c1d3284151ba7f615f0d9c4989c != af0584e3c376dd364af0bbc122fea7303b9af52556f4dcbb0fbe8d6a136c0b2a

AssertionError: Checksum for gee_v1.tar.gz from
1TEKp3YRowAZju4UPXOSufqzU6j6_Z4wy
does not match the expected checksum:
09c8aaec490c744b728bc67277fef8c6224d1ad9ab1fe036c5eddb9653b2d233 != af0584e3c376dd364af0bbc122fea7303b9af52556f4dcbb0fbe8d6a136c0b2a

What I have tried:

  • Delete the data folder after it failed.
  • Recreate the conda environment.
  • Pip install update the Parlai.

My solution is download the GEE model and dataset manually, and place it in the right directory.
Then, create my own .built flag to bypass the Checksum.
Hope it would help.

@skywalker023
Copy link
Owner

I'm sorry to hear that you still have difficulty downloading the model 😢
Have you checked the file size of the zipped file?

It might be a google drive issue because the GEE model is pretty large.
I modified the download link just to make sure the download starts automatically right away.
Can you please give it another try and see if the issue is resolved?

@skywalker023 skywalker023 reopened this Mar 22, 2022
@jeremychang9
Copy link

Thanks for the reply! The issue has not been resolved yet.
The size of the downloaded file, gee_v1.tar.gz, is 2.15kb.

File "focused-empathy-main/agents/gee_agent.py", line 31, in init
download(opt['datapath'])
│ └ {'init_opt': None, 'allow_missing_init_opts': False, 'task': 'tasks.emocause', 'download_path': None, 'loglevel': 'info', 'datat...
└ <function download at 0x7f2b30875b90>
File "/focused-empathy-main/zoo/gee/build.py", line 32, in download
downloadable_file.download_file(dpath)
│ └ '/media/hd03/jeremychang8_data/focused-empathy-main/data/models/gee'
└ <parlai.core.build_data.DownloadableFile object at 0x7f2b308738d0>

The Facebook research team seems to have the similar problem:
facebookresearch/mmf#261
They bypass the checksum as the solution.

@skywalker023
Copy link
Owner

https://drive.google.com/uc?id=1TEKp3YRowAZju4UPXOSufqzU6j6_Z4wy&export=download&confirm=t
I replaced the GEE download link with the above.
If you click the address, the download will start right away.
I personally bumped into the same issue as you and got it solved with the link above!

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

3 participants