Skip to content

Commit 9723711

Browse files
committed
new dev
1 parent edb3a19 commit 9723711

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

DJCLayers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def __init__(self,
187187
super(LayerWithMetrics, self).__init__(**kwargs)
188188
self.record_metrics = record_metrics
189189
#transparent pass-through
190-
from wandb_interface import wandb_wrapper
190+
from .wandb_interface import wandb_wrapper
191191
self.wandb = wandb_wrapper
192192

193193
def get_config(self):
@@ -196,7 +196,7 @@ def get_config(self):
196196
return dict(list(base_config.items()) + list(config.items()))
197197

198198
def add_prompt_metric(self, x, name):
199-
print(self.name,"uses add_prompt_metric. This function is deprecated, please use wandb_log (pass through to wandb.log).")
199+
print(self.name,"uses add_prompt_metric. This function is deprecated, please change your code to use LayerWithMetrics.wandb_log instead (pass through to wandb.log(dict of name: value)).")
200200
self.wandb_log({name: x})
201201

202202
def wandb_log(self,*args, **kwargs):

docker/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,25 @@ RUN pip3 install numpy scikit-learn scikit-image \
2626

2727
RUN pip3 install bayesian-optimization mgzip pyyaml wandb hdbscan
2828

29-
#strict dependency
30-
RUN pip3 install git+https://github.com/jkiesele/djcdata
3129

3230
# 2.15 has a custom kernel compilation bug that is not being fixed before a patch or something, 2.14 cuda issues...
3331
RUN export DEBIAN_FRONTEND=noninteractive && \
3432
pip3 --no-cache-dir install tensorflow==2.13
3533

3634

37-
ARG LALA
35+
ARG LALALALAALALAL1
36+
37+
#strict dependency
38+
RUN python3 -m pip install git+https://github.com/jkiesele/djcdata
39+
40+
ARG LALALALA
3841

3942
## DEV configuration
4043
RUN mkdir -p /usr/share/DJC/
4144
ADD DeepJetCore /usr/share/DJC/DeepJetCore
4245
ENV DEEPJETCORE /usr/share/DJC/DeepJetCore
4346
ENV PYTHONPATH="/usr/share/DJC/DeepJetCore/../:${PYTHONPATH}"
47+
ENV PATH="/usr/share/DJC/DeepJetCore/bin:${PATH}"
4448

4549

4650
ADD dotest.sh /dotest.sh

modeltools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from DeepJetCore.customObjects import *
1+
from .customObjects import *
22

33
custom_objs = get_custom_objects()
44

5-
5+
66
def getLayer(model, name):
77
for layer in model.layers:
88
if layer.name == name:

0 commit comments

Comments
 (0)