Skip to content

Instantly share code, notes, and snippets.

@kyamagu
Last active June 17, 2019 20:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kyamagu/6cff70840c10ca374e069a3a7eb00cb4 to your computer and use it in GitHub Desktop.
Save kyamagu/6cff70840c10ca374e069a3a7eb00cb4 to your computer and use it in GitHub Desktop.
Example of Caffe2 fine-tuning
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paghdv
Copy link

paghdv commented Feb 14, 2018

Hey do you know why could I be getting:

File "/usr/local/caffe2/python/workspace.py", line 163, in CreateNet
StringifyProto(net), overwrite,
File "/usr/local/caffe2/python/workspace.py", line 189, in CallWithExceptionIntercept
return func(*args, **kwargs)
MemoryError: std::bad_alloc

while executing line:
workspace.CreateNet(train_model.net, overwrite=True)

@VanDavv
Copy link

VanDavv commented Aug 22, 2018

I'm also having std::bad_alloc error. @paghdv have you managed to make the code working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment