Skip to content

ValueError: Range cannot be empty (low >= high) unless no samples are taken #1

@mengyaaa

Description

@mengyaaa

/home/lab226/Desktop/mocogan-hong/models.py:147: UserWarning: nn.init.xavier_uniform is now deprecated in favor of nn.init.xavier_uniform_.
init.xavier_uniform(params)
/home/lab226/Desktop/mocogan-hong/models.py:157: UserWarning: nn.init.constant is now deprecated in favor of nn.init.constant_.
init.constant(params, 0)
!!!!!!!!!!!!!!!!!!
-12
Traceback (most recent call last):
File "train.py", line 211, in
real_videos = random_choice()
File "train.py", line 79, in random_choice
video = torch.Tensor(trim(video))
File "train.py", line 63, in trim
start = np.random.randint(0, video.shape[1] - (T+1))
File "mtrand.pyx", line 992, in mtrand.RandomState.randint
ValueError: Range cannot be empty (low >= high) unless no samples are taken
can any one help me?thx~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions