Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
f0a8734
temp work -> defined basic structure for feedback on storage side
j2zhao Apr 2, 2020
a4517bc
working on feadbackio class
j2zhao Apr 2, 2020
e22cff9
fix typo
swjz Apr 3, 2020
fabb825
add initial Hwang support for VideoStream
swjz Apr 3, 2020
db252ef
updated headers
j2zhao Apr 3, 2020
443d08c
begin pipeline
j2zhao Apr 4, 2020
d9e629b
begin to edit streams
j2zhao Apr 4, 2020
8a52e6b
modified pipeline
j2zhao Apr 10, 2020
6703720
sw's version of Pipeline
swjz Apr 8, 2020
33639fa
merge streams.py into struct.py and rename Operator to VideoStreamOpe…
swjz Apr 8, 2020
cb27324
add DataStreamOperator class
swjz Apr 8, 2020
0182f26
CVVideoStream -> OpenCVVideoStream
swjz Apr 8, 2020
caa5855
ideas for full_manager.py
swjz Apr 8, 2020
907d27a
Pipeline for DataQueue
swjz Apr 11, 2020
d7e5252
large pipeline API update
j2zhao Apr 11, 2020
1ac1c8e
merged large API changes
j2zhao Apr 11, 2020
fc54a90
small design changes for flexibility
j2zhao Apr 11, 2020
2d0e399
Changed PipelineOperator to Operator
j2zhao Apr 11, 2020
bcf5f5b
add hwang materialization
swjz Apr 21, 2020
07e8ed6
starting rework of put
j2zhao Apr 23, 2020
b1cd2b1
small changes
j2zhao Apr 23, 2020
3928558
working on storage + cachestream class
j2zhao Apr 23, 2020
d7df172
more work up updating storage manager
j2zhao Apr 24, 2020
c16a6fe
finished new FullManager structure
j2zhao Apr 24, 2020
c1929ea
old_changes
May 22, 2020
3f02a44
initial bug fixes - more to come
Jun 29, 2020
8b84f8e
large restructuring
Jun 29, 2020
3159ac3
bug fixes
Jun 30, 2020
c5b3c3a
finished this round of debugging
Jul 2, 2020
6921713
miris test
Jul 2, 2020
019a5ba
bug fixes
Jul 2, 2020
707718b
add logs for put
swjz Jul 3, 2020
3e46b00
test miris bug fixes
Jul 14, 2020
5cb4116
merge conflicts
Jul 14, 2020
ba06d80
more miris test fixes
Jul 14, 2020
3645d8c
more updates
Jul 22, 2020
9cf2986
testing files
Jul 24, 2020
5208376
latency tests
Aug 14, 2020
51edaeb
2 videos required to use CVVideoStreams
swjz Aug 15, 2020
e2faeda
full pipeline design changes
Aug 31, 2020
ab428b9
merge changes
Aug 31, 2020
e48e410
debugging streams, in process video_put
Sep 1, 2020
82fa0a4
finished pipeline logic, only need to debug
Sep 1, 2020
66ca9a1
more pipeline changes
Sep 16, 2020
b2286b4
ingestion should be working now
Sep 17, 2020
270a68f
miris tested
Sep 18, 2020
c0f1711
miris batch test
Sep 18, 2020
766273e
small fix
Sep 18, 2020
64b3857
moar bug fixes
Sep 18, 2020
f3575e1
change parameters
Sep 18, 2020
b48751c
small bug fix
Sep 18, 2020
44bbf1f
removed debug line
Sep 18, 2020
3a33334
added better logging
Sep 18, 2020
19b9954
cleanup + iot
Oct 2, 2020
c8237c4
bug fix on operators
Jan 23, 2021
11c20fc
partitioning start
Jan 25, 2021
6669212
add distributed postgres support to feedback branch
swjz Jan 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified .github/workflows/pytest.yml
100644 → 100755
Empty file.
8 changes: 8 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,11 @@ train/
ssd_mobilenet_v1_coco_2017_11_17/**
mscoco_label_map.pbtxt

# random video directories
miris_10/*
output.mkv
sample1/*
sample2/*
*.txt
deprecated_files/*
batch*
Empty file modified INSTALL.md
100644 → 100755
Empty file.
File renamed without changes.
Empty file modified LICENSE
100644 → 100755
Empty file.
69 changes: 0 additions & 69 deletions README.md

This file was deleted.

Empty file modified cleandir.sh
100644 → 100755
Empty file.
Empty file modified deeplens/__init__.py
100644 → 100755
Empty file.
64 changes: 64 additions & 0 deletions deeplens/cache_streams.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import json
from deeplens.utils.error import MissingIndex
from deeplens.streams import *

class CacheStream(DataStream):
def __init__(self, name, operator):
super().__init__(name)
self.data = []
self.index = 0
self.keep_all = False
self.operator = operator

#only used by GraphManager -> to return results
#if you need to keep some datastream, set the results parameter on GraphManager run
def set_keep_all(self):
self.keep_all = True

def add_iter(self, op_name):
self.iters[op_name] = -1
return self

def next(self, op_name):
if op_name not in self.iters:
raise StopIteration()
self.iters[op_name] += 1
i = self.iters[op_name]
while True:
if i < self.index:
raise MissingIndex('Cache index not saved')
if i < self.index + len(self.data):
break
try:
next(self.operator)
except StopIteration:
del self.iters[op_name]
raise StopIteration()

min_index = min(self.iters.values())
if not self.keep_all:
if min_index == i:
while self.index < i:
self.index += 1
del self.data[0]
return self.data[i - self.index]

def insert(self, value):
self.data.append(value)

def all(self, value):
return self.data
@staticmethod
def init_mat():
return []

@staticmethod
def append(data, prev):
return prev.append(data)

@staticmethod
def materialize(data, fp = None):
if not fp:
return json.dumps(data)
else:
return json.dump(data, fp)
36 changes: 0 additions & 36 deletions deeplens/core.py

This file was deleted.

Empty file modified deeplens/dataflow/__init__.py
100644 → 100755
Empty file.
Empty file modified deeplens/dataflow/agg.py
100644 → 100755
Empty file.
173 changes: 0 additions & 173 deletions deeplens/dataflow/buffer_map.py

This file was deleted.

Loading