malvinanikandrou / contvqa Goto Github PK
View Code? Open in Web Editor NEWSettings for Continual Learning in Visual Question Answering
License: MIT License
Settings for Continual Learning in Visual Question Answering
License: MIT License
The way the type hinting is done for data structures, e.g. for dict
, leads to RuntimeErrors
in python 3.8
.
[PEP 484 - Type Hints](PEP 484 โ Type Hints) standardizes the way of doing type hints and says: "In addition to the above, the following special constructs defined below may be used: None, Any, Union, Tuple, Callable, all ABCs and stand-ins for concrete classes exported from typing (e.g. Sequence and Dict), type variables, and type aliases."
Therefore, it can be fixed by importing the right container from typing
and using it, e.g. from typing import Dict
and using Dict
.
E.g. when running get_dataset_statistics.py
from contvqa.common import read_json, get_vqa_v2_mc_answers, get_vqa_v2_answer_sets
ModuleNotFoundError: No module named 'contvqa'
It can be fixed by importing directly: from common import read_json
.
Or do you need importing like this for the packaging?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.