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

computer dead when running extract_feats() #13

Open
Acder777 opened this issue Jan 10, 2019 · 0 comments
Open

computer dead when running extract_feats() #13

Acder777 opened this issue Jan 10, 2019 · 0 comments

Comments

@Acder777
Copy link

I write a main function by myself to run extract_feats(),and input required video files.But after print "VGG Network loaded",my computer becomes very slow,and no other print(My computer runs on CPU).

So I don't know if it is normal or if there's something wrong with my operation.

screenshot from 2019-01-10 11 30 29

here is my main()

if name=="main":

L = []

root = '/home/zzy/Downloads/videos'

for root, dirs, files in os.walk(root):

    for file in files:

        str = root + '/' + file

        L.append(str)

extract_feats(L,2)`

I change the code that make my computer dead to see more clearly:

       for num,frame in enumerate(vid):

        print num

        frame = skimage.transform.resize(frame,[224,224])

        if len(frame.shape)<3:

            frame = np.repeat(frame,3).reshape([224,224,3])

        curr_frames.append(frame)`

when the num become 4 thousand my computer dead.

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

1 participant