--
You received this message because you are subscribed to a topic in the Google Groups "Caffe Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/caffe-users/BqegxsB0UxE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to caffe-users+unsubscribe@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/5119f005-557f-445b-b403-573171372268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the response. I think there is a misunderstanding. Perhaps I should have been more clearer, Sorry!What I originally meant was: I have two nets which are trained alternatively (N iters for the Net1 and N iters for Net2 and this cycle repeats each iteration).Net1 and Net2 share a few layers. Now when I start the training in pycaffe, Is it possible to use different gpu's for Net1 and Net2 ?
On Tue, Feb 14, 2017 at 1:59 PM, Sai Kiran <saikira...@gmail.com> wrote:
Please check the below screenshot. You can create multiple notebooks and train different networks on different gpus. Hope this helps you.
On Tue, Feb 14, 2017 at 8:48 PM, swami <swam...@gmail.com> wrote:
That's interesting. Can you explain (pseudocode is sufficient) how you made that happen using pycaffe ?
On Tue, Feb 14, 2017 at 8:19 AM, sk06 <saikira...@gmail.com> wrote:
Hi,Yes, using Jupyter Notebook, you can load different nets in different gpus and you can simultaneously train the nets. I use six gpus for training six different nets and two gpus for testing two different nets simultaneously.
On Tuesday, February 14, 2017 at 11:12:25 AM UTC+5:30, Swami wrote:Is it possible to load different nets (and their solvers) in different gpu's, say using pycaffe ?
--
You received this message because you are subscribed to a topic in the Google Groups "Caffe Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/caffe-users/BqegxsB0UxE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/5119f005-557f-445b-b403-573171372268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
------SwamiSaikiran
----Swami
Here, it seems like using pycaffe, it is not possible to instantiate two GPUs in the same script.
I get an error saying "invalid resource handle", but of course each gpu device is indeed operational.
Am I missing something trivial here ? Are you able to accomplish something like this ?
# Import and setup the caffe environment (adjust to your actual location)
caffe_root = '/usr/local/src/caffe'
sys.path.insert(0, caffe_root + 'python')
import caffe as caffe1
import caffe as caffe2# Setup the Caffe Environment
caffe1.set_device(0)
caffe1.set_mode_gpu()caffe2.set_device(1)
caffe2.set_mode_gpu()SPROTO1 = sys.argv[1]
SMODEL1 = sys.argv[2]SPROTO2 = sys.argv[3]
SMODEL2 = sys.argv[4]# Read in the network
net1 = caffe1.Net(SPROTO1, SMODEL1, caffe1.TRAIN)
net2 = caffe2.Net(SPROTO2, SMODEL2, caffe2.TRAIN)# Put your training stuff here