Code Monkey home page Code Monkey logo

sc2-benchmark's People

Contributors

buggyyang avatar yoshitomo-matsubara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sc2-benchmark's Issues

importError

Hello, i have a problem to run the sc2-benchmark. There is no 'model_urls' in 'torchvision.models.segmentation.deeplabv3', but i exactly install torchvision0.11.1.
image
image

ImportError: cannot import name 'model_urls' from 'torchvision.models.segmentation.deeplabv3'

I'm trying to run a test following Supervised Compression. I've downloaded the dataset for Semantic Segmentation (for PASCAL VOC2012). I've set up the environment in conda using environment.yaml. I've placed the resource in sc2-benchmark-main.

The command I've tried running is:

python script/task/semantic_segmentation.py -test_only -student_only --config configs/pascal_voc2012/supervised_compression/entropic_student/deeplabv3_splittable_resnet50-fp-beta1.28_from_deeplabv3_resnet50.yaml

The output is:

Traceback (most recent call last):
  File "script/task/semantic_segmentation.py", line 23, in <module>
    from sc2bench.analysis import check_if_analyzable
  File "/home/gleip/anaconda3/envs/sc2-benchmark/lib/python3.8/site-packages/sc2bench/__init__.py", line 1, in <module>
    from . import models, transforms, loss
  File "/home/gleip/anaconda3/envs/sc2-benchmark/lib/python3.8/site-packages/sc2bench/models/__init__.py", line 1, in <module>
    from . import registry, detection, segmentation
  File "/home/gleip/anaconda3/envs/sc2-benchmark/lib/python3.8/site-packages/sc2bench/models/segmentation/__init__.py", line 1, in <module>
    from . import deeplabv3
  File "/home/gleip/anaconda3/envs/sc2-benchmark/lib/python3.8/site-packages/sc2bench/models/segmentation/deeplabv3.py", line 4, in <module>
    from torchvision.models.segmentation.deeplabv3 import model_urls, DeepLabHead
ImportError: cannot import name 'model_urls' from 'torchvision.models.segmentation.deeplabv3' (/home/gleip/anaconda3/envs/sc2-benchmark/lib/python3.8/site-packages/torchvision/models/segmentation/deeplabv3.py)

I've tried backtracking it to some extent, but didn't see anything that would help. I don't see any mention of "model_urls" in /home/gleip/anaconda3/envs/sc2-benchmark/lib/python3.8/site-packages/torchvision/models/segmentation/deeplabv3.py.

I'm running Ubuntu 20.04.4 LTS x86_64 on a Legion 5 Pro laptop with NVidia RTX3060 and AMD Ryzen 7 5800H.

Background: I'm trying to use this library for the purpose of implementing split computing with a bottleneck injection on another kind of model, therefore I'm trying to test things out and see how the results of the paper have been achieved.

A response to this would be greatly appreciated, thanks in advance!

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.