Source Code for my blog post: A Practical Introduction to Deep Learning with Caffe and Python
#Visit my Blog : http://adilmoujahid.com
Source code for blog post: A Practical Introduction to Deep Learning with Caffe and Python
Home Page: http://adilmoujahid.com/posts/2016/06/introduction-deep-learning-python-caffe/
Source Code for my blog post: A Practical Introduction to Deep Learning with Caffe and Python
#Visit my Blog : http://adilmoujahid.com
the ami you included in your tutorial is not available when i searched for it : "Please note, that the AMI recommended in the guide is no longer available. I prepared a new AMI (ami-64d31209) with all the necessary software installed."
liuxiao@liuxiao-ThinkStation-D30:/$ /home/liuxiao/fangxu/caffe/build/tools/compute_image_mean -backend=lmdb /home/liuxiao/fangxu/deeplearning-cats-dogs-tutorial/input/train_lmdb /home/liuxiao/fangxu/deeplearning-cats-dogs-tutorial/input/mean.binaryproto
F0426 01:36:32.813380 32339 db_lmdb.hpp:15] Check failed: mdb_status == 0 (2 vs. 0) No such file or directory
*** Check failure stack trace: ***
@ 0x7fbf098ebdaa (unknown)
@ 0x7fbf098ebce4 (unknown)
@ 0x7fbf098eb6e6 (unknown)
@ 0x7fbf098ee687 (unknown)
@ 0x7fbf09db8111 caffe::db::LMDB::Open()
@ 0x40209e main
@ 0x7fbf088f7f45 (unknown)
@ 0x402ada (unknown)
@ (nil) (unknown)
已放弃 (核心已转储)
I get the following error
Creating train_lmdb
Traceback (most recent call last):
File "create_lmdb.py", line 64, in
in_db = lmdb.open(train_lmdb, map_size=int(1e12))
FileNotFoundError: [Errno 2] No such file or directory: '~/project/tp/deeplearning-cats-dogs-tutorial/input/train_lmdb'
Can you tell me how to use googlenet to achieve cat and dog classification?
Thank for yours work.
I have made a big change of your code to make it more modular, and can be used in real work.
The code is in this github
I'm trying to execute "plot_learning_curve.py"
to plot the learning curve but it gives me this error message
AttributeError: 'Series' object has no attribute 'find'
Could you please help me?
I am new to this framework. I am able to Data preparation step by creating the lmdb files. While generating image mean, received below error. Please help
/opt/caffe/bin/compute_image_mean -backend=lmdb /home/pduraisamy/test/Deeplearning-cats-dogs-tutorial/input/train_lmdb /home/pduraisamy/test/Deeplearning-cats-dogs-tutorial/input/mean.binaryproto
terminate called after throwing an instance of 'std: :bad_alloc'
what(): std: :bad_alloc
Aborted
What am I doing wrong here? thanks for your help
Hi, Adil
Could you give advice how to customize this code for car make model classification?
https://aws.amazon.com/marketplace/pp/B06VSPXKDX
It doesn't cost anything to use the AMI.
Hey Adil, any plan on making a python3 version of this?
in file code/create_lmdb.py
line 85: for in_idx, img_path in enumerate(train_data):
line 66: for in_idx, img_path in enumerate(train_data):
So, what's the difference between validation_lmdb and train_lmdb?
If they have the same content, what's the point of creating two same lmdb files?
Am I missing something?
What more, thank you for your tutorial!
run the following command
/home/habib/deeplearning-cats-dogs-tutorial/input/mean.binaryproto
get this error
bash: /home/habib/deeplearning-cats-dogs-tutorial/input/mean.binaryproto: No such file or directory
please guide
I am trying to get familiar with python and caffe and tried to run this code on my computer, there are a few problems and I wanted to know that I should change which parts of the code?
like when I get to this part of the code:
"in_db = lmdb.open(train_lmdb, map_size=int(1e12))
with in_db.begin(write=True) as in_txn:
for in_idx, img_path in enumerate(train_data):
if in_idx % 6 == 0:
continue
img = cv2.imread(img_path, cv2.IMREAD_COLOR)
img = transform_img(img, img_width=IMAGE_WIDTH, img_height=IMAGE_HEIGHT)
if 'cat' in img_path:
label = 0
else:
label = 1
datum = make_datum(img, label)
in_txn.put('{:0>5d}'.format(in_idx), datum.SerializeToString())
print '{:0>5d}'.format(in_idx) + ':' + img_path
in_db.close()"**
I receive this error:
"Traceback (most recent call last):
File "/home/behnam/.local/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2878, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
in_db = lmdb.open(train_lmdb, map_size=int(1e12))
OSError: [Errno 2] No such file or directory: '/home/ubuntu/deeplearning-cats-dogs-tutorial/input/train_lmdb' "
I'm using Pycharm and python 2.7 on ubuntu.
I tried to change the path of "train_lmdb" but it doesn't work.
I do not see the Train_lmdb file in the mentioned directory, what can I do? where is this file?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.