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

Training problem..... #62

Open
matiqul opened this issue Mar 14, 2018 · 9 comments
Open

Training problem..... #62

matiqul opened this issue Mar 14, 2018 · 9 comments

Comments

@matiqul
Copy link

matiqul commented Mar 14, 2018

When I train the system I got the following error. I am using single GPU. How I can solve this problem...?
Traceback (most recent call last):
File "/home/kunolab/Matiqul/Show-Attend-Tell/train.py", line 29, in
main()
File "/home/kunolab/Matiqul/Show-Attend-Tell/train.py", line 10, in main
data = load_coco_data(data_path='./data', split='train')
File "/home/kunolab/Matiqul/Show-Attend-Tell/core/utils.py", line 13, in load_coco_data
data['features'] = hickle.load(os.path.join(data_path, '%s.features.hkl' %split))
File "/usr/local/lib/python2.7/dist-packages/hickle.py", line 561, in load
py_container = _load(py_container, h_root_group)
File "/usr/local/lib/python2.7/dist-packages/hickle.py", line 674, in _load
py_subcontainer = _load(py_subcontainer, h_node)
File "/usr/local/lib/python2.7/dist-packages/hickle.py", line 681, in _load
subdata = load_dataset(h_group)
File "/usr/local/lib/python2.7/dist-packages/hickle.py", line 599, in load_dataset
return np.array(data)
MemoryError

@nayyeraafaq
Copy link

I had the same problem earlier but couldn't resolve it and moved ahead. I think it needs larger memory (48GB+). Do you have enough?

@matiqul
Copy link
Author

matiqul commented Mar 15, 2018

This is my GPU configuration. I think enough memory. But Still got this error.....
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.90 Driver Version: 384.90 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX TIT... Off | 00000000:01:00.0 On | N/A |
| 22% 37C P8 16W / 250W | 7760MiB / 12205MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1150 G /usr/bin/X 167MiB |
| 0 2212 G compiz 139MiB |
| 0 6050 C python 7440MiB |
+-----------------------------------------------------------------------------+

@HongyuanL
Copy link

Upgrade your memory to 64GB and you will be fine.

@SinDongHwan
Copy link

@HongyuanL to solve memory error, is there not the other methods?

@chaoyan1037
Copy link

@SinDongHwan If you work in Linux, you can also increase the swap space.

@arunarn2
Copy link

I have 64GB GeForce GTX1070 machine and I still see the same issue. I have increased the swap space using the instructions on this page (https://askubuntu.com/questions/178712/how-to-increase-swap-space) and still see the same issue.
Has anyone been able to run this on a GPU with similar configuration?

@Shanzaay
Copy link

have you guys got any luck in solving the memory error? On which line are you all getting the memory error?

@TangZwei
Copy link

chage type of fearure from float32 to float16, it can save many memory

@Shanzaay
Copy link

TangZwei can you explain prepro.py file to me. I mean why are we not simply extracting features only?

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

8 participants