Comments (6)
Can you try decreasing the batch size to 1, and then decreasing rnn hidden size to say, 128? 2GB is really very little.
from neuraltalk2.
The CPU error is because you're using my pretrained checkpoint, which was trained on GPU. Try running with CPU from scratch, should work ok.
from neuraltalk2.
adding -batch_size 1
fixed it! thanks a bunch!
yes, i just noticed the CPU/GPU thing. i tried moving the require
out of the if
but that just created another problem, apparently it's not that simple :)
from neuraltalk2.
ok, you also want to make batch size as large as you can fit, by the way, and you should expect to probably decrease the learning rate (if training).
from neuraltalk2.
i don't understand how you have time to be so helpful & encouraging, and work on a phd at the same time. thank you so much! :)
edit: for the record, -batch_size 8
is the highest i can go with the net you posted.
from neuraltalk2.
I was trying to train CPU-based model and encountered same OOM error on Ubuntu. I tried adjusting batch_size and It perfectly works right now. Thanks for the detailed explanation!
from neuraltalk2.
Related Issues (20)
- Replacing words in captions
- Missing file name HOT 1
- Few notes on the image test split of this repo.
- coco_preprocess.ipynb: print val.keys() ^ SyntaxError: invalid syntax HOT 1
- Is it possible to port this to Pytorch?
- Do you have Deep-Visual alignment cvpr 2015 implemented?
- Already captioned mscoco images
- cudnn problem HOT 3
- protobuf, loadcaffe, and hdf5 are also required for inference
- train.lua error , cuda runtime error (2) : out of memory HOT 1
- Wrong JPEG library version: library is 90, caller expects 80
- language_eval error HOT 5
- Good pretrained checkpoint model
- hi,do you think pytorch is better than torch?
- AssertionError: error: some caption had no words?
- Chinese image description, In the result, multiple words of the same type appear
- init.lua:235: Not a JPEG file: starts with 0x47 0x49 HOT 1
- train.lua run error
- how to run it in win10???
- DeepAI.org display is non-functional. Is this supposed to be the case? IDK.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuraltalk2.