Coder Social home page Coder Social logo

Code does not run as it is about xvision HOT 5 CLOSED

ayush1997 avatar ayush1997 commented on August 27, 2024
Code does not run as it is

from xvision.

Comments (5)

ayush1997 avatar ayush1997 commented on August 27, 2024

It uses Python2.7

from xvision.

icsimlai avatar icsimlai commented on August 27, 2024

Do the python files in "DeepLearning" folder has same dependency on Python2.7? Do you have a plan to update to Python 3? With almost zero comments in the code it's difficult for someone else to do the same.

from xvision.

icsimlai avatar icsimlai commented on August 27, 2024

When trying to run I get errors as shown below:
python scraper.py "."
extract
Traceback (most recent call last):
File "scraper.py", line 72, in
main()
File "scraper.py", line 68, in main
extract(link)
File "scraper.py", line 47, in extract
urllib.urlretrieve(domain+img, path+str(img_no)+".png")
AttributeError: module 'urllib' has no attribute 'urlretrieve'

from xvision.

ayush1997 avatar ayush1997 commented on August 27, 2024

That has to do with the python version.
I do not have any plans to update it to 3 as of now.

from xvision.

icsimlai avatar icsimlai commented on August 27, 2024

Hi,
Is the following code correct, specially "elif" blocks?

train_images_dict = {}
test_images_dict={}
count = 1
for i in index_list:

if i== "normal":
    train_images_dict["normal"]=index_list[i][100:200]
    test_images_dict["normal"] = index_list[i][201:250]

elif i=="nodule" :
    train_images_dict[i]=index_list[i][:54]
    test_images_dict[i] = index_list[i][49:]

elif i=="calcinosisnodule":
    train_images_dict['calcinosisnodule'] = index_list[i][:23]
    test_images_dict["calcinosisnodule"] = index_list[i][23:]

from xvision.

Related Issues (16)

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.