Skip to content

Cpu eval2#85

Open
carolinewang01 wants to merge 138 commits intodevfrom
CPU_eval2
Open

Cpu eval2#85
carolinewang01 wants to merge 138 commits intodevfrom
CPU_eval2

Conversation

@carolinewang01
Copy link
Contributor

Includes

  • base eval code (updated to reflect latest eval bugfixes)
  • Sam's tracking bug fix

…ine, changing update_frame_level_table to accept args as well
…'t refer to tracking types in the types of traffic analysers
…tion_estimation into ec2_eval_pipeline

last minute attempt to get eval stats
Copy link
Collaborator

@Maren-Eckhoff Maren-Eckhoff left a comment

Choose a reason for hiding this comment

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

Remove the output.txt, and readme_resources/images/example_credentials.png


# ignore goturn caffe model
src/goturn.caffemodel
src/goturn.prototxt
Copy link
Collaborator

Choose a reason for hiding this comment

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

why would these files and up here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Funmi told me that to run the goturn tracker, you need these 2 files to be in the same directory as the module you're running.

@@ -0,0 +1,2464 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete notebook.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -0,0 +1,122 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove notebook

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

requirements.txt Outdated
pandas==0.24.2
psycopg2==2.6.2
seaborn>=0.9
sklearn
Copy link
Collaborator

Choose a reason for hiding this comment

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

specify the version

@@ -0,0 +1,9 @@
from traffic_analysis.d00_utils.create_primary_sql_tables import create_primary_sql_tables
Copy link
Collaborator

Choose a reason for hiding this comment

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

correct import

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the module actually because it is rendered unnecessary by the setup.py

@@ -0,0 +1,138 @@
import numpy as np
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is too much code in the pipeline file. If you need many steps, then please move them into a function run_eval_pipeline that sits in d07_pipelines and call that function here.

s3_credentials = creds[paths['s3_creds']]

# settings
verbose = True
Copy link
Collaborator

Choose a reason for hiding this comment

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

that could be in the eval_pipeline_settings

def create_primary_sql_tables(db_frame_level_name: str,
db_video_level_name: str,
db_vehicle_types_name: str = None,
db_cameras_name: str = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unused inputs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

src/setup.py Outdated

# create PSQL tables to insert vehicle statistics into
create_sql_tables(drop=False)
create_primary_sql_tables(drop=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you changed the inputs. Do you not need to pass in the table names?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes you're right, I've addressed this

dl.execute_raw_sql_query(sql=command)


def create_eval_sql_tables(creds: dict,
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unused import

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which import are you referring to? I think all of them are currently used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants