Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE]No json file for Evaluation Configuration #25

Open
Psilym opened this issue May 9, 2023 · 0 comments
Open

[ISSUE]No json file for Evaluation Configuration #25

Psilym opened this issue May 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Psilym
Copy link

Psilym commented May 9, 2023

Describe the bug
I cannot find the json file mentioned in file EmbedSeg/tree/main/examples/2d/dsb-2018/03-predict.ipynb. This file is important for configuring evaluation process.
The code from notebook is as follows.
torch.hub.download_url_to_file(url = 'https://owncloud.mpi-cbg.de/index.php/s/H1pXwhq3aO4kJK3/download', dst = 'pretrained_model', progress=True) import zipfile with zipfile.ZipFile('pretrained_model', 'r') as zip_ref: zip_ref.extractall('') checkpoint_path = os.path.join(project_name+'-'+'demo', 'best_iou_model.pth') if os.path.isfile(os.path.join(project_name+'-'+'demo','data_properties.json')): with open(os.path.join(project_name+'-'+'demo', 'data_properties.json')) as json_file: data = json.load(json_file) one_hot, data_type, min_object_size, n_y, n_x, avg_bg = data['one_hot'], data['data_type'], \ int(data['min_object_size']), int(data['n_y']), int(data['n_x']), float(data['avg_background_intensity']) if os.path.isfile(os.path.join(project_name+'-'+'demo','normalization.json')): with open(os.path.join(project_name+'-'+'demo', 'normalization.json')) as json_file: data = json.load(json_file) norm = data['norm']

Can you provide this file in the project?

@Psilym Psilym added the bug Something isn't working label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant