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

Importing old networks trained using cortex 0.3* to 0.5* #96

Open
poojaramesh opened this issue Feb 9, 2017 · 0 comments
Open

Importing old networks trained using cortex 0.3* to 0.5* #96

poojaramesh opened this issue Feb 9, 2017 · 0 comments

Comments

@poojaramesh
Copy link
Contributor

If you have a saved network that was trained using 0.3*, you can use this function to import it to 0.5* for inference or further training/fine-tuning.

(defn import-older-models
  [network]
  (when-let [network-desc (:network-description network)]
    (-> (mapv (fn [{:keys [type] :as layer}]
                (cond
                  (= type :convolutional) (assoc layer :dimension-op (layers/default-layer-type-dimension-op :convolutional))
                  (= type :max-pooling) (assoc layer :dimension-op (layers/default-layer-type-dimension-op :max-pooling))
                  :else layer))
              network-desc)
      network/build-network
      traverse/auto-bind-io)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants