Ver código fonte

Fix tf.py `LoadImages()` dataloader return values (#5455)

modifyDataloader
Glenn Jocher GitHub 2 anos atrás
pai
commit
042f02ff9b
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      models/tf.py

+ 1
- 1
models/tf.py Ver arquivo

@@ -411,7 +411,7 @@ class AgnosticNMS(keras.layers.Layer):

def representative_dataset_gen(dataset, ncalib=100):
# Representative dataset generator for use with converter.representative_dataset, returns a generator of np arrays
for n, (path, img, im0s, vid_cap) in enumerate(dataset):
for n, (path, img, im0s, vid_cap, string) in enumerate(dataset):
input = np.transpose(img, [1, 2, 0])
input = np.expand_dims(input, axis=0).astype(np.float32)
input /= 255.0

Carregando…
Cancelar
Salvar