Skip to content

Commit

Permalink
del: 删除多余文件
Browse files Browse the repository at this point in the history
  • Loading branch information
pleb631 committed Mar 23, 2024
1 parent 351df79 commit f6a734b
Show file tree
Hide file tree
Showing 317 changed files with 33 additions and 97,620 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PicoDet:
backbone: LCNet
neck: CSPPAN
head: PicoHead
nms_cpu: True
#nms_cpu: True

LCNet:
scale: 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PicoDet:
backbone: LCNet
neck: CSPPAN
head: PicoHead
nms_cpu: True
#nms_cpu: True

LCNet:
scale: 1.0
Expand Down
26 changes: 25 additions & 1 deletion pdfdet/models/Paddle/paddle_cdla.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,32 @@

from pdfdet.models.baseModel import base_module
from ppdet.core.workspace import load_config
from ppdet.engine import Trainer
from ppdet.engine import Trainer as Trainer1
from ppdet.core.workspace import create

class Trainer(Trainer1):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)

def predict(self,
images):

self.dataset.set_images(images)
loader = create('TestReader')(self.dataset, 0)

# Run Infer
self.model.eval()
results = []
for step_id, data in enumerate(loader):
# forward
outs = self.model(data)

for key, value in outs.items():
if hasattr(value, 'numpy'):
outs[key] = value.numpy()
results.append(outs)

return results

class paddle_cdla_model(base_module):
def __init__(self, *args, **kwargs) -> None:
Expand Down
4 changes: 2 additions & 2 deletions pdfdet/models/Paddle/paddle_pub.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
parent_path = os.path.abspath(os.path.join(__file__, *([".."] * 1)))
sys.path.insert(0, parent_path)

from .paddle_cdla import paddle_cdla_model
from .paddle_cdla import paddle_cdla_model,Trainer
from ppdet.core.workspace import load_config
from ppdet.engine import Trainer



class paddle_pub_model(paddle_cdla_model):
Expand Down
18 changes: 0 additions & 18 deletions pdfdet/models/Paddle/ppdet/__init__.py

This file was deleted.

15 changes: 0 additions & 15 deletions pdfdet/models/Paddle/ppdet/core/__init__.py

This file was deleted.

13 changes: 0 additions & 13 deletions pdfdet/models/Paddle/ppdet/core/config/__init__.py

This file was deleted.

248 changes: 0 additions & 248 deletions pdfdet/models/Paddle/ppdet/core/config/schema.py

This file was deleted.

Loading

0 comments on commit f6a734b

Please sign in to comment.