Skip to content

Conversation

@rapotekhin
Copy link

No description provided.

@rapotekhin
Copy link
Author

Что тут было сделано:

  1. Убраны ненужные касты в инт, флоат и тп там, где они не нужны
  2. model.to(device) убран из инференса, это надо сделать один раз в момент инициализации
  3. функция preprocess() заменена на оригинал, аргумент label в неё никогда нигде не передавался
  4. добавлен везде speedup_numpy_unique()

outmask = np.flip(outmask, np.where(directions[[0, 4, 8]][::-1] < 0)[0])

return outmask.astype(np.uint8)
return outmask

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а это точно ничего не ухудшит/сломает?

def preprocess(img, label=None, resolution=[192, 192]):
imgmtx = np.copy(img)
lblsmtx = np.copy(label)
def preprocess(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ты тип убрал поддержку работы с label, потому что он не используется?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants