question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid argument: warmup setting expects n bytes

See original GitHub issue

Description

Hi, I am trying to set up some warm up input files for my TensorFlow model, but I am running into the following error:

E0715 02:08:56.141822 1 model_repository_manager.cc:970] failed to load 'efficientdet_graphdef' version 3: Invalid argument: warmup setting expects 6220800 bytes, but the data provided from img.pngonly has 4080549 bytes

Is it necessary for the file size of the image to be the same as the product of the dims specified in the model config?

This is the image I am trying to send for warm up: https://user-images.githubusercontent.com/11736571/77320690-099af300-6d37-11ea-9d86-24f14dc2d540.png

Triton Information

I am using Triton v2.0.0. I built the Triton container locally (only change was setting the Triton minimum compute capability to 3.7).

Model Config

name: "efficientdet_graphdef"
platform: "tensorflow_graphdef"
max_batch_size: 1
input [
    {
        name: "image_arrays"
        data_type: TYPE_UINT8
        format: FORMAT_NHWC
        dims: [ -1, -1, 3 ]
    }
]
output [
    {
        name: "detections"
        data_type: TYPE_FP32
        dims: [ -1, 7 ]
    }
]
instance_group [
    {
        kind: KIND_GPU
        count: 1
        gpus: [ 0 ]
    }
]
model_warmup [
    {
        name: "warmup_file"
        batch_size: 1
        inputs: {
            key: "input"
            value: {
                data_type: TYPE_UINT8
                dims: [ 1080, 1920, 3 ]
                input_data_file: "img.png"
            }
        }
    }
]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GuanLuocommented, Apr 26, 2022

@masguit42 What is the error message that you received? And do you mind to create a separate issue for your questions?

1reaction
GuanLuocommented, Jul 15, 2020

As stated here, the file must contain raw data for the inputs. Base on the config you provided, it is data for UINT8 matrix with shape [1080, 1920, 3], but the file you provided is a png file, you should preprocess your image to the desired form

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid argument: warmup setting expects n bytes · Issue #1796
I am using Triton v2.0.0. I built the Triton container locally (only change was setting the Triton minimum compute capability to 3.7). Model ......
Read more >
Bug #1837035 “memcg_stat_rss from controllers in ubuntu_ltp fail ...
This issue was spotted on an i386 node "pepe" with Disco kernel, it failed with: memcg_process: shmget() failed: Invalid argument
Read more >
Advanced C Programming :: HW15 - Purdue Engineering
In this exercise, you will write code to read, write, and crop BMP ... The header has 54 bytes, which are divided into...
Read more >
A Subtle Gotcha with Azure Deployment Slots and ASP.NET ...
A custom warm-up is a URL that Azure will hit after code is deployed to the offline deployment slot or slots. This gives...
Read more >
Invalid argument in cudaMemcpy3D using width in bytes?
cudaExtent t_extent = make_cudaExtent(NCOLS, NROWS, DEPTH);. which does not produce any error and the test work as expected. I'm wondering if I ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found