Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
earth_observation_public
Climax
Commits
d411f4ed
Commit
d411f4ed
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Check if model already exists.
parent
95a2c78b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
climax/main/downscale_train.py
+1
-2
1 addition, 2 deletions
climax/main/downscale_train.py
with
1 addition
and
2 deletions
climax/main/downscale_train.py
+
1
−
2
View file @
d411f4ed
...
...
@@ -18,7 +18,6 @@ from torch.utils.data import DataLoader
# locals
from
pysegcnn.core.utils
import
search_files
from
pysegcnn.core.trainer
import
NetworkTrainer
,
LogConfig
from
pysegcnn.core.models
import
Network
from
pysegcnn.core.logging
import
log_conf
from
climax.core.dataset
import
ERA5Dataset
,
NetCDFDataset
from
climax.core.loss
import
MSELoss
,
L1Loss
...
...
@@ -64,7 +63,7 @@ if __name__ == '__main__':
# check if model exists
if
state_file
.
exists
()
and
not
OVERWRITE
:
# load pretrained network
net
,
_
=
Network
.
load_pretrained_model
(
state_file
,
NET
)
LogConfig
.
init_log
(
'
{} already exists.
'
.
format
(
state_file
)
)
sys
.
exit
()
# initialize ERA5 predictor dataset
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment