Skip to content

Is it possible enable multithreading in deepdream function? #34

@itsTeknas

Description

@itsTeknas

I've noticed that the actual deepdream function that does the work actually runs on a single thread. So no matter how powerful multicore processor you got, it will only use a very small portion of it.
I am a newbie in this field, can someone tell if its possible to have a multithreaded function ?

I executed htop inside the compute container and i got this... notice only core 1 is used and others are idle.

  1  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]     5  [                                                                     0.0%]
  2  [                                                                     0.0%]     6  [                                                                     0.0%]
  3  [                                                                     0.0%]     7  [                                                                     0.0%]
  4  [                                                                     0.0%]     8  [                                                                     0.0%]
  Mem[|||||||||||||||||||||||||||||||||||||||||||||||||             1140/2001MB]     Tasks: 7, 1 thr; 2 running
  Swp[|||||||||||||||||                                               103/460MB]     Load average: 1.17 1.06 0.87 
                                                                                     Uptime: 05:00:11

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
  528 root       20   0 1633M 1037M 42900 R 100. 51.8  0:42.06 python deepdream.py
  544 root       20   0 23020  3292  2632 R  0.7  0.2  0:00.01 htop
    1 root       20   0 17960     0     0 S  0.0  0.0  0:00.07 /bin/bash -c cd /opt/deepdream && ./process_images.sh 2>&1 > log.html
    6 root       20   0 17964     0     0 S  0.0  0.0  0:00.00 /bin/bash ./process_images.sh
    7 root       20   0 17980     0     0 S  0.0  0.0  0:00.00 /bin/bash ./process_images_once.sh
    9 root       20   0 17984  1916  1784 S  0.0  0.1  0:00.04 /bin/bash ./process_images_once.sh
  529 root       20   0 1633M 1037M 42900 S  0.0 51.8  0:00.00 python deepdream.py
  530 root       20   0 18168  3300  2844 S  0.0  0.2  0:00.09 bash





F1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions