torch / demos

Demos and tutorials around Torch7.
355 stars 301 forks source link

Help! CAN NOT LOAD more than 70 images? #59

Closed xiestone1992 closed 7 years ago

xiestone1992 commented 7 years ago

I simply run the load-images.lua and tried to load 150 images from another folder.

However, I found that my computer will be very slow when the loaded image number up to 70. Then my computer is dead. [ I added " print('Get #'..i) " in "-- load each image" for-loop to know the exact loaded number.]

-- Go over the file list: images = {} for i,file in ipairs(files) do -- load each image table.insert(images, image.load(file)) print('Get #'..i) end

I tried to reboot and even add "collectgarbage()", but none ot them worked.

If I just load a few images, like 10 or 20 images, then everything is perfect. I want to know how to fix this problem?