Coder Social home page Coder Social logo

Comments (6)

haojin2 avatar haojin2 commented on August 16, 2024 1

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.

wweic avatar wweic commented on August 16, 2024

@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.

fast4break avatar fast4break commented on August 16, 2024

@wweic sure, I will try it asap

from neo-ai-dlr.

fast4break avatar fast4break commented on August 16, 2024

@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.

fast4break avatar fast4break commented on August 16, 2024

@haojin2 Thanks, problem solved and models run on pi.

from neo-ai-dlr.

wweic avatar wweic commented on August 16, 2024

thanks @haojin2 @fast4break .

from neo-ai-dlr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.