#๐Ÿ”’ Which libraries are similar to CNTK library?

9 messages ยท Page 1 of 1 (latest)

tranquil laurel
#

Hi. everyone.
I am currently working with some projects.
I want to change CNTK moule, this is available until python 3.7 version, but I use 3.12. This cntk library is not working. How to change it and which libraries are corresponding to CNTK module? Tensorflow or Pytorch?

grand canopyBOT
#

@tranquil laurel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

tranquil laurel
#

`import os
import numpy as np
import pandas as pd
import cntk as C
from PIL import Image
import pickle
import time
from cntk import load_model, combine
import cntk.io.transforms as xforms
from cntk.logging import graph
from cntk.logging.graph import get_node_outputs

picklefolder_path = os.path.join(data_path, 'pickle') # create a directory pickle to store pickle files for image patches in each
# label directory. Data of all files in each label directory are dumped into
# a single pickle file
if not os.path.exists(picklefolder_path):
os.mkdir(picklefolder_path)

output_path = '../models'
if not os.path.exists(output_path):
os.mkdir(output_path)

regression_model_path = os.path.join(output_path, 'cntk_regression.dat')`
This is sample code.

fluid heart
#

Yah, I have no idea what CNTK is, but perhaps you could explain more about what you're trying to do?

tranquil laurel
#

currently, this project is used by cntk library., but this modul's latest release version is 3.6, now latest python version 3.12 and I use it.
so cntk module is not working in this version.

#

I have to change this library, but which libraries are most similar to CNTK?

#

for example, tensorflow or pytorch...

grand canopyBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.