--
You received this message because you are subscribed to the Google Groups "BigDL User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigdl-user-group+unsubscribe@googlegroups.com.
To post to this group, send email to bigdl-user-group@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigdl-user-group/5431a45f-8351-40f9-b5c8-f9d785f8105a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HiIn a word, there's a Module.loadCaffe method to load caffe prototxt file and corresponding bin file to bigdl models.
You can see how it is used in the example(https://github.com/intel-analytics/BigDL/tree/master/spark/dl/src/main/scala/com/intel/analytics/bigdl/example/loadmodel). Specifically, it's at this line
On Thu, Apr 13, 2017 at 1:32 PM, Yiheng Wang <yih...@gmail.com> wrote:
HiPlease take a look at this example:
On Thu, Apr 13, 2017 at 12:52 PM, <zaiza...@gmail.com> wrote:
hello,I just learn about bigdl.Now i have a problemhow to use Use BigDL to load the pre-trained Caffe model into the Spark program?thanks
--
You received this message because you are subscribed to the Google Groups "BigDL User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigdl-user-gro...@googlegroups.com.
To post to this group, send email to bigdl-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigdl-user-group/5431a45f-8351-40f9-b5c8-f9d785f8105a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bigdl-user-group+unsubscribe@googlegroups.com.
To post to this group, send email to bigdl-user-group@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigdl-user-group/a6846b18-4f63-4fb6-9607-93fbcacce8b9%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "BigDL User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bigdl-user-group/gBCmfLhTh2c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bigdl-user-gro...@googlegroups.com.
To post to this group, send email to bigdl-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigdl-user-group/cd93d22c-b565-430d-b28e-8ddda42cbd7c%40googlegroups.com.
mkdir train mv ILSVRC2012_img_train.tar train/ cd train tar -xvf ILSVRC2012_img_train.tar rm -f ILSVRC2012_img_train.tar find . -name "*.tar" | while read CLASS_NAME ; do mkdir -p "${CLASS_NAME%.tar}"; tar -xvf "${CLASS_NAME}" -C "${CLASS_NAME%.tar}"; done rm *.tar cd ../ mkdir val mv ILSVRC2012_img_val.tar val/ cd val tar -xvf ILSVRC2012_img_val.tar cat classes.lst | while read CLASS_NAME; do mkdir -p ${CLASS_NAME}; done cat img_class.lst | while read PARAM; do mv ${PARAM/ n[0-9]*/} ${PARAM/ILSVRC*JPEG /}; done rm ILSVRC2012_img_val.tar
And then use following script to create sequence file:
dist/bin/bigdl.sh -- java -cp dist/lib/bigdl-VERSION-jar-with-dependencies-and-spark.jar \ com.intel.analytics.bigdl.models.utils.ImageNetSeqFileGenerator \ -f <imagenet_folder> -o <output_folder> -p <cores_number> -r -v
mkdir val mv ILSVRC2012_img_val.tar val/ cd val tar -xvf ILSVRC2012_img_val.tar cat classes.lst | while read CLASS_NAME; do mkdir -p ${CLASS_NAME}; done cat img_class.lst | while read PARAM; do mv ${PARAM/ n[0-9]*/} ${PARAM/ILSVRC*JPEG /}; done rm ILSVRC2012_img_val.tar
To view this discussion on the web visit https://groups.google.com/d/msgid/bigdl-user-group/09dedea8-50e7-46f1-b2cf-780da045e609%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to bigdl-user-group+unsubscribe@googlegroups.com.
To post to this group, send email to bigdl-user-group@googlegroups.com.