mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
Minor tweaks
This commit is contained in:
parent
213b6dfd29
commit
62fa38557e
@ -5,7 +5,7 @@ from typing import List, Optional, Union
|
||||
|
||||
from pydantic import BaseModel, Field, computed_field
|
||||
|
||||
from batdetect2.train.train_utils import (
|
||||
from batdetect2.train.legacy.train_utils import (
|
||||
get_genus_mapping,
|
||||
get_short_class_names,
|
||||
)
|
||||
|
@ -2,7 +2,7 @@ import torch
|
||||
from hypothesis import given
|
||||
from hypothesis import strategies as st
|
||||
|
||||
from batdetect2.models import ModelConfig, ModelType, get_backbone
|
||||
from batdetect2.models import ModelConfig, ModelType, build_architecture
|
||||
|
||||
|
||||
@given(
|
||||
@ -20,7 +20,7 @@ def test_model_can_process_spectrograms_of_any_width(
|
||||
|
||||
input = torch.rand([1, 1, input_height, input_width])
|
||||
|
||||
model = get_backbone(
|
||||
model = build_architecture(
|
||||
config=ModelConfig(
|
||||
name=model_type, # type: ignore
|
||||
input_height=input_height,
|
||||
|
Loading…
Reference in New Issue
Block a user