smarteye's People
smarteye's Issues
How to fix "ImportError: cannot import name 'dataclass'"?
Excuse me, I encountered following issues when setting up edge node. Have you ever notice this problem? Thanks!
$ python3 edge_main.py -f ~/cutout1.mp4 -i 50
Traceback (most recent call last):
File "edge_main.py", line 14, in <module>
from local.decision_engine import DecisionEngine
File "/home/htliu/SmartEye/local/decision_engine.py", line 4, in <module>
from model_manager.model_cache import get_fastest_model, get_most_precise_model
File "/home/htliu/SmartEye/model_manager/model_cache.py", line 3, in <module>
import torch
File "/home/htliu/.local/lib/python3.6/site-packages/torch/__init__.py", line 627, in <module>
import torch.utils.data
File "/home/htliu/.local/lib/python3.6/site-packages/torch/utils/data/__init__.py", line 6, in <module>
from .dataloader import DataLoader, _DatasetKind, get_worker_info
File "/home/htliu/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 21, in <module>
from . import _utils
File "/home/htliu/.local/lib/python3.6/site-packages/torch/utils/data/_utils/__init__.py", line 45, in <module>
from . import worker, signal_handling, pin_memory, collate, fetch
File "/home/htliu/.local/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 10, in <module>
from dataclasses import dataclass
ImportError: cannot import name 'dataclass'
nvalid load key, 'v'.
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.