question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about DataPre.py

See original GitHub issue

Hi, @iyuge2 Thank you for your contribution to this project. I downloaded the data from the address you provided and ran it. It did achieve the same result as result-stat.

Then I download SIMS|MOSI|MOSEI raw data and use DatePre.py to generate features.pkl. But the processed data cannot be used for run.py.

Let’s take MOSI as an example(I download the raw data and use DataPre.py to process):

  1. The file you provided are aligned_50.pkl(367.3MB) and unaligned_50.pkl(554.2MB).
  2. I use DatePre.py to generate *.pkl for the MOSI dataset. Got features.pkl 2.8G, which is really bigger than your *.pkl.

Then I use features.pkl to run, but it failed…😭

Failure situation:

Error of 'list' object has no attribute 'astype'.

Then I change https://github.com/thuiar/MMSA/blob/b2e70bbd198ba8e8dc041f5e059c3baa2027b34a/data/load_data.py#L37-L39

to

self.labels = {
       'M': np.array(data[self.mode][self.args.train_mode+'_labels'], dtype=np.float32)
 }

But it didn’t work, we will get a new error of : RuntimeError: cublas runtime error : resource allocation failed at /opt/conda/conda-bld/pytorch_1565272279342/work/aten/src/THC/THCGeneral.cpp:216 There must be a problem with the DataPre.py generate data. I really don’t know how to solve it.

For the DataPre.py file, I only modified the path so that the data can be found for processing, and I have not changed other places. @iyuge2 Please help me…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
leijue222commented, Jul 22, 2021

I have succeeded with your previous version. If I apply the old version that ran successfully to the current version, it still fails. Or conversely, applying the new version of MISA to the old one is also a failure. And the error message is the same: RuntimeError: cublas runtime error : resource allocation failed at /opt/conda/conda-bld/pytorch_1565272279342/work/aten/src/THC/THCGeneral.cpp:216

0reactions
leijue222commented, Jul 23, 2021

This issue has too much redundant information, I put the simplified content after debugging in issue#23.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Science Interview Preparation — Data Pre-processing
In this post, we discuss interview questions on Pre-processing different types of data. Comment: Exploratory Data Analysis is…
Read more >
Exploring DataPrep: A Python Library For Data Preparation ...
DataPrep can be used to address multiple data-related problems, and the library provides numerous features through which every problem can ...
Read more >
Use Dataprep through API and Python language
Is that possible to interact with Dataprep through API or Python so I can execute transformations through my programs, instead need to login ......
Read more >
sfu-db/dataprep: Open-source low code data ... - GitHub
Open-source low code data preparation library in python. Collect, clean and visualization your data in python with a few lines of code.
Read more >
How to use Google Data Prep API using Python - Stack Overflow
If you open the Dataprep Console and navigate to Settings > Access Tokens you can click on Generate New Token . This will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found