Skip to content

Commit 6ac2d74

Browse files
committed
sdf
1 parent b85111a commit 6ac2d74

File tree

5 files changed

+53
-47
lines changed

5 files changed

+53
-47
lines changed

blossom/api.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
import numpy as np
3737
import imageio
38-
import matplotlib.pyplot as plt
3938

4039
from itertools import chain
4140
from skimage.morphology import label
@@ -219,6 +218,12 @@ def get_train_args():
219218
}
220219
return arg_dict
221220

221+
def warm():
222+
try:
223+
print("cc")
224+
except Exception as e:
225+
print(e)
226+
222227
def train(**args):
223228
output={}
224229
output["hyperparameter"]=args
@@ -234,7 +239,7 @@ def train(**args):
234239

235240
try:
236241
image_dir = tempfile.TemporaryDirectory()
237-
# mount_nextcloud('rshare:/data/dataset_files', paths.get_splits_dir())
242+
238243
mount_nextcloud('rshare:/data/images', os.path.join(image_dir.name,'images'))
239244
print(">> RSHARE",os.listdir(os.path.join(image_dir.name,'images')))
240245
except Exception as e:

blossom/config.py

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,48 +29,47 @@
2929
DATA_MASK = os.path.join(DATA_DIR,os.path.join('train','masks'))
3030

3131

32-
# Input parameters for predict() (deepaas>=1.0.0)
33-
class PredictArgsSchema(Schema):
34-
class Meta:
35-
unknown = INCLUDE # support 'full_paths' parameter
32+
# # Input parameters for predict() (deepaas>=1.0.0)
33+
# class PredictArgsSchema(Schema):
34+
# class Meta:
35+
# unknown = INCLUDE # support 'full_paths' parameter
3636

37-
# full list of fields: https://marshmallow.readthedocs.io/en/stable/api_reference.html
38-
# to be able to upload a file for prediction
39-
files = fields.Field(
40-
required=False,
41-
missing=None,
42-
type="file",
43-
data_key="data",
44-
location="form",
45-
description="Select a file for the prediction"
46-
)
37+
# # full list of fields: https://marshmallow.readthedocs.io/en/stable/api_reference.html
38+
# # to be able to upload a file for prediction
39+
# files = fields.Field(
40+
# required=False,
41+
# missing=None,
42+
# type="file",
43+
# data_key="data",
44+
# location="form",
45+
# description="Select a file for the prediction"
46+
# )
4747

48-
# to be able to provide an URL for prediction
49-
urls = fields.Url(
50-
required=False,
51-
missing=None,
52-
description="Provide an URL of the data for the prediction"
53-
)
48+
# # to be able to provide an URL for prediction
49+
# urls = fields.Url(
50+
# required=False,
51+
# missing=None,
52+
# description="Provide an URL of the data for the prediction"
53+
# )
5454

55-
# an input parameter for prediction
56-
arg1 = fields.Integer(
57-
required=False,
58-
missing=1,
59-
description="Input argument 1 for the prediction"
60-
)
55+
# # an input parameter for prediction
56+
# arg1 = fields.Integer(
57+
# required=False,
58+
# missing=1,
59+
# description="Input argument 1 for the prediction"
60+
# )
6161

62-
# Input parameters for train() (deepaas>=1.0.0)
63-
class TrainArgsSchema(Schema):
64-
class Meta:
65-
unknown = INCLUDE # support 'full_paths' parameter
62+
# # Input parameters for train() (deepaas>=1.0.0)
63+
# class TrainArgsSchema(Schema):
64+
# class Meta:
65+
# unknown = INCLUDE # support 'full_paths' parameter
6666

67-
# available fields are e.g. fields.Integer(), fields.Str(), fields.Boolean()
68-
# full list of fields: https://marshmallow.readthedocs.io/en/stable/api_reference.html
69-
arg1 = fields.Integer(
70-
required=False,
71-
missing=1,
72-
description="Input argument 1 for training"
73-
)
74-
75-
#additional
67+
# # available fields are e.g. fields.Integer(), fields.Str(), fields.Boolean()
68+
# # full list of fields: https://marshmallow.readthedocs.io/en/stable/api_reference.html
69+
# arg1 = fields.Integer(
70+
# required=False,
71+
# missing=1,
72+
# description="Input argument 1 for training"
73+
# )
7674

75+
# #additional

blossom/path.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ def get_data_dir():
1919
def get_logs_dir():
2020
return os.path.join(get_models_dir(),"logs")
2121

22-
print(os.path.abspath(os.path.join(homedir, base_dir)))
23-
print(os.path.join(get_base_dir(),os.path.join('blossom','models')))
24-
print(os.path.join(get_base_dir(),os.path.join('blossom','dataset')))
22+
print(">",os.path.abspath(os.path.join(homedir, base_dir)))
23+
print(">",os.path.join(get_base_dir(),os.path.join('blossom','models')))
24+
print(">",os.path.join(get_base_dir(),os.path.join('blossom','dataset')))

requirements.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ numpy
1616
tensorflow
1717
focal_loss
1818
scikit-image
19-
scikit-learn
19+
sklearn
2020
h5py
2121
imshowpair
2222
gdown
2323
tqdm
24-
pydrive
24+
pydrive
25+
SciPy
26+
joblib
27+
threadpoolctl

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ packages =
2323
blossom
2424

2525
[entry_points]
26-
2726
deepaas.v2.model =
2827
blossom = blossom.api
2928

0 commit comments

Comments
 (0)