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

changing layers #45

Open
mehrnia opened this issue Oct 2, 2024 · 1 comment
Open

changing layers #45

mehrnia opened this issue Oct 2, 2024 · 1 comment

Comments

@mehrnia
Copy link

mehrnia commented Oct 2, 2024

I wanna change some of the layers, what approach you recommend?
I wanna change the unet locally, any advice?

@taigw
Copy link
Contributor

taigw commented Dec 18, 2024

Here is an example of how to use customized layer or network:
https://github.com/HiLab-git/PyMIC_examples/tree/main/seg_full_sup/custom
You can define your own network, and set the network instance for segmentation agent, like this:

    agent  = SegmentationAgent(config, args.stage)
    # use custormized network and loss function
    mynet  = MyUNet2D(config['network'])
    agent.set_network(mynet)
    agent.set_loss_dict(loss_dict)
    agent.run()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants