Skip to content

Commit

Permalink
python3 migration, will tag as 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jkiesele committed Mar 28, 2020
1 parent 1e60b43 commit 21daf26
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 244 deletions.
9 changes: 8 additions & 1 deletion docker/Dockerfile_base
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ RUN pip3 install opencv-python easydict tqdm Cython numba
RUN pip3 install gpustat setGPU

## torch/jupyter stuff
RUN pip3 install torch future gensim jupyter prompt-toolkit
RUN pip3 install torch future gensim jupyter prompt-toolkit torch_geometric
EXPOSE 8888

#for singularity panic
RUN adduser --disabled-password --gecos "" dummyuser





23 changes: 0 additions & 23 deletions environment/activateROOT.sh

This file was deleted.

59 changes: 0 additions & 59 deletions environment/djcenv.conda

This file was deleted.

42 changes: 0 additions & 42 deletions environment/djcenv.pip

This file was deleted.

42 changes: 0 additions & 42 deletions environment/djcenv_gpu.pip

This file was deleted.

48 changes: 0 additions & 48 deletions environment/setup_djcenv.sh

This file was deleted.

32 changes: 3 additions & 29 deletions modeltools.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
import imp
try:
imp.find_module('Losses')
from Losses import *
except ImportError:
print 'No Losses module found, ignoring at your own risk'
global_loss_list = {}

try:
imp.find_module('Layers')
from Layers import *
except ImportError:
print 'No Layers module found, ignoring at your own risk'
global_layers_list = {}

try:
imp.find_module('Metrics')
from Metrics import *
except ImportError:
print 'No metrics module found, ignoring at your own risk'
global_metrics_list = {}



custom_objs = {}
custom_objs.update(global_loss_list)
custom_objs.update(global_layers_list)
custom_objs.update(global_metrics_list)
from DeepJetCore.customObjects import *

custom_objs = get_custom_objects()


def getLayer(model, name):
Expand All @@ -35,7 +10,6 @@ def getLayer(model, name):




def printLayerInfosAndWeights(model, noweights=False):
for layer in model.layers:
g=layer.get_config()
Expand Down

0 comments on commit 21daf26

Please sign in to comment.