Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ScaledYOLOv4 #11

Merged
merged 2 commits into from
Jan 2, 2024
Merged

add ScaledYOLOv4 #11

merged 2 commits into from
Jan 2, 2024

Conversation

GreatV
Copy link
Contributor

@GreatV GreatV commented Jan 1, 2024

pytorch 无法导出
paddle 可以导出

AssertionError: Mutating module attribute training during export.

from user code:
   File "/home/greatx/repos/ScaledYOLOv4/models/yolo.py", line 109, in forward
    return self.forward_once(x, profile)  # single-scale inference, train
  File "/home/greatx/repos/ScaledYOLOv4/models/yolo.py", line 129, in forward_once
    x = m(x)  # run
  File "/home/greatx/repos/ScaledYOLOv4/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/greatx/repos/ScaledYOLOv4/models/yolo.py", line 34, in forward
    self.training |= self.export

Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information

Copy link
Contributor

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow

@SigureMo SigureMo merged commit 5d6545e into PaddleJitLab:develop Jan 2, 2024
@GreatV GreatV deleted the add_scaledyolov4 branch January 3, 2024 07:51
@SigureMo SigureMo added the HappyOpenSource 快乐开源活动issue与PR label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants