Coder Social home page Coder Social logo

Comments (1)

Xarlley avatar Xarlley commented on June 2, 2024

C:\Users\Alarak>python D:\桌面\CDAN-master\pytorch\train_image.py --gpu_id id --net ResNet50 --dset office-home --test_interval 2000 --s_dset_path D:\OfficeHomeDataset_10072016\Art.txt --t_dset_path D:\OfficeHomeDataset_10072016\Clipart.txt CDAN
Traceback (most recent call last):
File "D:\桌面\CDAN-master\pytorch\train_image.py", line 278, in
train(config)
File "D:\桌面\CDAN-master\pytorch\train_image.py", line 84, in train
dsets["source"] = ImageList(open(data_config["source"]["list_path"]).readlines(),
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 35, in init
imgs = make_dataset(image_list, labels)
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 17, in make_dataset
images = [(val.split()[0], np.array([int(la) for la in val.split()[1:]])) for val in image_list]
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 17, in
images = [(val.split()[0], np.array([int(la) for la in val.split()[1:]])) for val in image_list]
File "D:\桌面\CDAN-master\pytorch\data_list.py", line 17, in
images = [(val.split()[0], np.array([int(la) for la in val.split()[1:]])) for val in image_list]
ValueError: invalid literal for int() with base 10: 'Clock/00001.png|'

创建好两个txt之后,顺便将路径也改成下载到的数据集给出的imagelist中默认的D盘下的相应路径,运行后出现如下报错,似乎下载到的数据集给出的list格式跟贵课题组编程时使用的list格式不完全相同,请问贵课题组是如何对office-home这一数据集进行设置的呢?
除此之外,我发现readme中给出的其他数据集已经大部分不再可用,贵课题组可否更新数据集来源?

from cdan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.