welthungerhilfe / cgm-rg Goto Github PK
View Code? Open in Web Editor NEWCode for result generation
License: GNU General Public License v3.0
Code for result generation
License: GNU General Public License v3.0
Problem: The cgm-rg code is hard to understand
Potential Solution: Type annotations will help to understand more about the objects we pass back and forth
img = tf.image.decode_jpeg(img, channels=3)
Standing-laying classier perform wrong due to problem with the above line
cgm-rg/src/utils/preprocessing.py
Line 122 in fa41f50
Problem: This results in a docker image of 7.85GB. This is difficult for working on developer laptops limited resources
To reproduce, run cgm-rg steps in https://github.com/Welthungerhilfe/cgm-rg/wiki/Setup-local-development
Solution:
Other problems:
docker build
takes 12-15minutes with fast internet (gist)requirements.txt
, then uninstalled and reinstalled when running: RUN pip install torch==1.9.0+cpu torchvision==0.10.0+cpu torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
Tasks:
cgm-rg is currently quite slow when performing the face detection.
When inserting a batch of old scans, it needs weeks to perform result generation.
We can benchmark and profile and also think about alternative architectures for cgm-rg (e.g. scalable AzureML endpoints)
Problem: Environment creation code is present in many Training notebooks.
Solution: Create Utils and reuse the code
Code duplication is present in Pose 3d model code.
Pose prediction is running again for 3d- model code.
Motivation: Verify (e.g. in the ACI logs) that the scan was processed correctly
Status Quo: Currently there are only logs from the cgm-rg initialization (how workflows got loaded)
Status quo: In preprocessing.py, we set width and height for the whole program.
Problem: The program execution might handle artifacts with different height and width.
Solution: We could therefore store width and height as state in an object of class Artifact.
Here is the idea with some pseudo-code:
class Artifact:
def __init__(self, filename):
self.filename = filename
self.width, self.height, depthmap = load_depth(filename)
file_ = Aritvact('4ed427b5-3fd9-4f4d-8e58-19e39c7d77b6.zip')
file_.width # instead of using global WIDTH
Motivation: We currently don't plan to put the ensembles into cgm-rg in the near future. If we decide to add them back, this might look very different by then.
Desired changes:
ENSEMBLE_RUN_IDS
in src/download_model.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.