Comments (6)
Hello,
I just used your code to export the resnet50_v1 model from GluonCV and managed to get a successful compilation job on my side. Note that you're using layout='HWC'
when you're exporting the model, so you should specify the input configuration to be {'data': (1, 224, 224, 3)}
, and you should do the same for the TF model if it's in NHWC format.
Please let me know if you ever encounter any more problems with compiling models. Thanks!
Hao
from neo-ai-dlr.
@fast4break We looked at the model you use and think it's because its format might not be supported by Neo(the models were last updated on 2016-10-21
, which means it was generated by a MXNet version at that time). Is it possible for you to try latest Gluon model?
from neo-ai-dlr.
@wweic sure, I will try it asap
from neo-ai-dlr.
@wweic Could not find pretrained Gluon models, so I use the following codes to generate .params and .json files:
net = gcv.model_zoo.get_model('resnet50_v1', pretrained=True) export_block('resnet50_v1', net, preprocess=True, layout='HWC')
Compress two files into a .tar.gz file and upload to s3, use Sagemaker console to compile the model, failed with following error:
Client Error: InputConfiguration: Check 1. Input names and shapes matches with trained model. 2. If you are compiling MXNet model, make sure .params file only contains model weights.
I also tried a tensorflow model http://download.tensorflow.org/models/official/20181001_resnet/savedmodels/resnet_v1_fp16_savedmodel_NHWC.tar.gz
Compress the .pb file and the variables directory into a .tar.gz file and upload to s3, compile from sagemaker console, failed with the following error:
Unexpected error during compilation
from neo-ai-dlr.
@haojin2 Thanks, problem solved and models run on pi.
from neo-ai-dlr.
thanks @haojin2 @fast4break .
from neo-ai-dlr.
Related Issues (20)
- dlr 1.7.0 pip wheel for x86_64 target HOT 1
- importing dlr prodcuing error
- CudaLaunchError : CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES
- "make install" is not supported (CMAKE_INSTALL_PREFIX) HOT 1
- Neo, XGBoost, and ONNX
- CUDA driver version is insufficient for CUDA runtime version HOT 1
- Failed to initialize Lambda runtime due to exception: No module named 'dlr' HOT 1
- Unhashable type: dict
- How to get accuracy using dlr runtime??
- SetDLROutputTensorZeroCopy
- Can we add treelite specific backend? HOT 1
- DLR Building on Jetson Device Throws unhandled errors HOT 2
- Jetson Xavier Inference Crashes on TRT8 HOT 3
- A question about GIL
- I am Building on a BeagleBone AI-64 and Receiving the Below Errors... HOT 3
- Cannot disable Phone Home from read-only filesystem
- Planned support for Neuron runtime?
- Not working with jetpack 4.6 HOT 1
- Segmentation fault (core dumped) on the Jetson Nano
- Jetpackt 4.6 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo-ai-dlr.