baidut / baidut/PatchVQ

name 'Accelerator' is not defined

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
76
Forks
13
PR merge metrics
No merged PRs in 30d

Description

In your demo of colab,

I got this error... T.T help me...

---------------------------------------------------------------------------
NameError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
----> 1 from fastiqa.vqa import *
2
3 # modify the json files to point to your database locations
4 LSVQ = load_json('json/LSVQ.json')
5 LIVE_VQC = {

2 frames
[/usr/local/lib/python3.7/dist-packages/fastai/distributed.py](https://localhost:8080/#) in DistributedTrainer()
142 "Wrap `model` in `DistributedDataParallel` and `dls` in `DistributedDL`"
143 order = 11
--> 144 @delegates(Accelerator, but=_hidden_params)
145 def __init__(self,
146 sync_bn=True, # Whether to replace all batch norm with `nn.SyncBatchNorm`

NameError: name 'Accelerator' is not defined

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Colab demo beginning with `from fastiqa.vqa import *` and inspect the traceback through `fastai/distributed.py`, especially `DistributedTrainer`. Check the demo's dependency assumptions and determine what change is needed so the import completes without `NameError: name 'Accelerator' is not defined`; done means the demo reaches the subsequent JSON-loading steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.